refactor(Scripts/ZulAman): Move Jan'alai Fire Bomb to SAI (#20496)

This commit is contained in:
Andrew
2024-11-09 20:11:56 -03:00
committed by GitHub
parent 99f77341a8
commit 7b8fadaa0c
2 changed files with 7 additions and 12 deletions

View File

@@ -333,17 +333,6 @@ private:
bool _isFlameBreathing;
};
struct npc_janalai_firebomb : public NullCreatureAI
{
npc_janalai_firebomb(Creature* creature) : NullCreatureAI(creature) { }
void SpellHit(Unit* /*caster*/, SpellInfo const* spell) override
{
if (spell->Id == SPELL_FIRE_BOMB_THROW)
DoCastSelf(SPELL_FIRE_BOMB_DUMMY, true);
}
};
struct npc_janalai_hatcher : public ScriptedAI
{
npc_janalai_hatcher(Creature* creature) : ScriptedAI(creature)
@@ -484,7 +473,6 @@ struct npc_janalai_egg : public NullCreatureAI
void AddSC_boss_janalai()
{
RegisterZulAmanCreatureAI(boss_janalai);
RegisterZulAmanCreatureAI(npc_janalai_firebomb);
RegisterZulAmanCreatureAI(npc_janalai_hatcher);
RegisterZulAmanCreatureAI(npc_janalai_hatchling);
RegisterZulAmanCreatureAI(npc_janalai_egg);