Fixed valid arena condition

maybe we should remove it? (not blizzlike)
This commit is contained in:
Yehonal
2017-10-11 02:15:25 +00:00
parent 9c92f4f32e
commit 4df28fd29c

View File

@@ -720,7 +720,7 @@ void Battleground::EndBattleground(TeamId winnerTeamId)
// set as fast as possible // set as fast as possible
if (GetStatus() == STATUS_WAIT_LEAVE) if (GetStatus() == STATUS_WAIT_LEAVE)
return; return;
uint32 startDelay = StartDelayTimes[BG_STARTING_EVENT_FIRST]; // = BG_START_DELAY_1M = 60000 for all arenas uint32 startDelay = GetStartDelayTime();
bool bValidArena = isArena() && isRated() && GetStatus() == STATUS_IN_PROGRESS && GetStartTime() >= startDelay+15000; // pussywizard: only if arena lasted at least 15 secs bool bValidArena = isArena() && isRated() && GetStatus() == STATUS_IN_PROGRESS && GetStartTime() >= startDelay+15000; // pussywizard: only if arena lasted at least 15 secs
SetStatus(STATUS_WAIT_LEAVE); SetStatus(STATUS_WAIT_LEAVE);