Core/Misc: Turn ChrSpecialization into enum
Port From (https://github.com/TrinityCore/TrinityCore/commit/98007f859b7318570c0c923a00aa32fc485c8ec8)
This commit is contained in:
@@ -3112,7 +3112,7 @@ namespace Game.Achievements
|
||||
break;
|
||||
case ModifierTreeType.PlayerLootSpecializationMatchesRole: // 263
|
||||
{
|
||||
ChrSpecializationRecord spec = CliDB.ChrSpecializationStorage.LookupByKey(referencePlayer.GetPrimarySpecialization());
|
||||
ChrSpecializationRecord spec = referencePlayer.GetPrimarySpecializationEntry();
|
||||
if (spec == null || spec.Role != reqValue)
|
||||
return false;
|
||||
break;
|
||||
@@ -3256,7 +3256,7 @@ namespace Game.Achievements
|
||||
return false;
|
||||
}
|
||||
case ModifierTreeType.PlayerSpecialization: // 279
|
||||
if (referencePlayer.GetPrimarySpecialization() != reqValue)
|
||||
if (referencePlayer.GetPrimarySpecialization() != (ChrSpecialization)reqValue)
|
||||
return false;
|
||||
break;
|
||||
case ModifierTreeType.PlayerMapOrCosmeticChildMap: // 280
|
||||
|
||||
Reference in New Issue
Block a user