• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[Solved] Condition for buff doesn't pass when it should?

Level 24
Joined
Dec 3, 2020
Messages
663
Greetings,

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:
Top