use of am2.entities.ai.EntityAIAllyManaLink in project ArsMagica2 by Mithion.
the class EntityLightMage method initAI.
private void initAI() {
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(7, new EntityAILookIdle(this));
this.tasks.addTask(5, new EntityAIWander(this, MovementSpeed()));
this.tasks.addTask(1, new EntityAIAvoidEntity(this, EntityManaVortex.class, 10, MovementSpeed(), ActionSpeed()));
this.tasks.addTask(3, new EntityAIAllyManaLink(this));
this.tasks.addTask(4, new EntityAIRangedAttackSpell(this, MovementSpeed(), 20, NPCSpells.instance.lightMage_DiminishedAttack));
//Retaliation to attacks
this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityDarkMage.class, 0, true));
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntitySlime.class, 0, true));
this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityMob.class, 0, true, false, LightMageEntitySelector.instance));
}
Aggregations