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

@@ -71,11 +71,11 @@ public class L2SiegeGuardAI extends L2CharacterAI implements Runnable
/**
* Constructor of L2AttackableAI.
* @param accessor The AI accessor of the L2Character
* @param creature the creature
*/
public L2SiegeGuardAI(L2Character.AIAccessor accessor)
public L2SiegeGuardAI(L2DefenderInstance creature)
{
super(accessor);
super(creature);
_selfAnalysis.init();
_attackTimeout = Integer.MAX_VALUE;
_globalAggro = -10; // 10 seconds timeout of ATTACK after respawn
@@ -216,7 +216,7 @@ public class L2SiegeGuardAI extends L2CharacterAI implements Runnable
}
// Cancel the AI
_accessor.detachAI();
_actor.detachAI();
return;
}
@@ -449,7 +449,7 @@ public class L2SiegeGuardAI extends L2CharacterAI implements Runnable
L2Object OldTarget = _actor.getTarget();
_actor.setTarget(cha);
clientStopMoving(null);
_accessor.doCast(sk);
_actor.doCast(sk);
_actor.setTarget(OldTarget);
return;
}
@@ -508,7 +508,7 @@ public class L2SiegeGuardAI extends L2CharacterAI implements Runnable
L2Object OldTarget = _actor.getTarget();
_actor.setTarget(npc);
clientStopMoving(null);
_accessor.doCast(sk);
_actor.doCast(sk);
_actor.setTarget(OldTarget);
return;
}
@@ -600,7 +600,7 @@ public class L2SiegeGuardAI extends L2CharacterAI implements Runnable
}
clientStopMoving(null);
_accessor.doCast(sk);
_actor.doCast(sk);
_actor.setTarget(OldTarget);
return;
}
@@ -741,7 +741,7 @@ public class L2SiegeGuardAI extends L2CharacterAI implements Runnable
}
clientStopMoving(null);
_accessor.doCast(sk);
_actor.doCast(sk);
_actor.setTarget(OldTarget);
return;
}
@@ -750,7 +750,7 @@ public class L2SiegeGuardAI extends L2CharacterAI implements Runnable
// Finally, do the physical attack itself
if (!_selfAnalysis.isHealer)
{
_accessor.doAttack(attackTarget);
_actor.doAttack(attackTarget);
}
}
}
@@ -927,7 +927,7 @@ public class L2SiegeGuardAI extends L2CharacterAI implements Runnable
_aiTask.cancel(false);
_aiTask = null;
}
_accessor.detachAI();
_actor.detachAI();
super.stopAITask();
}
}