From 13f2d237f68f79d2337f62eea8802a0d05b42013 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 30 Mar 2025 08:53:20 -0500 Subject: [PATCH] players will not auto attack others in stealth anymore --- src/engine/jobs/AttackJob.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/jobs/AttackJob.java b/src/engine/jobs/AttackJob.java index 1ad0475d..3de56ecc 100644 --- a/src/engine/jobs/AttackJob.java +++ b/src/engine/jobs/AttackJob.java @@ -36,6 +36,7 @@ public class AttackJob extends AbstractJob { if(pc.combatTarget != null && pc.combatTarget.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)){ PlayerCharacter target = (PlayerCharacter)pc.combatTarget; if(!pc.canSee(target)) { + this._cancelJob(); return; } }