• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Bit of a Question

Status
Not open for further replies.
Level 7
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?
 
Status
Not open for further replies.
Top