Implemented Basic Creature Scaling

Trainer followup
Misc Fixes
This commit is contained in:
hondacrx
2017-07-31 14:18:07 -04:00
parent 890ce8d81a
commit 473cea0f06
26 changed files with 370 additions and 96 deletions
+2 -2
View File
@@ -1263,7 +1263,7 @@ namespace Game.Achievements
return false;
break;
case CriteriaAdditionalCondition.TargetLevel: // 40
if (unit == null || unit.getLevel() != reqValue)
if (unit == null || unit.GetLevelForTarget(referencePlayer) != reqValue)
return false;
break;
case CriteriaAdditionalCondition.TargetZone: // 41
@@ -2035,7 +2035,7 @@ namespace Game.Achievements
case CriteriaDataType.TLevel:
if (target == null)
return false;
return target.getLevel() >= Level.Min;
return target.GetLevelForTarget(source) >= Level.Min;
case CriteriaDataType.TGender:
if (target == null)
return false;