*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
+1
View File
@@ -49,6 +49,7 @@ namespace AIRegistry
(new CreatureAIFactory<ArchorAI>("ArchorAI"))->RegisterSelf();
(new CreatureAIFactory<TurretAI>("TurretAI"))->RegisterSelf();
(new CreatureAIFactory<CreatureEventAI>("EventAI"))->RegisterSelf();
(new CreatureAIFactory<AOEAI>("AOEAI"))->RegisterSelf();
(new MovementGeneratorFactory<RandomMovementGenerator<Creature> >(RANDOM_MOTION_TYPE))->RegisterSelf();
(new MovementGeneratorFactory<WaypointMovementGenerator<Creature> >(WAYPOINT_MOTION_TYPE))->RegisterSelf();