Core/Misc: Reduce number of player spec hardcoded checks

Port From (https://github.com/TrinityCore/TrinityCore/commit/054723241eaf1abe7d45a96460e84b9ff113ffb2)
This commit is contained in:
hondacrx
2023-09-13 19:47:12 -04:00
parent 070b35d6e8
commit 7cb343e4f9
6 changed files with 22 additions and 47 deletions
+1 -1
View File
@@ -676,7 +676,7 @@ namespace Scripts.Spells.Druid
return SpellCastResult.BadTargets;
ChrSpecializationRecord spec = CliDB.ChrSpecializationStorage.LookupByKey(target.GetPrimarySpecialization());
if (spec == null || spec.Role != 1)
if (spec == null || spec.GetRole() != ChrSpecializationRole.Healer)
return SpellCastResult.BadTargets;
return SpellCastResult.SpellCastOk;