Instance Script/Stratholme: Correct logic in Baron Run event and add SAI for Ysida Harmon
This commit is contained in:
1 parent
fe30ddca10
commit
5f7e0f6929
2 files changed
+19
-8
No files matched your search
@@ -310,6 +310,15 @@ class instance_stratholme : public InstanceMapScript
|
||||
{
|
||||
HandleGameObject(ziggurat4GUID, false);
|
||||
HandleGameObject(ziggurat5GUID, false);
|
||||
}
|
||||
if (data == DONE || data == NOT_STARTED)
|
||||
{
|
||||
HandleGameObject(ziggurat4GUID, true);
|
||||
HandleGameObject(ziggurat5GUID, true);
|
||||
}
|
||||
if (data == DONE)
|
||||
{
|
||||
HandleGameObject(portGauntletGUID, true);
|
||||
if (GetData(TYPE_BARON_RUN) == IN_PROGRESS)
|
||||
{
|
||||
DoRemoveAurasDueToSpellOnPlayers(SPELL_BARON_ULTIMATUM);
|
||||
@@ -318,18 +327,13 @@ class instance_stratholme : public InstanceMapScript
|
||||
for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)
|
||||
if (Player* player = itr->GetSource())
|
||||
if (player->GetQuestStatus(QUEST_DEAD_MAN_PLEA) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
player->AreaExploredOrEventHappens(QUEST_DEAD_MAN_PLEA);
|
||||
|
||||
player->KilledMonsterCredit(NPC_YSIDA);
|
||||
}
|
||||
SetData(TYPE_BARON_RUN, DONE);
|
||||
}
|
||||
}
|
||||
if (data == DONE || data == NOT_STARTED)
|
||||
{
|
||||
HandleGameObject(ziggurat4GUID, true);
|
||||
HandleGameObject(ziggurat5GUID, true);
|
||||
}
|
||||
if (data == DONE)
|
||||
HandleGameObject(portGauntletGUID, true);
|
||||
EncounterState[5] = data;
|
||||
break;
|
||||
case TYPE_SH_AELMAR:
|
||||
|
||||
Reference in new issue
Block a user