summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2017-10-11 02:15:25 +0000
committerYehonal <yehonal.azeroth@gmail.com>2017-10-12 16:25:04 +0200
commit4df28fd29c6978e669f9950bd38e853fabf9fc8d (patch)
treefc8e4adf2b0896e33d593b18888ce7ee92700014
parent9c92f4f32e0713e38616d4766aaf9e93ccdca945 (diff)
Fixed valid arena condition
maybe we should remove it? (not blizzlike)
-rw-r--r--src/game/Battlegrounds/Battleground.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Battlegrounds/Battleground.cpp b/src/game/Battlegrounds/Battleground.cpp
index 1d38161491..144eb65465 100644
--- a/src/game/Battlegrounds/Battleground.cpp
+++ b/src/game/Battlegrounds/Battleground.cpp
@@ -720,7 +720,7 @@ void Battleground::EndBattleground(TeamId winnerTeamId)
// set as fast as possible
if (GetStatus() == STATUS_WAIT_LEAVE)
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
SetStatus(STATUS_WAIT_LEAVE);