mirror of
https://github.com/araxiaonline/mod-azerothshard.git
synced 2026-06-13 01:32:21 -04:00
fix crash
This commit is contained in:
@@ -17,6 +17,9 @@ void ChallengeModeMgr::LoadConfig(bool /* reload */)
|
||||
}
|
||||
|
||||
bool ChallengeModeMgr::isEligibleForReward(Player const *player) {
|
||||
if (!player->IsInWorld())
|
||||
return true;
|
||||
|
||||
// disable rewards only for dungeons
|
||||
if (!player->GetMap()->IsDungeon() && !player->GetMap()->IsRaid())
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user