Core/LootMgr: prevent loot issues in case of crossfaction groups
This commit is contained in:
parent
7128d14b09
commit
d5ab362277
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue