• 🏆 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] Condition for buff doesn't pass when it should?

Level 23
Dec 3, 2020

I made a trigger for when Anti Magic Shell is cast, an ability to be added to the target unit of Anti Magic Shell; adding the +3 armor item ability which has been transformed to a normal ability.

The trigger goes like this:

Event -
- Every 1 seconds of game time
Conditions -
Actions -
- Unit Group: pick all units in playable map area and (do Actions):
- If Picked Unit has buff Anti Magic Shell Equal to True:
- Do Nothing
- Else:
- Unit - Remove "Mage Armor Bonus +3" from Picked Unit.

The problem is that it removes the ability from the unit that gives it +3 armor.
I turned off the trigger and the armor is added so that's not the issue (armor is added in another trigger).

Any idea why the condition is passing as False?

EDIT: SOLVED ---> turns out the buff did not appear for unknown reasons even though I added it in the object editor's ability Buffs field. The fix was that I just copy-pasted another buff and added it in its place and it works perfectly!
Last edited: