Scripts/BoT: add despawn timer for enslaved dragons

This commit is contained in:
Ovahlord
2018-04-17 16:22:35 +02:00
parent 884e1e9c01
commit 30b9c8e489
2 changed files with 4 additions and 0 deletions

View File

@@ -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))

View File

@@ -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))