mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
Scripts/BlackrockSpire: Fix infinite loop in Gyth fight
Fix infinite loop in Gyth fight and double event caused by Rend Blackhand being respawned.
Please note this event is completely bugged and unfinished and contains for sure more bugs.
(cherry picked from commit af3449e064)
This commit is contained in:
@@ -234,7 +234,7 @@ public:
|
||||
case 11:
|
||||
if (Creature* gyth = me->FindNearestCreature(NPC_GYTH, 10.0f, true))
|
||||
gyth->AI()->SetData(1, 1);
|
||||
me->DespawnOrUnsummon(1000);
|
||||
me->DespawnOrUnsummon(1000, 24h * 7);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,12 +95,12 @@ public:
|
||||
case NPC_PYROGAURD_EMBERSEER:
|
||||
PyroguardEmberseer = creature->GetGUID();
|
||||
if (GetBossState(DATA_PYROGAURD_EMBERSEER) == DONE)
|
||||
creature->DisappearAndDie();
|
||||
creature->DespawnOrUnsummon(0, 24h * 7);
|
||||
break;
|
||||
case NPC_WARCHIEF_REND_BLACKHAND:
|
||||
WarchiefRendBlackhand = creature->GetGUID();
|
||||
if (GetBossState(DATA_GYTH) == DONE)
|
||||
creature->DisappearAndDie();
|
||||
creature->DespawnOrUnsummon(0, 24h * 7);
|
||||
break;
|
||||
case NPC_GYTH:
|
||||
Gyth = creature->GetGUID();
|
||||
@@ -114,7 +114,7 @@ public:
|
||||
case NPC_LORD_VICTOR_NEFARIUS:
|
||||
LordVictorNefarius = creature->GetGUID();
|
||||
if (GetBossState(DATA_GYTH) == DONE)
|
||||
creature->DisappearAndDie();
|
||||
creature->DespawnOrUnsummon(0, 24h * 7);
|
||||
break;
|
||||
case NPC_SCARSHIELD_INFILTRATOR:
|
||||
ScarshieldInfiltrator = creature->GetGUID();
|
||||
|
||||
Reference in New Issue
Block a user