mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Core/Vendors: Fix typo that prevented alliance GM from viewing horde items in vendors
--HG-- branch : trunk
This commit is contained in:
@@ -771,7 +771,7 @@ void WorldSession::SendListInventory(uint64 vendorguid)
|
||||
// `item_template`.`Faction` is actually `Team`.
|
||||
// 1 == Horde / 2 == Alliance. Field will be renamed in later
|
||||
// patch.
|
||||
if (pProto->Flags2 & ITEM_FLAGS_EXTRA_HORDE_ONLY && _player->GetTeam() == ALLIANCE || pProto->Flags2 == ITEM_FLAGS_EXTRA_ALLIANCE_ONLY && _player->GetTeam() == HORDE && !_player->isGameMaster())
|
||||
if (!_player->isGameMaster() && ((pProto->Flags2 & ITEM_FLAGS_EXTRA_HORDE_ONLY && _player->GetTeam() == ALLIANCE) || (pProto->Flags2 == ITEM_FLAGS_EXTRA_ALLIANCE_ONLY && _player->GetTeam() == HORDE)))
|
||||
continue;
|
||||
++count;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user