fix(Core/CullingOfStratholme): Chromie start (#9898)
This commit is contained in:
+1
-11
@@ -1412,10 +1412,6 @@ class npc_cos_chromie_start : public CreatureScript
|
|||||||
public:
|
public:
|
||||||
npc_cos_chromie_start() : CreatureScript("npc_cos_chromie_start") { }
|
npc_cos_chromie_start() : CreatureScript("npc_cos_chromie_start") { }
|
||||||
|
|
||||||
struct npc_cos_chromie_startAI : public ScriptedAI
|
|
||||||
{
|
|
||||||
npc_cos_chromie_startAI(Creature* creature) : ScriptedAI(creature) {}
|
|
||||||
|
|
||||||
bool OnQuestAccept(Player*, Creature* creature, const Quest* pQuest)
|
bool OnQuestAccept(Player*, Creature* creature, const Quest* pQuest)
|
||||||
{
|
{
|
||||||
if (pQuest->GetQuestId() == QUEST_DISPELLING_ILLUSIONS)
|
if (pQuest->GetQuestId() == QUEST_DISPELLING_ILLUSIONS)
|
||||||
@@ -1444,7 +1440,7 @@ public:
|
|||||||
|
|
||||||
if (!player->HasItemCount(ITEM_ARCANE_DISRUPTOR))
|
if (!player->HasItemCount(ITEM_ARCANE_DISRUPTOR))
|
||||||
{
|
{
|
||||||
me->CastSpell(player, SPELL_SUMMON_ARCANE_DISRUPTOR);
|
creature->CastSpell(player, SPELL_SUMMON_ARCANE_DISRUPTOR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Skip Event
|
// Skip Event
|
||||||
@@ -1467,12 +1463,6 @@ public:
|
|||||||
// return false to display last windows
|
// return false to display last windows
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
||||||
CreatureAI* GetAI(Creature* creature) const override
|
|
||||||
{
|
|
||||||
return GetCullingOfStratholmeAI<npc_cos_chromie_startAI>(creature);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class npc_cos_chromie_middle : public CreatureScript
|
class npc_cos_chromie_middle : public CreatureScript
|
||||||
|
|||||||
Reference in New Issue
Block a user