- Joined
- Dec 3, 2018
- Messages
- 896
I cast the spell. the unit gets +100 mana wait 1 sec it gets another 100 mana.
with triggers
pls help
with triggers
pls help
You don't need to put triggering unit into a local/variable for the mana cast instant, it'll work anyways because its the unit who triggered the trigger.You'll need a Unit variable called TempUnit
Mana Cast Instant
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Mana Ability (Instant)
Actions
Custom script: local unit udg_TempUnit = GetTriggerUnit()
Unit - Set mana of TempUnit to ((Mana of TempUnit) + 100.00)
Wait 1.00 seconds
Unit - Set mana of TempUnit to ((Mana of TempUnit) + 100.00)
Custom script: set udg_TempUnit = null
Mana Cast Target Unit
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Mana Ability (Target Unit)
Actions
Custom script: local unit udg_TempUnit = GetSpellTargetUnit()
Unit - Set mana of TempUnit to ((Mana of TempUnit) + 100.00)
Wait 1.00 seconds
Unit - Set mana of TempUnit to ((Mana of TempUnit) + 100.00)
Custom script: set udg_TempUnit = null
You can solve that by using a dummy unit and order it to cast rejuvenation which restore mana instead of using the trigger mentioned above.If I make them both based on the rejuvelation spell... it bugs.
Lets just remove all damage/heal over time skills from the game.Why do exactly need that wait, why not directly add +200 mana points? What's the difference?
Yeah, ain't nobody got time fo dat.Lets just remove all damage/heal over time skills from the game.