mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 06:06:23 +00:00
fix(Scripts/Misc): Fix bosses not reseting after the despawn update (#15507)
* fix bosses not reseting * fix lk * fix tirion not respawning * up
This commit is contained in:
@@ -277,6 +277,9 @@ public:
|
||||
if (IsAnyPlayerValid())
|
||||
return;
|
||||
|
||||
instance->SendEncounterUnit(ENCOUNTER_FRAME_DISENGAGE, me);
|
||||
if (Creature* controller = ObjectAccessor::GetCreature(*me, instance->GetGuidData(NPC_HALION_CONTROLLER)))
|
||||
controller->AI()->DoAction(ACTION_RESET_ENCOUNTER);
|
||||
BossAI::EnterEvadeMode(why);
|
||||
}
|
||||
|
||||
@@ -286,14 +289,6 @@ public:
|
||||
BossAI::AttackStart(who);
|
||||
}
|
||||
|
||||
void JustReachedHome() override
|
||||
{
|
||||
instance->SendEncounterUnit(ENCOUNTER_FRAME_DISENGAGE, me);
|
||||
if (Creature* controller = ObjectAccessor::GetCreature(*me, instance->GetGuidData(NPC_HALION_CONTROLLER)))
|
||||
controller->AI()->DoAction(ACTION_RESET_ENCOUNTER);
|
||||
BossAI::JustReachedHome();
|
||||
}
|
||||
|
||||
void JustEngagedWith(Unit* who) override
|
||||
{
|
||||
BossAI::JustEngagedWith(who);
|
||||
|
||||
Reference in New Issue
Block a user