- Joined
- Sep 26, 2009
- Messages
- 9,505
The icon artwork here is pretty cool. Please let us know in the description what mortal strike and deadly strike are.
The "attacked" event is not good. The damage is applied too early, and can be interrupted (e.g. by pressing "stop"). You'll want to use the "unit takes damage" event, or use a damage engine if on an earlier WC3 version.
The changing of a unit's life is going to cause problems if the adjustment would kill the target, because the damaging unit will not get credit for the kill. If using Damage Engine, you could do this:
Set DamageEventAmount = (DamageEventAmount + ((Unit - Max Life of DamageEventTarget) x 0.02) )
The "attacked" event is not good. The damage is applied too early, and can be interrupted (e.g. by pressing "stop"). You'll want to use the "unit takes damage" event, or use a damage engine if on an earlier WC3 version.
The changing of a unit's life is going to cause problems if the adjustment would kill the target, because the damaging unit will not get credit for the kill. If using Damage Engine, you could do this:
Set DamageEventAmount = (DamageEventAmount + ((Unit - Max Life of DamageEventTarget) x 0.02) )