- Joined
- Oct 23, 2006
- Messages
- 65
Fix it or I will be sad.
What it is supposed to do is manaburn the target and have a 10% chance per level to polymorph the target as well.
Code:
ManaBurn
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Mana Burn (Antimage)
Actions
Set ManaBurn = (Random integer number between 1 and 100)
Set ManaBurnTarget = (Position of (Target unit of ability being cast))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Level of Mana Burn (Antimage) for (Triggering unit)) x 10) Less than or equal to ManaBurn
Then - Actions
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at ManaBurnTarget facing Default building facing degrees
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
Unit - Add ManaBurnPolyMorph to (Last created unit)
Unit - Order (Last created unit) to Human Sorceress - Polymorph (Target unit of ability being cast)
Custom script: call RemoveLocation( udg_ManaBurnTarget )
Set ManaBurnEffect = (Last created special effect)
Else - Actions
Do nothing
Wait 2.00 seconds
Special Effect - Destroy ManaBurnEffect
What it is supposed to do is manaburn the target and have a 10% chance per level to polymorph the target as well.