I'm having a difficulty with a spell and I need your help.
The spell is based on Breath of Fire, but instead of fire, there is a missile flying towards the target.
What I want to make is that when this spell hits a certain unit-type (in this case, a male hero), it should do 10 extra damage (on top of the normal 10 damage).
Currently I have the following:
I hoped that by making the spell like this that when the arrow hit a Hunter, he would receive 10 damage on top of the 10 regular damage. Unfortunately, the casting unit stops casting the ability before the missile hits the target, so that the Hunter receives the damage sooner.
Also, if the missile misses the Hunter, it still hits him because these triggers don't work like the regular Breath of Fire where the spell targets a point or unit, but can be evaded.
So... does anybody here know a solution to my problems?
The spell is based on Breath of Fire, but instead of fire, there is a missile flying towards the target.
What I want to make is that when this spell hits a certain unit-type (in this case, a male hero), it should do 10 extra damage (on top of the normal 10 damage).
Currently I have the following:
Trigger:
- feministattackon
- Events
- Unit - A unit Begins casting an ability
- Conditions
- ((Unit-type of (Target unit of ability being cast)) Equal to Hunter) and ((Ability being cast) Equal to Arrow Attack (Feminist))
- Actions
- Unit Group - Add (Target unit of ability being cast) to feministattackon
- Events
Trigger:
- feministattackoff
- Events
- Unit - A unit Stops casting an ability
- Conditions
- (Unit-type of (Casting unit)) Equal to The Feminist
- Actions
- Unit Group - Pick every unit in feministattackon and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 10.00))
- Unit Group - Remove all units from feministattackon
- Events
I hoped that by making the spell like this that when the arrow hit a Hunter, he would receive 10 damage on top of the 10 regular damage. Unfortunately, the casting unit stops casting the ability before the missile hits the target, so that the Hunter receives the damage sooner.
Also, if the missile misses the Hunter, it still hits him because these triggers don't work like the regular Breath of Fire where the spell targets a point or unit, but can be evaded.
So... does anybody here know a solution to my problems?