Random Spell
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to [COLOR="Blue"][U]Your Spell[/U][/COLOR]
Actions
Set Point_Variable = (Position of (Triggering unit))
Set Ability_Variable[1] = Fan of Knives
Set Ability_Variable[2] = Thunder Clap
Set Ability_Variable[3] = War Stomp
Set Integer_Variable = (Random integer number between 1 and 3)
Unit - Create 1 [COLOR="Blue"][U]Dummy Unit[/U][/COLOR] for (Owner of (Triggering unit)) at Point_Variable facing Default building facing degrees
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Turn collision for (Last created unit) Off
Unit - Add Ability_Variable[Integer_Variable] to (Last created unit)
Unit - Set level of Ability_Variable[Integer_Variable] for (Last created unit) to (Level of (Ability being cast) for (Triggering unit))
Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
Unit - Order (Last created unit) to Night Elf Warden - Fan Of Knives
Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
Custom script: call RemoveLocation(udg_Point_Variable)
Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
Unit - Order (Last created unit) to Night Elf Warden - Fan Of Knives
Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp