fix(Scripts/Commands): Fix crash in unstuck command (#21846)

This commit is contained in:
Andrew
2025-04-02 19:22:55 -03:00
committed by GitHub
parent 3d561fcd5b
commit ac6dea6df3

View File

@@ -1456,14 +1456,10 @@ public:
{
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(7355);
if (!spellInfo)
{
return false;
}
if (Player* caster = handler->GetSession()->GetPlayer())
{
Spell::SendCastResult(caster, spellInfo, 0, SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW);
}
if (player)
Spell::SendCastResult(player, spellInfo, 0, SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW);
return false;
}