fix(Core/PlayerScript) Align player script function names (#21020)
Co-authored-by: sudlud <sudlud@users.noreply.github.com>
This commit is contained in:
@@ -636,7 +636,7 @@ void WorldSession::HandleInitiateTradeOpcode(WorldPacket& recvPacket)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!sScriptMgr->CanInitTrade(_player, pOther))
|
||||
if (!sScriptMgr->OnPlayerCanInitTrade(_player, pOther))
|
||||
return;
|
||||
|
||||
// OK start trade
|
||||
@@ -702,7 +702,7 @@ void WorldSession::HandleSetTradeItemOpcode(WorldPacket& recvPacket)
|
||||
}
|
||||
|
||||
// PlayerScript Hook for checking traded items if we want to filter them in a custom module
|
||||
if (!sScriptMgr->CanSetTradeItem(_player, item, tradeSlot))
|
||||
if (!sScriptMgr->OnPlayerCanSetTradeItem(_player, item, tradeSlot))
|
||||
{
|
||||
// Do not send TRADE_STATUS_TRADE_CANCELED because it will cause double display of "Transaction canceled" notification
|
||||
// On the trade initiator screen
|
||||
|
||||
Reference in New Issue
Block a user