mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
Fix several NPCs sending players to Isle of Quel'Danas early
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user