Scripts/Nagrand: Add a quest incomplete check in go_warmaul_prison (previous commit).

Thanks @Retriman
This commit is contained in:
Nay
2011-10-22 17:38:26 +01:00
parent 8cc6750388
commit 26b3e62b26
+3
View File
@@ -1179,6 +1179,9 @@ public:
bool OnGossipHello(Player* player, GameObject* go) bool OnGossipHello(Player* player, GameObject* go)
{ {
if (player->GetQuestStatus(QUEST_FINDING_THE_SURVIVORS) != QUEST_STATUS_INCOMPLETE)
return;
if (Creature* prisoner = go->FindNearestCreature(NPC_MAGHAR_PRISONER, 1.0f)) if (Creature* prisoner = go->FindNearestCreature(NPC_MAGHAR_PRISONER, 1.0f))
{ {
if (prisoner) if (prisoner)