fix(Scripts/Commands): Fix crash in unstuck command (#21846)
This commit is contained in:
parent
3d561fcd5b
commit
ac6dea6df3
1 changed files with 2 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue