From 62af8eeac15be8c0c1eae886ef5d6a18112266f9 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Wed, 21 Mar 2018 15:24:34 +0000 Subject: [PATCH] Minor change related to previous commit. --- .../game/data/scripts/handlers/actionhandlers/L2NpcAction.java | 3 +-- .../game/data/scripts/handlers/actionhandlers/L2NpcAction.java | 3 +-- .../game/data/scripts/handlers/actionhandlers/L2NpcAction.java | 3 +-- .../game/data/scripts/handlers/actionhandlers/L2NpcAction.java | 3 +-- .../game/data/scripts/handlers/actionhandlers/L2NpcAction.java | 3 +-- .../game/data/scripts/handlers/actionhandlers/L2NpcAction.java | 3 +-- 6 files changed, 6 insertions(+), 12 deletions(-) diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java index 81cea70ced..496159e8a9 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java @@ -83,12 +83,11 @@ public class L2NpcAction implements IActionHandler // Check if the activeChar is attackable (without a forced attack) and isn't dead if (target.isAutoAttackable(activeChar) && !((L2Character) target).isAlikeDead()) { - // Check the height difference + // Check if target is in LoS if (GeoEngine.getInstance().canSeeTarget(activeChar, target)) { // Set the L2PcInstance Intention to AI_INTENTION_ATTACK activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, target); - // activeChar.startAttack(this); } else { diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java index 81cea70ced..496159e8a9 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java @@ -83,12 +83,11 @@ public class L2NpcAction implements IActionHandler // Check if the activeChar is attackable (without a forced attack) and isn't dead if (target.isAutoAttackable(activeChar) && !((L2Character) target).isAlikeDead()) { - // Check the height difference + // Check if target is in LoS if (GeoEngine.getInstance().canSeeTarget(activeChar, target)) { // Set the L2PcInstance Intention to AI_INTENTION_ATTACK activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, target); - // activeChar.startAttack(this); } else { diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java index 81cea70ced..496159e8a9 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java @@ -83,12 +83,11 @@ public class L2NpcAction implements IActionHandler // Check if the activeChar is attackable (without a forced attack) and isn't dead if (target.isAutoAttackable(activeChar) && !((L2Character) target).isAlikeDead()) { - // Check the height difference + // Check if target is in LoS if (GeoEngine.getInstance().canSeeTarget(activeChar, target)) { // Set the L2PcInstance Intention to AI_INTENTION_ATTACK activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, target); - // activeChar.startAttack(this); } else { diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java index 81cea70ced..496159e8a9 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java @@ -83,12 +83,11 @@ public class L2NpcAction implements IActionHandler // Check if the activeChar is attackable (without a forced attack) and isn't dead if (target.isAutoAttackable(activeChar) && !((L2Character) target).isAlikeDead()) { - // Check the height difference + // Check if target is in LoS if (GeoEngine.getInstance().canSeeTarget(activeChar, target)) { // Set the L2PcInstance Intention to AI_INTENTION_ATTACK activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, target); - // activeChar.startAttack(this); } else { diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java index 81cea70ced..496159e8a9 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java @@ -83,12 +83,11 @@ public class L2NpcAction implements IActionHandler // Check if the activeChar is attackable (without a forced attack) and isn't dead if (target.isAutoAttackable(activeChar) && !((L2Character) target).isAlikeDead()) { - // Check the height difference + // Check if target is in LoS if (GeoEngine.getInstance().canSeeTarget(activeChar, target)) { // Set the L2PcInstance Intention to AI_INTENTION_ATTACK activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, target); - // activeChar.startAttack(this); } else { diff --git a/L2J_Mobius_Classic_2.0_Zaken/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java b/L2J_Mobius_Classic_2.0_Zaken/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java index 81cea70ced..496159e8a9 100644 --- a/L2J_Mobius_Classic_2.0_Zaken/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java +++ b/L2J_Mobius_Classic_2.0_Zaken/dist/game/data/scripts/handlers/actionhandlers/L2NpcAction.java @@ -83,12 +83,11 @@ public class L2NpcAction implements IActionHandler // Check if the activeChar is attackable (without a forced attack) and isn't dead if (target.isAutoAttackable(activeChar) && !((L2Character) target).isAlikeDead()) { - // Check the height difference + // Check if target is in LoS if (GeoEngine.getInstance().canSeeTarget(activeChar, target)) { // Set the L2PcInstance Intention to AI_INTENTION_ATTACK activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, target); - // activeChar.startAttack(this); } else {