*implement new creatureAI called: AOEAI

-it takes the spell1 from creature_template and casts on him self if aura not found, it can not attack or move
-creature becomes unattackable and invisible
NOTE: flag 128 should not be set in flags_extra field in creature_template, otherwise spells will be only visible to GMs

--HG--
branch : trunk
This commit is contained in:
Rat
2009-11-03 13:10:11 +01:00
parent ffb28c06a7
commit 609b8246f5
3 changed files with 46 additions and 0 deletions
+11
View File
@@ -90,4 +90,15 @@ struct TRINITY_DLL_SPEC TurretAI : public CreatureAI
float m_minRange;
};
struct TRINITY_DLL_SPEC AOEAI : public CreatureAI
{
public:
explicit AOEAI(Creature *c);
bool CanAIAttack(const Unit *who) const;
void AttackStart(Unit *who);
void UpdateAI(const uint32 diff);
static int Permissible(const Creature *);
};
#endif