- Joined
- Oct 23, 2006
- Messages
- 65
I can't see what is wrong with this, can you?
Code:
Stupify
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Stupify
Actions
Wait 0.50 seconds
Set StupifyTarget = (Position of (Target unit of ability being cast))
Special Effect - Create a special effect at StupifyTarget using Doodads\Cinematic\Lightningbolt\Lightningbolt.mdl
Special Effect - Create a special effect at StupifyTarget using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Stupify for (Casting unit)) Equal to 1
Then - Actions
Hero - Modify Intelligence of (Targeted unit): Subtract 1
Else - Actions
Hero - Modify Intelligence of (Targeted unit): Subtract (Random integer number between 1 and 2)