mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-30 13:47:23 +01:00
Scripts/BoT: add despawn timer for enslaved dragons
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user