add npc_ipp_aq script

missing script

used for cenarion hold quest NPCs
This commit is contained in:
Grimfeather
2025-05-26 07:54:38 +02:00
committed by GitHub
parent 5ff95acae2
commit f9da67a590

View File

@@ -271,6 +271,32 @@ public:
} }
}; };
class npc_ipp_aq : public CreatureScript
{
public:
npc_ipp_aq() : CreatureScript("npc_ipp_aq") { }
struct npc_ipp_aqAI: ScriptedAI
{
explicit npc_ipp_aqAI(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->isBeforeProgression(target, PROGRESSION_AQ_WAR);
}
};
CreatureAI* GetAI(Creature* creature) const override
{
return new npc_ipp_aqAI(creature);
}
};
class npc_ipp_si : public CreatureScript class npc_ipp_si : public CreatureScript
{ {
public: public:
@@ -608,6 +634,7 @@ void AddSC_mod_individual_progression_awareness()
new gobject_ipp_wotlk(); new gobject_ipp_wotlk();
new npc_ipp_preaq(); // Cenarion Hold NPCs new npc_ipp_preaq(); // Cenarion Hold NPCs
new npc_ipp_we(); // War Effort NPCs in cities new npc_ipp_we(); // War Effort NPCs in cities
new npc_ipp_aq();
new npc_ipp_si(); // Scourge Invasion new npc_ipp_si(); // Scourge Invasion
new npc_ipp_pre_naxx40(); // Scourge Invasion new npc_ipp_pre_naxx40(); // Scourge Invasion
new npc_ipp_naxx40(); new npc_ipp_naxx40();