From 9f35b4a65071669f7342b328f15558ab86571b8c Mon Sep 17 00:00:00 2001 From: Hondacrx Date: Sun, 25 Aug 2024 23:47:42 -0400 Subject: [PATCH] Core/Spells: Name SPELL_ATTR9_DO_NOT_ADD_TO_UNLEARN_LIST Port From (https://github.com/TrinityCore/TrinityCore/commit/88d1078a1256fa9175110b3bec0f7f9fdd6b615d) --- Source/Framework/Constants/Spells/SpellConst.cs | 2 +- Source/Game/Spells/Spell.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Framework/Constants/Spells/SpellConst.cs b/Source/Framework/Constants/Spells/SpellConst.cs index db53350e1..da23a9e7c 100644 --- a/Source/Framework/Constants/Spells/SpellConst.cs +++ b/Source/Framework/Constants/Spells/SpellConst.cs @@ -1973,7 +1973,7 @@ namespace Framework.Constants MissileSpeedIsDelayInSec = 0x10, // Missile Speed is Delay (in sec) IgnoreTotemRequirementsForCasting = 0x20, // Ignore Totem Requirements for Casting ItemCastGrantsSkillGain = 0x40, // Item Cast Grants Skill Gain - Unk7 = 0x80, // 7 + DoNotAddToUnlearnList = 0x80, // NYI - unlearn list not maintained SMSG_SEND_UNLEARN_SPELLS always empty // Do Not Add to Unlearn List AimedShot = 0x100, // 8 NotUsableInArena = 0x200, // 9 Cannot Be Used In Arenas Unk10 = 0x400, // 10 diff --git a/Source/Game/Spells/Spell.cs b/Source/Game/Spells/Spell.cs index 61d9816f8..ad7c143ed 100644 --- a/Source/Game/Spells/Spell.cs +++ b/Source/Game/Spells/Spell.cs @@ -2992,7 +2992,7 @@ namespace Game.Spells } // Spells that don't create items can have this attribute - handle here - if (m_CastItem && m_spellInfo.HasAttribute(SpellAttr9.ItemCastGrantsSkillGain)) + if (m_CastItem != null && m_spellInfo.HasAttribute(SpellAttr9.ItemCastGrantsSkillGain)) { Player playerCaster1 = m_caster.ToPlayer(); if (playerCaster1 != null)