Sync with L2jServer HighFive Oct 10th 2015.

This commit is contained in:
MobiusDev
2015-10-10 13:28:13 +00:00
parent 2a827d8120
commit 2dd6094e0f
39 changed files with 601 additions and 556 deletions

View File

@@ -737,7 +737,7 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
* <li>Chose a target and order to attack it with magic skill or physical attack</li>
* </ul>
*/
protected synchronized void thinkAttack()
protected void thinkAttack()
{
final L2Attackable npc = getActiveChar();
if (npc.isCastingNow())
@@ -750,10 +750,7 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
if ((originalAttackTarget == null) || originalAttackTarget.isAlikeDead())
{
// Stop hating this target after the attack timeout or if target is dead
if (originalAttackTarget != null)
{
npc.stopHating(originalAttackTarget);
}
npc.stopHating(originalAttackTarget);
// Set the AI Intention to AI_INTENTION_ACTIVE
setIntention(AI_INTENTION_ACTIVE);

View File

@@ -973,7 +973,7 @@ public class L2CharacterAI extends AbstractAI
_actor.setRunning();
}
// If pathfinding enabled the creature will go to the nearest obstacle.
// If pathfinding enabled the creature will go to the destination or it will go to the nearest obstacle.
final Location destination;
if (Config.PATHFINDING > 0)
{