mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Misc: Updated SpellCastResult, TradeStatus, InventoryResult and defined PlayerFlagsEx
This commit is contained in:
@@ -651,7 +651,9 @@ void WorldSession::HandleInitiateTradeOpcode(WorldPackets::Trade::InitiateTrade&
|
||||
return;
|
||||
}
|
||||
|
||||
if (pOther->GetTeam() != _player->GetTeam() &&
|
||||
if ((pOther->GetTeam() != _player->GetTeam() ||
|
||||
pOther->HasFlag(PLAYER_FLAGS_EX, PLAYER_FLAGS_EX_MERCENARY_MODE) ||
|
||||
_player->HasFlag(PLAYER_FLAGS_EX, PLAYER_FLAGS_EX_MERCENARY_MODE)) &&
|
||||
(!sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_TRADE) &&
|
||||
!HasPermission(rbac::RBAC_PERM_ALLOW_TWO_SIDE_TRADE)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user