Core/Player: fixed an exploit that was causing seasonal currency counter to increase from refunding currency based items

This commit is contained in:
Ovahlord
2021-04-30 13:17:18 +02:00
parent 9b7d0d03cf
commit c764cce4a3

View File

@@ -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)