From 87bfa503fbab49613816e61dc116f083e65d74ee Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Wed, 28 Feb 2018 21:30:51 +0000 Subject: [PATCH] Block actions effect auto attack fix. --- .../data/scripts/handlers/effecthandlers/BlockActions.java | 5 +++++ .../data/scripts/handlers/effecthandlers/BlockActions.java | 5 +++++ .../data/scripts/handlers/effecthandlers/BlockActions.java | 5 +++++ .../data/scripts/handlers/effecthandlers/BlockActions.java | 5 +++++ .../data/scripts/handlers/effecthandlers/BlockActions.java | 5 +++++ 5 files changed, 25 insertions(+) diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/BlockActions.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/BlockActions.java index aba1c6b66a..e375a452b0 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/BlockActions.java +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/handlers/effecthandlers/BlockActions.java @@ -21,6 +21,7 @@ import java.util.Set; import java.util.stream.Collectors; import com.l2jmobius.gameserver.ai.CtrlEvent; +import com.l2jmobius.gameserver.ai.CtrlIntention; import com.l2jmobius.gameserver.model.StatsSet; import com.l2jmobius.gameserver.model.actor.L2Character; import com.l2jmobius.gameserver.model.effects.AbstractEffect; @@ -69,5 +70,9 @@ public final class BlockActions extends AbstractEffect { effected.getAI().notifyEvent(CtrlEvent.EVT_THINK); } + else + { + effected.getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE); + } } } diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/BlockActions.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/BlockActions.java index aba1c6b66a..e375a452b0 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/BlockActions.java +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/handlers/effecthandlers/BlockActions.java @@ -21,6 +21,7 @@ import java.util.Set; import java.util.stream.Collectors; import com.l2jmobius.gameserver.ai.CtrlEvent; +import com.l2jmobius.gameserver.ai.CtrlIntention; import com.l2jmobius.gameserver.model.StatsSet; import com.l2jmobius.gameserver.model.actor.L2Character; import com.l2jmobius.gameserver.model.effects.AbstractEffect; @@ -69,5 +70,9 @@ public final class BlockActions extends AbstractEffect { effected.getAI().notifyEvent(CtrlEvent.EVT_THINK); } + else + { + effected.getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE); + } } } diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/BlockActions.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/BlockActions.java index aba1c6b66a..e375a452b0 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/BlockActions.java +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/handlers/effecthandlers/BlockActions.java @@ -21,6 +21,7 @@ import java.util.Set; import java.util.stream.Collectors; import com.l2jmobius.gameserver.ai.CtrlEvent; +import com.l2jmobius.gameserver.ai.CtrlIntention; import com.l2jmobius.gameserver.model.StatsSet; import com.l2jmobius.gameserver.model.actor.L2Character; import com.l2jmobius.gameserver.model.effects.AbstractEffect; @@ -69,5 +70,9 @@ public final class BlockActions extends AbstractEffect { effected.getAI().notifyEvent(CtrlEvent.EVT_THINK); } + else + { + effected.getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE); + } } } diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/BlockActions.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/BlockActions.java index aba1c6b66a..e375a452b0 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/BlockActions.java +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/handlers/effecthandlers/BlockActions.java @@ -21,6 +21,7 @@ import java.util.Set; import java.util.stream.Collectors; import com.l2jmobius.gameserver.ai.CtrlEvent; +import com.l2jmobius.gameserver.ai.CtrlIntention; import com.l2jmobius.gameserver.model.StatsSet; import com.l2jmobius.gameserver.model.actor.L2Character; import com.l2jmobius.gameserver.model.effects.AbstractEffect; @@ -69,5 +70,9 @@ public final class BlockActions extends AbstractEffect { effected.getAI().notifyEvent(CtrlEvent.EVT_THINK); } + else + { + effected.getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE); + } } } diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/BlockActions.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/BlockActions.java index aba1c6b66a..e375a452b0 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/BlockActions.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/handlers/effecthandlers/BlockActions.java @@ -21,6 +21,7 @@ import java.util.Set; import java.util.stream.Collectors; import com.l2jmobius.gameserver.ai.CtrlEvent; +import com.l2jmobius.gameserver.ai.CtrlIntention; import com.l2jmobius.gameserver.model.StatsSet; import com.l2jmobius.gameserver.model.actor.L2Character; import com.l2jmobius.gameserver.model.effects.AbstractEffect; @@ -69,5 +70,9 @@ public final class BlockActions extends AbstractEffect { effected.getAI().notifyEvent(CtrlEvent.EVT_THINK); } + else + { + effected.getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE); + } } }