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;
import engine.objects.Mob; import engine.objects.Mob;
import engine.objects.NPC; import engine.objects.NPC;
import engine.objects.PlayerCharacter; import engine.objects.PlayerCharacter;
import org.pmw.tinylog.Logger;
/* /*
* @Author: * @Author:
@ -68,8 +69,10 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler {
return true; // cannot attack a null target 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; return true;
}
//set sources target //set sources target

Loading…
Cancel
Save