I've made a spell that damages all units in a line upto a certain range. Damage is calculated by adding the Hero's strength(multiplied by a level factor) to a base damage value. The spell is very similar to the Tauren Chieftain's Shockwave, with a Strength based damage bonus.
I've based the spell off of Breath of Frost, and in general, it works like this:
1)Spell deals base damage, according to object editor values.
2)Spell also adds a buff (Trueshot, not the aura, just a custom buff that does pretty much nothing ).
3)Trigger fires whenever the spell is cast, and works as follows.
The spell works splendidly , except, there's a little catch.
If I cast the spell, and then move my Hero away fast enough, it seems that the trigger never fires . I've tried using "starts the effect of an ability" instead, but that fails miserably (I'm guessing it doesn't give the spell any time to buff the target units, and, therefore, the unit group is empty).
Any help is greatly appreciated
I've based the spell off of Breath of Frost, and in general, it works like this:
1)Spell deals base damage, according to object editor values.
2)Spell also adds a buff (Trueshot, not the aura, just a custom buff that does pretty much nothing ).
3)Trigger fires whenever the spell is cast, and works as follows.
Trigger:
- Add Strength Damage
- Events
- Unit - A unit Finishes casting an ability
- Conditions
- (Ability being cast) Equal to Trueshot
- Actions
- Set temp_unit = (Casting unit)
- Set temp_point = (Position of temp_unit)
- Set temp_unit_group = (Units within 1200.00 of temp_point matching (((Matching unit) has buff Trueshot ) Equal to True))
- Unit Group - Pick every unit in temp_unit_group and do (Actions)
- Loop - Actions
- Unit - Cause temp_unit to damage (Picked unit), dealing ((((Real((Level of Trueshot for temp_unit))) / 4.00) + 0.25) x (Real((Strength of temp_unit (Include bonuses))))) damage of attack type Hero and damage type Normal
- Unit - Remove Trueshot buff from (Picked unit)
- Loop - Actions
- Unit Group - Destroy unit group temp_unit_group
- Point - Remove temp_point
- Events
The spell works splendidly , except, there's a little catch.
If I cast the spell, and then move my Hero away fast enough, it seems that the trigger never fires . I've tried using "starts the effect of an ability" instead, but that fails miserably (I'm guessing it doesn't give the spell any time to buff the target units, and, therefore, the unit group is empty).
Any help is greatly appreciated