Alright, I have a trigger setup that causes a unit to lose 1 mana every 2 seconds when/if the unit casts the ability repair(human). Now for the issue... The trigger works fine if the unit has to MOVE from location to location to repair/build structures, but if the unit does not have to MOVE in order to repair/build a structure the mana lost every 2 seconds is increased. An example of when a unit does not have to move in order to repair/build something is if the unit is ordered to build two structures right next to each other using shift + order.
Here is the trigger I currently have setup.
So basically what im asking for is maybe an alternate trigger or something i need to add, another trigger perhaps. Something to fix this so that it works the way i would like it to, as long as a unit is building it will lose 1 mana ever 2 seconds.
Here is the trigger I currently have setup.
-
Building
-
Events
- Unit - A unit Begins channeling an ability
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- (Ability being cast) Equal to Repair (Human)
- (Current order of (Triggering unit)) Equal to (Order(repair))
-
Conditions
-
And - All (Conditions) are true
-
Actions
- Trigger - Add to (This trigger) the event (Time - Every 2.00 seconds of game time)
- Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) - 1.00)
- Wait 1.00 game-time seconds
- Trigger - Run (This trigger) (checking conditions)
-
Events
So basically what im asking for is maybe an alternate trigger or something i need to add, another trigger perhaps. Something to fix this so that it works the way i would like it to, as long as a unit is building it will lose 1 mana ever 2 seconds.
Last edited: