diff --git a/Source/Framework/Constants/CliDBConst.cs b/Source/Framework/Constants/CliDBConst.cs index 69d8b470b..64a959bb5 100644 --- a/Source/Framework/Constants/CliDBConst.cs +++ b/Source/Framework/Constants/CliDBConst.cs @@ -1126,6 +1126,48 @@ namespace Framework.Constants Dps = 2 } + public enum ChrSpecialization + { + MageArcane = 62, + MageFire = 63, + MageFrost = 64, + PaladinHoly = 65, + PaladinProtection = 66, + PaladinRetribution = 70, + WarriorArms = 71, + WarriorFury = 72, + WarriorProtection = 73, + DruidBalance = 102, + DruidFeral = 103, + DruidGuardian = 104, + DruidRestoration = 105, + DeathKnightBlood = 250, + DeathKnightFrost = 251, + DeathKnightUnholy = 252, + HunterBeastMastery = 253, + HunterMarksmanship = 254, + HunterSurvival = 255, + PriestDiscipline = 256, + PriestHoly = 257, + PriestShadow = 258, + RogueAssassination = 259, + RogueOutlaw = 260, + RogueSubtely = 261, + ShamanElemental = 262, + ShamanEnhancement = 263, + ShamanRestoration = 264, + WarlockAffliction = 265, + WarlockDemonology = 266, + WarlockDestruction = 267, + MonkBrewmaster = 268, + MonkWindwalker = 269, + MonkMistweaver = 270, + DemonHunterHavoc = 577, + DemonHunterVengeance = 581, + EvokerDevastation = 1467, + EvokerPreservation = 1468 + } + public enum ContentTuningCalcType { Base = 0, diff --git a/Source/Framework/Constants/PlayerConst.cs b/Source/Framework/Constants/PlayerConst.cs index c54deb6f4..c49879140 100644 --- a/Source/Framework/Constants/PlayerConst.cs +++ b/Source/Framework/Constants/PlayerConst.cs @@ -154,45 +154,6 @@ namespace Framework.Constants Smashed = 3 } - public enum TalentSpecialization // talent tabs - { - MageArcane = 62, - MageFire = 63, - MageFrost = 64, - PaladinHoly = 65, - PaladinProtection = 66, - PaladinRetribution = 70, - WarriorArms = 71, - WarriorFury = 72, - WarriorProtection = 73, - DruidBalance = 102, - DruidFeralCombat = 103, - DruidRestoration = 104, - DeathKnightBlood = 250, - DeathKnightFrost = 251, - DeathKnightUnholy = 252, - HunterBeastMastery = 253, - HunterMarksman = 254, - HunterSurvival = 255, - PriestDiscipline = 256, - PriestHoly = 257, - PriestShadow = 258, - RogueAssassination = 259, - RogueCombat = 260, - RogueSubtlety = 261, - ShamanElemental = 262, - ShamanEnhancement = 263, - ShamanRestoration = 264, - WarlockAffliction = 265, - WarlockDemonology = 266, - WarlockDestruction = 267, - MonkBrewmaster = 268, - MonkBattledancer = 269, - MonkMistweaver = 270, - DemonHunterHavoc = 577, - DemonHunterVengeance = 581 - } - public enum SpecResetType { Talents = 0, diff --git a/Source/Scripts/Spells/Items.cs b/Source/Scripts/Spells/Items.cs index f51309956..394cf6c9d 100644 --- a/Source/Scripts/Spells/Items.cs +++ b/Source/Scripts/Spells/Items.cs @@ -4021,7 +4021,7 @@ namespace Scripts.Spells.Items if (!target) return; - void updateAuraIfInCorrectSpec(TalentSpecialization spec, AmalgamsSeventhSpineSpellIds aura) + void updateAuraIfInCorrectSpec(ChrSpecialization spec, AmalgamsSeventhSpineSpellIds aura) { if (target.GetPrimarySpecialization() != (uint)spec) target.RemoveAurasDueToSpell((uint)aura); @@ -4032,20 +4032,20 @@ namespace Scripts.Spells.Items switch (target.GetClass()) { case Class.Monk: - updateAuraIfInCorrectSpec(TalentSpecialization.MonkMistweaver, AmalgamsSeventhSpineSpellIds.FragileEchoesMonk); + updateAuraIfInCorrectSpec(ChrSpecialization.MonkMistweaver, AmalgamsSeventhSpineSpellIds.FragileEchoesMonk); break; case Class.Shaman: - updateAuraIfInCorrectSpec(TalentSpecialization.ShamanRestoration, AmalgamsSeventhSpineSpellIds.FragileEchoesShaman); + updateAuraIfInCorrectSpec(ChrSpecialization.ShamanRestoration, AmalgamsSeventhSpineSpellIds.FragileEchoesShaman); break; case Class.Priest: - updateAuraIfInCorrectSpec(TalentSpecialization.PriestDiscipline, AmalgamsSeventhSpineSpellIds.FragileEchoesPriestDiscipline); - updateAuraIfInCorrectSpec(TalentSpecialization.PriestHoly, AmalgamsSeventhSpineSpellIds.FragileEchoesPriestHoly); + updateAuraIfInCorrectSpec(ChrSpecialization.PriestDiscipline, AmalgamsSeventhSpineSpellIds.FragileEchoesPriestDiscipline); + updateAuraIfInCorrectSpec(ChrSpecialization.PriestHoly, AmalgamsSeventhSpineSpellIds.FragileEchoesPriestHoly); break; case Class.Paladin: - updateAuraIfInCorrectSpec(TalentSpecialization.PaladinHoly, AmalgamsSeventhSpineSpellIds.FragileEchoesPaladin); + updateAuraIfInCorrectSpec(ChrSpecialization.PaladinHoly, AmalgamsSeventhSpineSpellIds.FragileEchoesPaladin); break; case Class.Druid: - updateAuraIfInCorrectSpec(TalentSpecialization.DruidRestoration, AmalgamsSeventhSpineSpellIds.FragileEchoesDruid); + updateAuraIfInCorrectSpec(ChrSpecialization.DruidRestoration, AmalgamsSeventhSpineSpellIds.FragileEchoesDruid); break; default: break; diff --git a/Source/Scripts/Spells/Paladin.cs b/Source/Scripts/Spells/Paladin.cs index e33dd2b9c..3b884ac3b 100644 --- a/Source/Scripts/Spells/Paladin.cs +++ b/Source/Scripts/Spells/Paladin.cs @@ -310,7 +310,7 @@ namespace Scripts.Spells.Paladin if (caster != null) { // 243597 is also being cast as protection, but CreateObject is not sent, either serverside areatrigger for this aura or unused - also no visual is seen - if (unit == caster && caster.IsPlayer() && caster.ToPlayer().GetPrimarySpecialization() == (uint)TalentSpecialization.PaladinProtection) + if (unit == caster && caster.IsPlayer() && caster.ToPlayer().GetPrimarySpecialization() == (uint)ChrSpecialization.PaladinProtection) caster.CastSpell(caster, SpellIds.ConsecrationProtectionAura); if (caster.IsValidAttackTarget(unit)) diff --git a/Source/Scripts/Spells/Shaman.cs b/Source/Scripts/Spells/Shaman.cs index 8b44f4ef8..8be8f4a25 100644 --- a/Source/Scripts/Spells/Shaman.cs +++ b/Source/Scripts/Spells/Shaman.cs @@ -537,7 +537,7 @@ namespace Scripts.Spells.Shaman Player player = GetCaster().ToPlayer(); byte slot = EquipmentSlot.MainHand; - if (player.GetPrimarySpecialization() == (uint)TalentSpecialization.ShamanEnhancement) + if (player.GetPrimarySpecialization() == (uint)ChrSpecialization.ShamanEnhancement) slot = EquipmentSlot.OffHand; Item targetItem = player.GetItemByPos(InventorySlots.Bag0, slot); diff --git a/Source/Scripts/Spells/Warrior.cs b/Source/Scripts/Spells/Warrior.cs index 918c4364c..4a14d3f98 100644 --- a/Source/Scripts/Spells/Warrior.cs +++ b/Source/Scripts/Spells/Warrior.cs @@ -696,7 +696,7 @@ namespace Scripts.Spells.Warrior void HandleOnProc(AuraEffect aurEff, ProcEventInfo procInfo) { - if (procInfo.GetActor().GetTypeId() == TypeId.Player && procInfo.GetActor().ToPlayer().GetPrimarySpecialization() == (uint)TalentSpecialization.WarriorFury) + if (procInfo.GetActor().GetTypeId() == TypeId.Player && procInfo.GetActor().ToPlayer().GetPrimarySpecialization() == (uint)ChrSpecialization.WarriorFury) PreventDefaultAction(); procInfo.GetActor().GetSpellHistory().ResetCooldown(SpellIds.ImpendingVictory, true);