Browse Source

Attack bypass inserted

combat-2
MagicBot 8 months ago
parent
commit
c68d5e0730
  1. 7
      src/engine/net/client/handlers/AttackCmdMsgHandler.java

7
src/engine/net/client/handlers/AttackCmdMsgHandler.java

@ -12,7 +12,6 @@ import engine.objects.AbstractWorldObject; @@ -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 { @@ -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

Loading…
Cancel
Save