tommerbob
Minecraft. :D
- Reaction score
- 110
One of my spells is that a hero receives bonus mana each second for X seconds. If the hero is an enemy, any bonus mana that has not been used within the X seconds will combust, dealing damage equal to that amount.
My question is finding the most simple solution to tracking the bonus mana variable. It seems simple, but then I run into 2 problems: 1) detecting when/if the target hero casts a spell and uses some of that mana, and 2) mana regeneration of the hero.
I hope I made that clear enough to understand. Any thoughts anyone? I'm kinda at a loss how to trigger this.
EDIT: Now that I think about it more, mana regen is not a problem, because I'm only worrying about the triggered mana amount, and whether or not the target hero uses that mana. So my problem is simply (or maybe not so simply...): What is the easiest way to track if/when the target hero casts a spell, and the mana cost of that spell?
My question is finding the most simple solution to tracking the bonus mana variable. It seems simple, but then I run into 2 problems: 1) detecting when/if the target hero casts a spell and uses some of that mana, and 2) mana regeneration of the hero.
I hope I made that clear enough to understand. Any thoughts anyone? I'm kinda at a loss how to trigger this.
EDIT: Now that I think about it more, mana regen is not a problem, because I'm only worrying about the triggered mana amount, and whether or not the target hero uses that mana. So my problem is simply (or maybe not so simply...): What is the easiest way to track if/when the target hero casts a spell, and the mana cost of that spell?