Core/LootMgr: prevent loot issues in case of crossfaction groups
This commit is contained in:
@@ -391,10 +391,10 @@ bool LootItem::AllowedForPlayer(Player const* player) const
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
// not show loot for not own team
|
// 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;
|
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;
|
return false;
|
||||||
|
|
||||||
// check quest requirements
|
// check quest requirements
|
||||||
|
|||||||
Reference in New Issue
Block a user