- Joined
- Jan 26, 2009
- Messages
- 36
I'm working on a small trigger, and everything works except for the fact that my trigger will fire on a unit even if it doesn't have mana. Here is my trigger.
Everything about the trigger works perfectly, except for the fact that it will work even if a unit has mana. Is there a way to condition in something to check if the attacked unit even has mana?
-
Mana Break
-
Events
- Unit - A unit Is attacked
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- (Level of Mana Break for (Attacking unit)) Greater than or equal to 1
- ((Attacked unit) is alive) Equal to True
- ((Attacked unit) is A structure) Equal to False
- (Mana of (Attacked unit)) Less than or equal to 10.00
- ((Attacked unit) belongs to an enemy of (Owner of (Attacking unit))) Equal to True
-
Conditions
-
And - All (Conditions) are true
-
Actions
- Set AE = (Unit-type of (Last created unit))
- Unit - Create 1 Arcane Eruption for (Owner of (Attacking unit)) at (Position of (Attacking unit)) facing (Position of (Attacked unit))
- Unit - Set level of Arcane Eruption (Battlemage) for (Last created unit) to (Level of Mana Break for (Attacking unit))
- Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Attacked unit)
- Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
-
Events
Everything about the trigger works perfectly, except for the fact that it will work even if a unit has mana. Is there a way to condition in something to check if the attacked unit even has mana?
Last edited by a moderator: