Hello people of Hive!
I have created a spell in which an arrow is fired towards an enemy unit and drains 50/100/150 of their mana, the problem is when the enemy's mana is less than the amount of mana to be drained the caster still gets the amount of mana to be drained.
ex. I used the skill while on level 3 (suppose to drain 150) but the enemy's mana is only 80, the amount of mana I gain is still 150.
how do I gain equal to the amount of mana drained?
Thanks in advance
I have created a spell in which an arrow is fired towards an enemy unit and drains 50/100/150 of their mana, the problem is when the enemy's mana is less than the amount of mana to be drained the caster still gets the amount of mana to be drained.
ex. I used the skill while on level 3 (suppose to drain 150) but the enemy's mana is only 80, the amount of mana I gain is still 150.
how do I gain equal to the amount of mana drained?
Thanks in advance