- Joined
- Nov 4, 2006
- Messages
- 1,241
Hi everyone,
i was wondering if anyone could think of an object editor way to create an instant cast spell with area of effect around the caster which applies a debuff to enemy units around him which damages them over time.
i tried to use roar and howl of terror with negative life regen, which works, however has one big drawback, because if the enemy unit dies from the spell, the kill is not credited to the unit.
One weird thing i noticed however is happening with the following trigger when a unit dies from the debuff:
i'll probably go to triggering it anyway, but maybe someone has an easy idea
i was wondering if anyone could think of an object editor way to create an instant cast spell with area of effect around the caster which applies a debuff to enemy units around him which damages them over time.
i tried to use roar and howl of terror with negative life regen, which works, however has one big drawback, because if the enemy unit dies from the spell, the kill is not credited to the unit.
One weird thing i noticed however is happening with the following trigger when a unit dies from the debuff:
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Owner of (Triggering unit)) Equal to Player 12 (Brown)
-
-
Actions
-
Set kills[(Player number of (Owner of (Killing unit)))] = (kills[(Player number of (Owner of (Killing unit)))] + 1)
-
Unit - Set the custom value of (Killing unit) to ((Custom value of (Killing unit)) + 1)
-
i'll probably go to triggering it anyway, but maybe someone has an easy idea