Skip to content

Commit

Permalink
Spell: Add missing backport for script s.26264
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Oct 25, 2023
1 parent 6b88436 commit 46cbe99
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/game/Spells/SpellEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6226,6 +6226,16 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
m_caster->CastSpell(unitTarget, spells[urand(0, 2)], TRIGGERED_OLD_TRIGGERED);
return;
}
case 26264: // Despawn
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
return;

Creature* creatureTarget = (Creature*)unitTarget;

creatureTarget->ForcedDespawn();
return;
}
case 26465: // Mercurial Shield - need remove one 26464 Mercurial Shield aura
unitTarget->RemoveAuraHolderFromStack(26464);
return;
Expand Down

0 comments on commit 46cbe99

Please sign in to comment.