When this ability is cast, it deals damage twice. And I can't figure out why. The ability in object editor doesn't deal damage. Help appreciated! (try to understand my horrible english aswell >_<)
I used Tom_Kazansky's GUI Knockback System for this.
Thanks in advance,
/Murre
Trigger:
- Knockback Damage
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Warstomp Pushback
- Actions
- For each (Integer A) from 1 to 3, do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Warstomp Pushback for (Triggering unit)) Equal to (Integer A)
- Then - Actions
- Set KB_DMG_Group = (Units within 350.00 of (Position of (Triggering unit)) matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))
- Unit Group - Pick every unit in KB_DMG_Group and do (Actions)
- Loop - Actions
- Unit - Cause (Triggering unit) to damage (Picked unit), dealing (125.00 + (75.00 x (Real((Level of Warstomp Pushback for (Triggering unit)))))) damage of attack type Spells and damage type Normal
- Loop - Actions
- Else - Actions
- Custom script: call DestroyGroup (udg_KB_DMG_Group)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- For each (Integer A) from 1 to 3, do (Actions)
- Events
I used Tom_Kazansky's GUI Knockback System for this.
Thanks in advance,
/Murre