Sync with L2jServer HighFive Mar 1st 2015.

This commit is contained in:
mobius
2015-03-01 22:48:14 +00:00
parent f14af24b41
commit 6fa0ed56e3
116 changed files with 971 additions and 676 deletions

View File

@@ -94,11 +94,11 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
/**
* Constructor of L2AttackableAI.
* @param accessor The AI accessor of the L2Character
* @param creature the creature
*/
public L2AttackableAI(L2Character.AIAccessor accessor)
public L2AttackableAI(L2Attackable creature)
{
super(accessor);
super(creature);
_skillrender = NpcData.getInstance().getTemplate(getActiveChar().getTemplate().getId());
_attackTimeout = Integer.MAX_VALUE;
_globalAggro = -10; // 10 seconds timeout of ATTACK after respawn
@@ -352,7 +352,7 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
}
// Cancel the AI
_accessor.detachAI();
_actor.detachAI();
return;
}
@@ -405,7 +405,7 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
}
clientStopMoving(null);
setIntention(AI_INTENTION_ACTIVE);
_accessor.doCast(_skill);
_actor.doCast(_skill);
}
/**
@@ -1280,7 +1280,7 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
}
}
_accessor.doAttack(getAttackTarget());
_actor.doAttack(getAttackTarget());
}
private boolean cast(Skill sk)