Browse Source

Debug string

combat-2
MagicBot 8 months ago
parent
commit
3bd4e75422
  1. 5
      src/engine/net/client/handlers/AttackCmdMsgHandler.java

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

@ -12,6 +12,7 @@ import engine.objects.AbstractWorldObject; @@ -12,6 +12,7 @@ import engine.objects.AbstractWorldObject;
import engine.objects.Mob;
import engine.objects.NPC;
import engine.objects.PlayerCharacter;
import org.pmw.tinylog.Logger;
/*
* @Author:
@ -68,8 +69,10 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler { @@ -68,8 +69,10 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler {
return true; // cannot attack a null target
}
if (playerCharacter.isCombat() && playerCharacter.getCombatTarget().equals(target))
if (playerCharacter.isCombat() && playerCharacter.getCombatTarget().equals(target)) {
Logger.info("Bypass");
return true;
}
//set sources target

Loading…
Cancel
Save