mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-06 17:08:23 +01:00
Core/Player: fixed an exploit that was causing seasonal currency counter to increase from refunding currency based items
This commit is contained in:
@@ -6779,7 +6779,7 @@ void Player::ModifyCurrency(uint32 id, int32 count, bool printLog/* = true*/, bo
|
||||
|
||||
if (uint32(newTotalCount) != oldTotalCount)
|
||||
{
|
||||
if (currency->Flags & CURRENCY_FLAG_COUNT_SEASON_TOTAL)
|
||||
if (currency->Flags & CURRENCY_FLAG_COUNT_SEASON_TOTAL && !isRefund)
|
||||
hasSeasonCount = true;
|
||||
|
||||
if (itr->second.state != PLAYERCURRENCY_NEW)
|
||||
|
||||
Reference in New Issue
Block a user