Permalink
Browse files

Fix gamesman hall exit door not opening after win

  • Loading branch information...
BillytheOrc committed Mar 27, 2018
1 parent 71a6c59 commit c0d9779bc70ebfb65c96d57917d53ab93c174748
Showing with 7 additions and 4 deletions.
  1. +7 −4 src/scripts/EasternKingdoms/Karazhan/chess_event.cpp
@@ -45,7 +45,7 @@ enum Factions
};
enum Creatures
{
{ismedivh
NPC_MEDIVH = 16816,
NPC_CHEST_BUNNY = 25213,
@@ -568,8 +568,11 @@ struct Chess_npcAI : public Scripted_NoMovementAI
if (me->GetEntry() == NPC_KING_H || me->GetEntry() == NPC_KING_A)
{
if (IsMedivhControlled(me)) //if medivhs king is killed player won
pInstance->SetData(TYPE_CHESS, DONE);
if (IsMedivhControlled(me)) {
//if medivhs king is killed player won
pInstance->SetData(TYPE_CHESS, DONE);
pInstance->DoUseDoorOrButton(pInstance->GetData64(DATA_GO_GAME_EXIT_DOOR));
}
else //else player lost
pInstance->SetData(TYPE_CHESS, FAIL);
@@ -1570,4 +1573,4 @@ void AddSC_chess_event()
newscript->Name = "chess_victory_controler";
newscript->GetAI = GetAI_victory_controler;
newscript->RegisterSelf();
}
}

0 comments on commit c0d9779

Please sign in to comment.