Search in sources :

Example 1 with EntityAIAllyManaLink

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));
}
Also used : EntityAIAllyManaLink(am2.entities.ai.EntityAIAllyManaLink) EntitySlime(net.minecraft.entity.monster.EntitySlime) EntityAIRangedAttackSpell(am2.entities.ai.EntityAIRangedAttackSpell) EntityMob(net.minecraft.entity.monster.EntityMob) EntityPlayer(net.minecraft.entity.player.EntityPlayer)

Aggregations

EntityAIAllyManaLink (am2.entities.ai.EntityAIAllyManaLink)1 EntityAIRangedAttackSpell (am2.entities.ai.EntityAIRangedAttackSpell)1 EntityMob (net.minecraft.entity.monster.EntityMob)1 EntitySlime (net.minecraft.entity.monster.EntitySlime)1 EntityPlayer (net.minecraft.entity.player.EntityPlayer)1