*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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user