From b97078e44ac4b4cbd0950684572ade5d02bed450 Mon Sep 17 00:00:00 2001 From: Hondacrx Date: Mon, 26 Aug 2024 19:56:15 -0400 Subject: [PATCH] Core/Spells: Implemented SPELL_ATTR11_IGNORE_SPELLCAST_OVERRIDE_SHAPESHIFT_REQUIREMENTS Port From (https://github.com/TrinityCore/TrinityCore/commit/cb335c32740d0af87ae693e4ea3833236354d080) --- Source/Framework/Constants/Spells/SpellConst.cs | 2 +- Source/Game/Entities/Unit/Unit.Spells.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Framework/Constants/Spells/SpellConst.cs b/Source/Framework/Constants/Spells/SpellConst.cs index 0e38e0043..d262286ef 100644 --- a/Source/Framework/Constants/Spells/SpellConst.cs +++ b/Source/Framework/Constants/Spells/SpellConst.cs @@ -2045,7 +2045,7 @@ namespace Framework.Constants Unk6 = 0x40, // 6 RankIgnoresCasterLevel = 0x80, // 7 Spell_C_GetSpellRank returns SpellLevels.MaxLevel * 5 instead of std::min(SpellLevels.MaxLevel, caster.Level) * 5 Unk8 = 0x100, // 8 - Unk9 = 0x200, // 9 + IgnoreSpellcastOverrideShapeshiftRequirements = 0x200, // Ignore Spellcast Override Shapeshift Requirements Unk10 = 0x400, // 10 NotUsableInInstances = 0x800, // 11 Unk12 = 0x1000, // 12 diff --git a/Source/Game/Entities/Unit/Unit.Spells.cs b/Source/Game/Entities/Unit/Unit.Spells.cs index 0a4ca597f..4479796c8 100644 --- a/Source/Game/Entities/Unit/Unit.Spells.cs +++ b/Source/Game/Entities/Unit/Unit.Spells.cs @@ -918,6 +918,9 @@ namespace Game.Entities if (auraEffect.GetSpellInfo().HasAttribute(SpellAttr8.IgnoreSpellcastOverrideCost)) triggerFlag |= TriggerCastFlags.IgnorePowerAndReagentCost; + if (auraEffect.GetSpellInfo().HasAttribute(SpellAttr11.IgnoreSpellcastOverrideShapeshiftRequirements)) + triggerFlag |= TriggerCastFlags.IgnoreShapeshift; + return info; }