Core/Player: Clean up duel related code. Fix a check for abusive client behavior, sanitize pointer usage, code style. Closes #22374.

(cherry picked from commit 003cc56d70)
This commit is contained in:
Treeston
2018-09-17 12:40:42 +02:00
committed by Shauren
parent 5ed891a0f0
commit 7c062db94b
8 changed files with 96 additions and 106 deletions

View File

@@ -236,7 +236,7 @@ class achievement_tilted : public AchievementCriteriaScript
player->GetAreaId() == AREA_RING_OF_HORDE_VALIANTS ||
player->GetAreaId() == AREA_RING_OF_CHAMPIONS;
return checkArea && player->duel && player->duel->isMounted;
return checkArea && player->duel && player->duel->IsMounted;
}
};