• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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