• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[Solved] Remove Ability Not Working

Not open for further replies.
Level 6
May 15, 2009
I am having trouble making this spell/trigger work. Since quite simply, the remove ability function does not seem to work.

I want the spell to increase stats for as long as the buff is on, I use Attribute Bonus with levels for setting the stat bonus(it changes with each level)

  • Blessing of Ra
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • Ability being cast Equal to Blessing of Ra
    • Actions
      • Unit - Add Blessing of Ra (Stat Bonus) to (Target unit of ability being cast)
      • Unit - Set level of Blessing of Ra (Stat Bonus) for (Target unit of ability being cast) to (Level of Blessing of Ra for (Triggering unit))
      • Trigger - run Blessing of Ra Remove checking conditions
Blessing of Ra Remove
  • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
    • Loop - Actions
      • Unit Group - Add (Picked unit) to BOR_Group
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Picked unit has buff Blessing of Ra) Equal to True
        • Then - Actions
          • Wait 9 seconds.
          • Unit - Remove Blessing of Ra (Stat Bonus) from (Picked unit)
          • Custom script call DestroyGroup(udg_BOR_Group)
        • Else - Actions
          • Custom scripy call DestroyGroup(udg_BOR_Group

But the stat bonus never goes away!
Last edited by a moderator:
Level 6
May 15, 2009
Thx alot for the tip, although when I tried a countdown timer instead, it still dident work. However, I found another solution

I simply made the the trigger to remove the stat bonus have a 10 countdown before starting. And it now works!
Thx for help anyway +rep for tip
Not open for further replies.