mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +00:00
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:
@@ -306,6 +306,7 @@ public:
|
|||||||
razorgore->AI()->DoAction(TALK_EGG_BROKEN_RAND);
|
razorgore->AI()->DoAction(TALK_EGG_BROKEN_RAND);
|
||||||
egg->SetLootState(GO_READY);
|
egg->SetLootState(GO_READY);
|
||||||
egg->UseDoorOrButton(10000);
|
egg->UseDoorOrButton(10000);
|
||||||
|
egg->SetRespawnTime(WEEK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -310,6 +310,8 @@ public:
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
case SPECIAL:
|
case SPECIAL:
|
||||||
|
if (EggEvent == NOT_STARTED)
|
||||||
|
SetData(DATA_EGG_EVENT, IN_PROGRESS);
|
||||||
if (++EggCount >= EggList.size())
|
if (++EggCount >= EggList.size())
|
||||||
{
|
{
|
||||||
if (Creature* razor = instance->GetCreature(razorgoreGUID))
|
if (Creature* razor = instance->GetCreature(razorgoreGUID))
|
||||||
@@ -321,8 +323,6 @@ public:
|
|||||||
_events.ScheduleEvent(EVENT_RAZOR_PHASE_TWO, 1000);
|
_events.ScheduleEvent(EVENT_RAZOR_PHASE_TWO, 1000);
|
||||||
_events.CancelEvent(EVENT_RAZOR_SPAWN);
|
_events.CancelEvent(EVENT_RAZOR_SPAWN);
|
||||||
}
|
}
|
||||||
if (EggEvent == NOT_STARTED)
|
|
||||||
SetData(DATA_EGG_EVENT, IN_PROGRESS);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user