- Joined
- Apr 3, 2012
- Messages
- 31
Hey there
I've got an ability aptly named Heroism which reduces base attack time. The trigger which lowers attack speed looks like this and works fine (It does not have to be MUI, I'm aware it's not perfect):
Sorry for perhaps not looking around closely enough, but is there a known issue with these trigger actions, or am I missing something obvious?
I've got an ability aptly named Heroism which reduces base attack time. The trigger which lowers attack speed looks like this and works fine (It does not have to be MUI, I'm aware it's not perfect):
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Heroism
-
-
Actions
-
Set aa_TempUnit = (Casting unit)
-
Set aa_TempPoint = (Position of aa_TempUnit)
-
Set aa_heroismReal = (0.10 x (Real((Level of Heroism for aa_TempUnit))))
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 1200.00 of aa_TempPoint) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
((Picked unit) belongs to an ally of (Owner of aa_TempUnit)) Equal to True
-
-
Then - Actions
-
Set aa_TempUnit2 = (Picked unit)
-
Unit Group - Add aa_TempUnit2 to aa_heroGroup
-
Unit - Set Attack Interval of aa_TempUnit2 to ((Attack Interval of aa_TempUnit2 for weapon index 1) - aa_heroismReal) for weapon index: 1
-
-
Else - Actions
-
-
-
Custom script: call RemoveLocation(udg_aa_TempPoint)
-
Countdown Timer - Start aa_heroTimer as a One-shot timer that will expire in 20.00 seconds
-
-
Events
-
Time - aa_heroTimer expires
-
-
Conditions
-
Actions
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in aa_heroGroup and do (Actions)
-
Loop - Actions
-
Set aa_TempUnit = (Picked unit)
-
Unit - Set Attack Interval of aa_TempUnit to ((Attack Interval of aa_TempUnit for weapon index 1) + aa_heroismReal) for weapon index: 1
-
Unit Group - Remove aa_TempUnit from aa_heroGroup
-
-
-
Sorry for perhaps not looking around closely enough, but is there a known issue with these trigger actions, or am I missing something obvious?