m4chines
New Member
- Reaction score
- 0
Hi, I have a spell that deals with the level of a hero, it does something at the beginning of the spell adds the a number equal to the level of the hero, than it takes the number away. So if the hero levels up during the duration of the spell it will take away more than it needs to.
I could solve this by setting a temp variable equal to the level of the hero than at the end of the spell i could just subtract the temp var instead of the level of the hero. If i use a global variable it will not work because if more than one person casts the spell it will mess things up.
I could solve this by setting a temp variable equal to the level of the hero than at the end of the spell i could just subtract the temp var instead of the level of the hero. If i use a global variable it will not work because if more than one person casts the spell it will mess things up.