• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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