• 🏆 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!

[Solved] Why doesn't this spell work?

Status
Not open for further replies.
This spell is supposed to damage all Undead units around the caster and heal allied units but it does nothing, nothing at all not to friendlies or enemies.

attachment.php

attachment.php
 

Attachments

  • Screen shot 2015-07-12 at 17.39.55.png
    Screen shot 2015-07-12 at 17.39.55.png
    88.3 KB · Views: 111
  • Screen shot 2015-07-12 at 17.40.15.png
    Screen shot 2015-07-12 at 17.40.15.png
    127.4 KB · Views: 98
Check if this spell works twice...
I think only the first cast will work, the second will not do anything any more.
If so, then remove the "DestroyGroup()" custom texts at the bottom.

It works fine cast after cast. I'd just been a bit dumb about the picked unit and matching unit conditions parts.
 
Check if this spell works twice...
I think only the first cast will work, the second will not do anything any more.
If so, then remove the "DestroyGroup()" custom texts at the bottom.

Those are fine, DestroyGroup() is used to obliterate group leak, but the variable still existent with null value for later usage (and the old ref don't leak).
 
Status
Not open for further replies.
Top