- Joined
- Mar 3, 2006
- Messages
- 1,564
I thought of a spell named, Glass Shield or just shield where the caster creates a shield around him/her that shield absorbs damage then dissipates when the caster took total amount of X damage.
So I thought of creating a mana shield then do one of the following:
So if anyone has better idea for making this spell with another efficient way, just share your thoughts.
So I thought of creating a mana shield then do one of the following:
- Make the mana shield absorb damage 1 mana per 1 damage then calculate the amount of mana drained then subtract this number from a variable which represents the amount of damage the shield can absorb and in case the unit mana reached 0 then we use the life (but I guess that may interfere with other things)
- Use a damage detection system to subtract the amount of damage taken from the amount of the damage the shield can sustain.
So if anyone has better idea for making this spell with another efficient way, just share your thoughts.