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:
jackpoz
2018-09-25 19:22:23 +02:00
committed by Shauren
parent 80d920dab5
commit c4cb1748ca
2 changed files with 4 additions and 4 deletions

View File

@@ -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;
}
}

View File

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