Lights Hope chapel progression phasing, fix Defias Pillager

This commit is contained in:
郑佩茹
2022-09-09 11:29:21 -06:00
parent 374de2ede6
commit 768ad94f90
3 changed files with 36 additions and 7 deletions

View File

@@ -137,6 +137,32 @@ public:
}
};
class npc_ipp_naxx40 : public CreatureScript
{
public:
npc_ipp_naxx40() : CreatureScript("npc_ipp_naxx40") { }
struct npc_ipp_naxx40AI: ScriptedAI
{
npc_ipp_naxx40AI(Creature* creature) : ScriptedAI(creature) { };
bool CanBeSeen(Player const* player) override
{
if (player->IsGameMaster() || !enabled)
{
return true;
}
Player* target = ObjectAccessor::FindConnectedPlayer(player->GetGUID());
return target->GetPlayerSetting("mod-individual-progression", SETTING_PROGRESSION_STATE).value >= PROGRESSION_BLACKWING_LAIR;
}
};
CreatureAI* GetAI(Creature* creature) const override
{
return new npc_ipp_naxx40AI(creature);
}
};
class IndividualPlayerProgression_WorldScript : public WorldScript
{
@@ -648,6 +674,7 @@ void AddSC_mod_individual_progression()
new IndividualPlayerProgression_WorldScript();
new IndividualPlayerProgression_PetScript();
new npc_ipp_aq();
new npc_ipp_naxx40();
new npc_ipp_tbc();
new npc_ipp_wotlk();
new gobject_ipp_tbc();