From d5ab3622777b5de4563e45e91eccb6e3429c3f7d Mon Sep 17 00:00:00 2001 From: ShinDarth Date: Sat, 12 Nov 2016 18:11:51 +0100 Subject: [PATCH] Core/LootMgr: prevent loot issues in case of crossfaction groups --- src/game/Loot/LootMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/Loot/LootMgr.cpp b/src/game/Loot/LootMgr.cpp index 0de1da49d..5c1bb5a62 100644 --- a/src/game/Loot/LootMgr.cpp +++ b/src/game/Loot/LootMgr.cpp @@ -391,10 +391,10 @@ bool LootItem::AllowedForPlayer(Player const* player) const return false; // not show loot for not own team - if ((pProto->Flags2 & ITEM_FLAGS_EXTRA_HORDE_ONLY) && player->GetTeamId() != TEAM_HORDE) + if ((pProto->Flags2 & ITEM_FLAGS_EXTRA_HORDE_ONLY) && player->GetTeamId(true) != TEAM_HORDE) return false; - if ((pProto->Flags2 & ITEM_FLAGS_EXTRA_ALLIANCE_ONLY) && player->GetTeamId() != TEAM_ALLIANCE) + if ((pProto->Flags2 & ITEM_FLAGS_EXTRA_ALLIANCE_ONLY) && player->GetTeamId(true) != TEAM_ALLIANCE) return false; // check quest requirements