Scripts/IcecrownCitadel: Prevent players from becoming inaccessible when killed by Lord Marrowgar's Impale spell (the initial damage, not the DoT). Also fix the underlying bug in vehicle logic.

This commit is contained in:
Treeston
2017-07-25 02:01:32 +02:00
committed by Aokromes
parent a8be511491
commit 584a302f3c
2 changed files with 17 additions and 1 deletions

View File

@@ -653,6 +653,15 @@ class spell_marrowgar_bone_spike_graveyard : public SpellScriptLoader
{
Unit* target = *itr;
target->CastSpell(target, BoneSpikeSummonId[i], true);
if (!target->IsAlive()) // make sure we don't get any stuck spikes on dead targets
{
if (Aura* aura = target->GetAura(SPELL_IMPALED))
{
if (Creature* spike = ObjectAccessor::GetCreature(*target, aura->GetCasterGUID()))
spike->DespawnOrUnsummon();
aura->Remove();
}
}
}
marrowgarAI->Talk(SAY_BONESPIKE);