• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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

Status
Not open for further replies.
Level 29
Joined
Dec 3, 2020
Messages
1,033
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:
Status
Not open for further replies.
Top