- Joined
- May 16, 2004
- Messages
- 355
I got bored and was making a spell that would deal bonus damage based on the damage it travelled to the target. Now this was fine until I hit a bit of a wall.
My advanced version of the spell has improved damage calculation but the problem now is this. The units are stored as variables but I can't recycle units that don't have the buff that the arrow puts on them. Now this is all well and good but the problem is that units that 1) die before getting hit, 2) get missed by the arrow don't get the buff. Anyone have a decent way of recycling the space they take in the variables?
My advanced version of the spell has improved damage calculation but the problem now is this. The units are stored as variables but I can't recycle units that don't have the buff that the arrow puts on them. Now this is all well and good but the problem is that units that 1) die before getting hit, 2) get missed by the arrow don't get the buff. Anyone have a decent way of recycling the space they take in the variables?