From fe7f4dc3cade8e17f44bf3d0b940b41c540b4913 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 17 May 2024 17:07:58 -0500 Subject: [PATCH] stealth breaking when attacking --- src/engine/objects/PlayerCharacter.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index a0936853..2dac4a7a 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4863,7 +4863,7 @@ public class PlayerCharacter extends AbstractCharacter { ItemFactory.fillInventory(this, 980066, 1); } } - checkIfBoxed(this); + this.isBoxed = checkIfBoxed(this); if(this.isBoxed) { if(!this.title.equals(CharacterTitle.BOX)) { this.title = CharacterTitle.BOX; @@ -4904,12 +4904,10 @@ public class PlayerCharacter extends AbstractCharacter { if (pc.equals(player)) continue; if (pc.isBoxed == false) { - player.title = CharacterTitle.BOX; return true; } } - player.title = CharacterTitle.NONE; return false; }catch(Exception e){ return false;