fix(Scripts/BlackwingLair): Prevent Razorgores' eggs from respawning … (#11336)

* fix(Scripts/BlackwingLair): Prevent Razorgores' eggs from respawning after wipe.

* Update.

* Update.

* Update.
This commit is contained in:
UltraNix
2022-04-09 13:59:47 +02:00
committed by GitHub
parent a35e411fdd
commit 1cce367645
2 changed files with 3 additions and 2 deletions

View File

@@ -306,6 +306,7 @@ public:
razorgore->AI()->DoAction(TALK_EGG_BROKEN_RAND);
egg->SetLootState(GO_READY);
egg->UseDoorOrButton(10000);
egg->SetRespawnTime(WEEK);
}
}
}

View File

@@ -310,6 +310,8 @@ public:
break;
case SPECIAL:
if (EggEvent == NOT_STARTED)
SetData(DATA_EGG_EVENT, IN_PROGRESS);
if (++EggCount >= EggList.size())
{
if (Creature* razor = instance->GetCreature(razorgoreGUID))
@@ -321,8 +323,6 @@ public:
_events.ScheduleEvent(EVENT_RAZOR_PHASE_TWO, 1000);
_events.CancelEvent(EVENT_RAZOR_SPAWN);
}
if (EggEvent == NOT_STARTED)
SetData(DATA_EGG_EVENT, IN_PROGRESS);
break;
}
}