mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
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:
committed by
Aokromes
parent
f4be544629
commit
fed030da19
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user