Core/Spells: Name SPELL_ATTR9_DO_NOT_ADD_TO_UNLEARN_LIST

Port From (https://github.com/TrinityCore/TrinityCore/commit/88d1078a1256fa9175110b3bec0f7f9fdd6b615d)
This commit is contained in:
Hondacrx
2024-08-25 23:47:42 -04:00
parent e79581f71f
commit 9f35b4a650
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)