From 17107956c3306209cf865404116419889cb8a0e3 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 1 Sep 2019 10:44:08 -0400 Subject: [PATCH] Core/Spell: disable proc for magnet auras, they're handled differently Port From (https://github.com/TrinityCore/TrinityCore/commit/a098405a737016fe9212d9542857ed52da4b42b7) --- Source/Game/Spells/SpellManager.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Source/Game/Spells/SpellManager.cs b/Source/Game/Spells/SpellManager.cs index d0249a780..9e76d53b3 100644 --- a/Source/Game/Spells/SpellManager.cs +++ b/Source/Game/Spells/SpellManager.cs @@ -2473,6 +2473,13 @@ namespace Game.Entities spellInfo.GetEffect(0).TargetA = new SpellImplicitTargetInfo(Targets.UnitCaster); spellInfo.GetEffect(0).TargetB = new SpellImplicitTargetInfo(); break; + case 56690: // Thrust Spear + case 60586: // Mighty Spear Thrust + case 60776: // Claw Swipe + case 60881: // Fatal Strike + case 60864: // Jaws of Death + spellInfo.AttributesEx4 |= SpellAttr4.FixedDamage; + break; case 31344: // Howl of Azgalor spellInfo.GetEffect(0).RadiusEntry = CliDB.SpellRadiusStorage.LookupByKey(EffectRadiusIndex.Yards100); // 100yards instead of 50000?! break; @@ -3003,6 +3010,10 @@ namespace Game.Entities spellInfo.ConeAngle = 90.0f; } + // disable proc for magnet auras, they're handled differently + if (spellInfo.HasAura(Difficulty.None, AuraType.SpellMagnet)) + spellInfo.ProcFlags = 0; + if (spellInfo.ActiveIconFileDataId == 135754) // flight spellInfo.Attributes |= SpellAttr0.Passive; }