Scripts/Kologarn: Fix "stuck in combat" issues (#23866)

Fix players stuck in combat with NPC_ARM_SWEEP_STALKER and/or both arms after killing the boss.
This commit is contained in:
Giacomo Pozzoni
2019-10-13 17:37:52 +02:00
committed by Aokromes
parent f4be544629
commit fed030da19

View File

@@ -151,6 +151,7 @@ class boss_kologarn : public CreatureScript
me->GetMotionMaster()->MoveTargetedHome();
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
me->SetCorpseDelay(604800); // Prevent corpse from despawning.
ForceStopCombatForCreature(NPC_ARM_SWEEP_STALKER, 500.f);
_JustDied();
}
@@ -211,6 +212,7 @@ class boss_kologarn : public CreatureScript
void JustSummoned(Creature* summon) override
{
BossAI::JustSummoned(summon);
switch (summon->GetEntry())
{
case NPC_FOCUSED_EYEBEAM: