diff options
Diffstat (limited to 'src/bindings/scripts')
| -rw-r--r-- | src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/the_scarlet_enclave.cpp | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/the_scarlet_enclave.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/the_scarlet_enclave.cpp index 0e4b31c682a..41e2d0804e4 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/the_scarlet_enclave.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/the_scarlet_enclave.cpp @@ -100,55 +100,6 @@ CreatureAI* GetAI_npc_valkyr_battle_maiden(Creature* pCreature) return new npc_valkyr_battle_maidenAI (pCreature); } -struct TRINITY_DLL_DECL mob_anti_airAI : public ScriptedAI -{ - mob_anti_airAI(Creature *c) : ScriptedAI(c) - { - assert(me->m_spells[0]); - range = DoGetSpellMaxRange(me->m_spells[0]); - } - - float range; - - void MoveInLineOfSight(Unit *who) - { - if(!me->getVictim() && me->canAttack(who) - && me->IsWithinCombatRange(who, range) - && me->IsWithinLOSInMap(who)) - AttackStart(who); - } - - void AttackStart(Unit *who) - { - if(who->IsFlying() || !me->IsWithinMeleeRange(who)) - { - if(me->Attack(who, false)) - me->GetMotionMaster()->MoveIdle(); - } - else if(me->Attack(who, true)) - me->GetMotionMaster()->MoveChase(who); - } - - void UpdateAI(const uint32 diff) - { - if(!UpdateVictim()) - return; - - if(me->getVictim()->IsFlying() || !me->IsWithinMeleeRange(me->getVictim())) - { - if(!DoSpellAttackIfReady(me->m_spells[0])) - EnterEvadeMode(); - } - else - DoMeleeAttackIfReady(); - } -}; - -CreatureAI* GetAI_mob_anti_air(Creature* pCreature) -{ - return new mob_anti_airAI (pCreature); -} - void AddSC_the_scarlet_enclave() { Script *newscript; @@ -158,11 +109,6 @@ void AddSC_the_scarlet_enclave() newscript->GetAI = &GetAI_npc_valkyr_battle_maiden; newscript->RegisterSelf(); - newscript = new Script; - newscript->Name="mob_anti_air"; - newscript->GetAI = &GetAI_mob_anti_air; - newscript->RegisterSelf(); - // Chapter 3: Scarlet Armies Approach... - An End To All Things... // Chapter 4: An End To All Things... - An End To All Things... } |
