From 35b5a28821f4e21f025cb793f9d11fc9345175c9 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 1 Jun 2022 13:47:28 -0400 Subject: [PATCH] Core/Spells: Removed SPELL_SPECIFIC_JUDGEMENT Port From (https://github.com/TrinityCore/TrinityCore/commit/4ef983f689177660f2d4c16c7063040c7fb0236d) --- Source/Framework/Constants/Spells/SpellConst.cs | 1 - Source/Game/Spells/Auras/Aura.cs | 1 - Source/Game/Spells/SpellInfo.cs | 13 ------------- 3 files changed, 15 deletions(-) diff --git a/Source/Framework/Constants/Spells/SpellConst.cs b/Source/Framework/Constants/Spells/SpellConst.cs index 45babed91..4a55aa770 100644 --- a/Source/Framework/Constants/Spells/SpellConst.cs +++ b/Source/Framework/Constants/Spells/SpellConst.cs @@ -286,7 +286,6 @@ namespace Framework.Constants MageArmor = 9, ElementalShield = 10, MagePolymorph = 11, - Judgement = 13, WarlockCorruption = 17, Food = 19, Drink = 20, diff --git a/Source/Game/Spells/Auras/Aura.cs b/Source/Game/Spells/Auras/Aura.cs index fbd1fec19..431d81e12 100644 --- a/Source/Game/Spells/Auras/Aura.cs +++ b/Source/Game/Spells/Auras/Aura.cs @@ -1061,7 +1061,6 @@ namespace Game.Spells // spell with single target specific types switch (spec) { - case SpellSpecificType.Judgement: case SpellSpecificType.MagePolymorph: if (aura.GetSpellInfo().GetSpellSpecific() == spec) return true; diff --git a/Source/Game/Spells/SpellInfo.cs b/Source/Game/Spells/SpellInfo.cs index 354e0fb16..e4233e9ad 100644 --- a/Source/Game/Spells/SpellInfo.cs +++ b/Source/Game/Spells/SpellInfo.cs @@ -724,14 +724,6 @@ namespace Game.Spells if (HasAttribute(SpellAttr5.LimitN)) return true; - switch (GetSpellSpecific()) - { - case SpellSpecificType.Judgement: - return true; - default: - break; - } - return false; } @@ -779,7 +771,6 @@ namespace Game.Spells case SpellSpecificType.Curse: case SpellSpecificType.Bane: case SpellSpecificType.Aspect: - case SpellSpecificType.Judgement: case SpellSpecificType.WarlockCorruption: return spellSpec == spellInfo.GetSpellSpecific(); default: @@ -1577,10 +1568,6 @@ namespace Game.Spells if (SpellFamilyFlags[0].HasAnyFlag(0x00002190u)) _spellSpecific = SpellSpecificType.Hand; - // Judgement - if (Id == 20271) - _spellSpecific = SpellSpecificType.Judgement; - // only paladin auras have this (for palaldin class family) switch (Id) {