Permalink
Browse files

Merge pull request #1631 from BillytheOrc/patch-1

Fix gamesman hall exit door not opening after win
  • Loading branch information...
AbraKabastard committed Mar 31, 2018
2 parents 71a6c59 + 8844440 commit cf5eed69263a31b6ef620d3dc71ae10df13ed009
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/scripts/EasternKingdoms/Karazhan/chess_event.cpp
@@ -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 cf5eed6

Please sign in to comment.