mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Core/Achievements: Correct condition for ACHIEVEMENT_CRITERIA_ADDITIONAL_CONDITION_TARGET_LEVEL, thanks Lordron
This commit is contained in:
@@ -2144,7 +2144,7 @@ bool AchievementMgr::CanUpdateCriteria(AchievementCriteriaEntry const* criteria,
|
||||
return false;
|
||||
break;
|
||||
case ACHIEVEMENT_CRITERIA_ADDITIONAL_CONDITION_TARGET_LEVEL:
|
||||
if (!unit && unit->getLevel() != value)
|
||||
if (!unit || unit->getLevel() != value)
|
||||
return false;
|
||||
break;
|
||||
case ACHIEVEMENT_CRITERIA_ADDITIONAL_CONDITION_TARGET_HEALTH_PERCENT_BELOW:
|
||||
|
||||
Reference in New Issue
Block a user