Scripts/Spells: Fixed crash in mage Ignite script

This commit is contained in:
Shauren
2026-04-09 16:33:29 +02:00
parent 729271454b
commit e063373344

View File

@@ -1120,8 +1120,9 @@ class spell_mage_hot_streak_ignite_marker : public SpellScript
public:
static bool IsActive(Spell const* spell)
{
if (spell_mage_hot_streak_ignite_marker const* script = spell->GetScript<spell_mage_hot_streak_ignite_marker>())
return script->_affectedByHotStreak;
if (spell)
if (spell_mage_hot_streak_ignite_marker const* script = spell->GetScript<spell_mage_hot_streak_ignite_marker>())
return script->_affectedByHotStreak;
return false;
}
};