- Joined
- Aug 6, 2009
- Messages
- 697
I want the unit to use the ability when ordered to attack a unit, or when the legionary is attacking.
I based the Hasta Throw off of the Firebolt spell.
I based the Hasta Throw off of the Firebolt spell.
-
Hasta Throw
-
Events
-
Unit - A unit Is issued an order targeting an object
-
-
Conditions
-
(Unit-type of (Ordered unit)) Equal to XI Legionary
-
-
Actions
-
Set HastaTarget = (Target unit of issued order)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Issued order) Equal to (Order(attack))
-
(Mana of (Ordered unit)) Greater than 0.00
-
-
Then - Actions
-
Unit - Order (Ordered unit) to Neutral - Firebolt HastaTarget
-
-
Else - Actions
-
-
-
-
Hasta Throw2
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
(Unit-type of (Attacking unit)) Equal to XI Legionary
-
((Attacked unit) belongs to an ally of (Owner of (Attacking unit))) Equal to False
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Mana of (Triggering unit)) Greater than 0.00
-
-
Then - Actions
-
Unit - Order (Triggering unit) to Neutral - Firebolt (Attacked unit)
-
-
Else - Actions
-
-
-