aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Loot
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-04-22 20:57:05 +0200
committerShauren <shauren.trinity@gmail.com>2022-04-22 20:57:05 +0200
commit372c84e998a090185f822a228c407911cbc821f1 (patch)
treec7327a930be730d986cf12246dbfcafcdb8f3a4c /src/server/game/Loot
parent8ecb16fde4cf71851c46d78471b667b56f55bd17 (diff)
Core/Items: Implemented item effect trigger type 7 (On Looted)
Diffstat (limited to 'src/server/game/Loot')
-rw-r--r--src/server/game/Loot/Loot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Loot/Loot.cpp b/src/server/game/Loot/Loot.cpp
index e4784f37650..71704029fb6 100644
--- a/src/server/game/Loot/Loot.cpp
+++ b/src/server/game/Loot/Loot.cpp
@@ -88,7 +88,7 @@ bool LootItem::AllowedForPlayer(Player const* player, bool isGivenByMasterLooter
for (ItemEffectEntry const* itemEffect : pProto->Effects)
{
- if (itemEffect->TriggerType != ITEM_SPELLTRIGGER_LEARN_SPELL_ID)
+ if (itemEffect->TriggerType != ITEM_SPELLTRIGGER_ON_LEARN)
continue;
if (player->HasSpell(itemEffect->SpellID))
@@ -101,7 +101,7 @@ bool LootItem::AllowedForPlayer(Player const* player, bool isGivenByMasterLooter
{
for (ItemEffectEntry const* itemEffect : pProto->Effects)
{
- if (itemEffect->TriggerType != ITEM_SPELLTRIGGER_LEARN_SPELL_ID)
+ if (itemEffect->TriggerType != ITEM_SPELLTRIGGER_ON_LEARN)
continue;
if (player->HasSpell(itemEffect->SpellID))