summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShinDarth <borzifrancesco@gmail.com>2016-11-12 18:11:51 +0100
committerShinDarth <borzifrancesco@gmail.com>2016-11-12 18:11:51 +0100
commitd5ab3622777b5de4563e45e91eccb6e3429c3f7d (patch)
tree4a4ac16a57790e2a513107bb022cac73b1474aa9 /src
parent7128d14b09dde8facc183a26aba168bfb6fa87fd (diff)
Core/LootMgr: prevent loot issues in case of crossfaction groups
Diffstat (limited to 'src')
-rw-r--r--src/game/Loot/LootMgr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Loot/LootMgr.cpp b/src/game/Loot/LootMgr.cpp
index 0de1da49da..5c1bb5a624 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