Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: java/com/l2jserver/gameserver/ai/L2SummonAI.java
- ===================================================================
- --- java/com/l2jserver/gameserver/ai/L2SummonAI.java (revision 521)
- +++ java/com/l2jserver/gameserver/ai/L2SummonAI.java (working copy)
- @@ -48,7 +48,7 @@
- public boolean isWithinOwnersRange()
- {
- - return (!((L2Summon) _actor).isInsideRadius(((L2Summon) _actor).getOwner(), 3000, true, false));
- + return (((L2Summon) _actor).isInsideRadius(((L2Summon) _actor).getOwner(), 3000, false, false));
- }
- @Override
- @@ -82,6 +82,9 @@
- stopAvoidTask();
- }
- +// if (intention == AI_INTENTION_ATTACK && arg0 != null && arg0 instanceof L2Character && arg0 != _actor)
- +// setAttackTarget(((L2Character)arg0));
- +
- super.changeIntention(intention, arg0, arg1);
- }
- @@ -89,6 +92,7 @@
- {
- if (checkTargetLostOrDead(getAttackTarget()))
- {
- + // Notify the target
- setAttackTarget(null);
- return;
- }
- @@ -138,9 +142,10 @@
- @Override
- protected void onEvtThink()
- {
- - if (_thinking || _actor.isCastingNow() || _actor.isAllSkillsDisabled())
- + if (!_actor.isRunning()) _actor.setRunning();
- + if (_thinking || _actor.isCastingNow())
- return;
- - _thinking = true;
- + _thinking = true;
- try
- {
- switch (getIntention())
- @@ -168,7 +173,7 @@
- @Override
- protected void onEvtFinishCasting()
- {
- - if (_lastAttack == null)
- + if (_actor.getAI().getIntention() != AI_INTENTION_ATTACK)
- ((L2Summon) _actor).setFollowStatus(_startFollow);
- else
- {
- @@ -224,6 +229,8 @@
- moveTo(targetX, targetY, _actor.getZ());
- }
- }
- +
- + onEvtThink();
- }
- public void notifyFollowStatusChange()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement