Detecting whenever unit loses mana

Dinowc

don't expect anything, prepare for everything
Reaction score
223
how to detect whenever a unit loses mana and how much?

I started making my first real vJass spell and I really need it

is it possible?
 
Reaction score
341
Unless there is an event for this, you will have to store every unit in an array (or struct) as well as its current mana.

Then run a timer checking if the units mana is less than the one in the array, if so execute your trigger.
 

Light Alkmst

New Member
Reaction score
20
You could try a combination of EVENT_UNIT_SPELL_EFFECT (general use of mana) and EVENT_UNIT_DAMAGED (if you have mana shield or feedback as well) to check whenever someone loses mana.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top