Fix several NPCs sending players to Isle of Quel'Danas early

This commit is contained in:
郑佩茹
2024-03-04 08:36:18 -07:00
parent a92ce5b139
commit 19727d9f0e
2 changed files with 30 additions and 0 deletions

View File

@@ -104,6 +104,32 @@ public:
}
};
class npc_ipp_tbc_t5 : public CreatureScript
{
public:
npc_ipp_tbc_t5() : CreatureScript("npc_ipp_tbc_t5") { }
struct npc_ipp_tbc_t5AI: ScriptedAI
{
explicit npc_ipp_tbc_t5AI(Creature* creature) : ScriptedAI(creature) { };
bool CanBeSeen(Player const* player) override
{
if (player->IsGameMaster() || !sIndividualProgression->enabled)
{
return true;
}
Player* target = ObjectAccessor::FindConnectedPlayer(player->GetGUID());
return sIndividualProgression->hasPassedProgression(target, PROGRESSION_TBC_TIER_4);
}
};
CreatureAI* GetAI(Creature* creature) const override
{
return new npc_ipp_tbc_t5AI(creature);
}
};
class npc_ipp_tbc_pre_t4 : public CreatureScript
{
public:
@@ -323,6 +349,7 @@ void AddSC_mod_individual_progression_awareness()
new npc_ipp_ds2();
new npc_ipp_tbc();
new npc_ipp_tbc_t4();
new npc_ipp_tbc_t5();
new npc_ipp_tbc_pre_t4();
new npc_ipp_wotlk();
new npc_ipp_wotlk_ulduar();