mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
Scripts/Deadmines: Note from Vanessa will no longer spawn when loading the instance save and Vanessa has been defeated already
This commit is contained in:
@@ -140,7 +140,7 @@ class instance_deadmines : public InstanceMapScript
|
||||
|
||||
if (!_noteSpawnChecked)
|
||||
{
|
||||
if (GetBossState(DATA_CAPTAIN_COOKIE) == DONE)
|
||||
if (GetBossState(DATA_CAPTAIN_COOKIE) == DONE && GetBossState(DATA_VANESSA_VAN_CLEEF) != DONE)
|
||||
events.ScheduleEvent(EVENT_SUMMON_NOTE_FROM_VANESSA, Milliseconds(1));
|
||||
_noteSpawnChecked = true;
|
||||
}
|
||||
@@ -332,7 +332,7 @@ class instance_deadmines : public InstanceMapScript
|
||||
void OnUnitDeath(Unit* unit) override
|
||||
{
|
||||
if (unit->GetTypeId() == TYPEID_PLAYER && _vanessaVanCleefEncounterState != NOT_STARTED && _vanessaVanCleefEncounterState != NIGHTMARE_STAGE_DONE)
|
||||
events.ScheduleEvent(EVENT_CHECK_DEAD_PLAYERS, Milliseconds(100));
|
||||
events.ScheduleEvent(EVENT_CHECK_DEAD_PLAYERS, Milliseconds(200));
|
||||
else
|
||||
{
|
||||
switch (unit->GetEntry())
|
||||
|
||||
Reference in New Issue
Block a user