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;
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:
@ -69,11 +68,11 @@ public class AttackCmdMsgHandler extends AbstractClientMsgHandler {
return true; // cannot attack a null target 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 && if (playerCharacter.isCombat() && playerCharacter.getCombatTarget() != null &&
playerCharacter.getCombatTarget().equals(target)) { playerCharacter.getCombatTarget().equals(target))
Logger.info("Bypass");
return true; return true;
}
//set sources target //set sources target

Loading…
Cancel
Save