Browse Source

players will not auto attack others in stealth anymore

lakebane-recovery
FatBoy-DOTC 4 days ago
parent
commit
13f2d237f6
  1. 1
      src/engine/jobs/AttackJob.java

1
src/engine/jobs/AttackJob.java

@ -36,6 +36,7 @@ public class AttackJob extends AbstractJob { @@ -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;
}
}

Loading…
Cancel
Save