From 30b9c8e48999734bc944f9cb79a70575c1bfe987 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Tue, 17 Apr 2018 16:22:35 +0200 Subject: [PATCH] Scripts/BoT: add despawn timer for enslaved dragons --- .../BastionOfTwilight/boss_halfus_wyrmbreaker.cpp | 1 + .../BastionOfTwilight/instance_bastion_of_twilight.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/server/scripts/EasternKingdoms/BastionOfTwilight/boss_halfus_wyrmbreaker.cpp b/src/server/scripts/EasternKingdoms/BastionOfTwilight/boss_halfus_wyrmbreaker.cpp index d547e94f54a..18e5c057ccd 100644 --- a/src/server/scripts/EasternKingdoms/BastionOfTwilight/boss_halfus_wyrmbreaker.cpp +++ b/src/server/scripts/EasternKingdoms/BastionOfTwilight/boss_halfus_wyrmbreaker.cpp @@ -390,6 +390,7 @@ class npc_halfus_enslaved_dragon : public CreatureScript { me->SetDisableGravity(false); me->SendSetPlayHoverAnim(false); + me->DespawnOrUnsummon(Seconds(6)); if (me->GetEntry() != NPC_ORPHANED_EMERALD_WELP) if (Creature* protoBehemoth = _instance->GetCreature(DATA_PROTO_BEHEMOTH)) diff --git a/src/server/scripts/EasternKingdoms/BastionOfTwilight/instance_bastion_of_twilight.cpp b/src/server/scripts/EasternKingdoms/BastionOfTwilight/instance_bastion_of_twilight.cpp index 242a4bdc366..6e9d41f4c79 100644 --- a/src/server/scripts/EasternKingdoms/BastionOfTwilight/instance_bastion_of_twilight.cpp +++ b/src/server/scripts/EasternKingdoms/BastionOfTwilight/instance_bastion_of_twilight.cpp @@ -188,7 +188,10 @@ class instance_bastion_of_twilight : public InstanceMapScript else if (state == FAIL) { if (Creature* protoBehemoth = GetCreature(DATA_PROTO_BEHEMOTH)) + { + protoBehemoth->AI()->EnterEvadeMode(); protoBehemoth->DespawnOrUnsummon(Milliseconds(0), Seconds(30)); + } for (ObjectGuid guid : _halfusEncounterGUIDs) if (Creature* creature = instance->GetCreature(guid))