Jump to content

[fix]CONDITION_NOITEM


Guest virusav

Recommended Posts

Condition should consider an item in the bank, otherwise you may get some an item, for example, tabard.

diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp
index 42570d6..6e84d2c 100644
--- a/src/game/ObjectMgr.cpp
+++ b/src/game/ObjectMgr.cpp
@@ -8095,7 +8095,7 @@ bool PlayerCondition::Meets(Player const * player) const
            return false;
        }
        case CONDITION_NOITEM:
-            return !player->HasItemCount(value1, value2);
+            return !player->HasItemCount(value1, value2, true);
        case CONDITION_SPELL:
        {
            switch(value2) 

Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use