Skip to content

Commit 02f67d1

Browse files
authored
Merge pull request #7 from heyitsbench/arena-match-validity
Check for arena match validity in line with AC checks.
2 parents ea40795 + a9e7978 commit 02f67d1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/mod_pvp_quests_scripts.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ class BgQuestRewardScript : public BGScript
128128
if (!bg->isRated())
129129
return; // Skirmish (unrated arena match)
130130

131+
bool matchValidity = bg->GetStatus() == STATUS_IN_PROGRESS && bg->GetStartTime() >= uint32(bg->GetStartDelayTime()) + 15000; // Treated in upstream AC as `bValidArena`
132+
133+
if (!matchValidity)
134+
return;
135+
131136
if (player->HasQuest(QUEST_ARENA_DAILY))
132137
player->KilledMonsterCredit(CREATURE_ARENA_COMPLETED);
133138

0 commit comments

Comments
 (0)