Core/Misc: Turn ChrSpecialization into enum
Port From (https://github.com/TrinityCore/TrinityCore/commit/98007f859b7318570c0c923a00aa32fc485c8ec8)
This commit is contained in:
@@ -3115,7 +3115,7 @@ namespace Game.Spells
|
||||
}
|
||||
case SpellProcsPerMinuteModType.Class:
|
||||
{
|
||||
if (caster.GetClassMask().HasAnyFlag((uint)mod.Param))
|
||||
if (caster.GetClassMask().HasAnyFlag(mod.Param))
|
||||
ppm *= 1.0f + mod.Coeff;
|
||||
break;
|
||||
}
|
||||
@@ -3123,7 +3123,7 @@ namespace Game.Spells
|
||||
{
|
||||
Player plrCaster = caster.ToPlayer();
|
||||
if (plrCaster)
|
||||
if (plrCaster.GetPrimarySpecialization() == mod.Param)
|
||||
if (plrCaster.GetPrimarySpecialization() == (ChrSpecialization)mod.Param)
|
||||
ppm *= 1.0f + mod.Coeff;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user