So the premise of my trigger is that I'm adding a 3rd resource Food.
Peasants will be able to "gather" food from Farms by Mana Absorbing the mana of the Farm.
The cooldown of Mana Absorb is 0 seconds and the casting time is 20 seconds. Peasants initially have 0 mana and have a capacity of 10. My trigger aims to have Peasants automatically Mana Absorb a farm after the first manual user-commanded Mana Absorb.
Here is the trigger:
EVENTS:
--------Unit - A unit finishes casting an ability
CONDITIONS:
--------(Ability being cast) Equal to Mana Absorb
ACTIONS:
--------Unit - Set mana of (Casting unit) to 0.00
--------Unit - Order (Casting unit) to Undead Destroyer - Absorb Mana (Target unit of ability being cast)
Basically, the trigger fails because nothing happens after the initial user-commanded Mana Absorb. How can I fix this?
Also, can I get some ideas on how to get my Peasants to return to the nearest town hall after Mana Absorbing?
Thanks everyone for your help
Peasants will be able to "gather" food from Farms by Mana Absorbing the mana of the Farm.
The cooldown of Mana Absorb is 0 seconds and the casting time is 20 seconds. Peasants initially have 0 mana and have a capacity of 10. My trigger aims to have Peasants automatically Mana Absorb a farm after the first manual user-commanded Mana Absorb.
Here is the trigger:
EVENTS:
--------Unit - A unit finishes casting an ability
CONDITIONS:
--------(Ability being cast) Equal to Mana Absorb
ACTIONS:
--------Unit - Set mana of (Casting unit) to 0.00
--------Unit - Order (Casting unit) to Undead Destroyer - Absorb Mana (Target unit of ability being cast)
Basically, the trigger fails because nothing happens after the initial user-commanded Mana Absorb. How can I fix this?
Also, can I get some ideas on how to get my Peasants to return to the nearest town hall after Mana Absorbing?
Thanks everyone for your help