diff --git a/src/engine/net/client/handlers/AttackCmdMsgHandler.java b/src/engine/net/client/handlers/AttackCmdMsgHandler.java index 617a1c24..fa371473 100644 --- a/src/engine/net/client/handlers/AttackCmdMsgHandler.java +++ b/src/engine/net/client/handlers/AttackCmdMsgHandler.java @@ -12,7 +12,6 @@ import engine.objects.AbstractWorldObject; import engine.objects.Mob; import engine.objects.NPC; import engine.objects.PlayerCharacter; -import org.pmw.tinylog.Logger; /* * @Author: @@ -69,11 +68,11 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler { return true; // cannot attack a null target } + // No point in setting combat target to someone you are already fighting + if (playerCharacter.isCombat() && playerCharacter.getCombatTarget() != null && - playerCharacter.getCombatTarget().equals(target)) { - Logger.info("Bypass"); + playerCharacter.getCombatTarget().equals(target)) return true; - } //set sources target