Quest/script: The Absent Minded Prospector

Add quest fail if the npc dies
Ref #22586
This commit is contained in:
illfated
2018-10-08 22:37:34 +02:00
committed by Killyana
parent b3ab0b4387
commit 229e74eff3

View File

@@ -291,6 +291,12 @@ public:
me->SetFaction(FACTION_ESCORTEE_A_NEUTRAL_PASSIVE);
}
}
void JustDied(Unit* /*killer*/) override
{
if (Player* player = GetPlayerForEscort())
player->FailQuest(QUEST_ABSENT_MINDED_PT2);
}
};
CreatureAI* GetAI(Creature* creature) const override