Browse Source

stealth breaking when attacking

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
fe7f4dc3ca
  1. 4
      src/engine/objects/PlayerCharacter.java

4
src/engine/objects/PlayerCharacter.java

@ -4863,7 +4863,7 @@ public class PlayerCharacter extends AbstractCharacter {
ItemFactory.fillInventory(this, 980066, 1); ItemFactory.fillInventory(this, 980066, 1);
} }
} }
checkIfBoxed(this); this.isBoxed = checkIfBoxed(this);
if(this.isBoxed) { if(this.isBoxed) {
if(!this.title.equals(CharacterTitle.BOX)) { if(!this.title.equals(CharacterTitle.BOX)) {
this.title = CharacterTitle.BOX; this.title = CharacterTitle.BOX;
@ -4904,12 +4904,10 @@ public class PlayerCharacter extends AbstractCharacter {
if (pc.equals(player)) if (pc.equals(player))
continue; continue;
if (pc.isBoxed == false) { if (pc.isBoxed == false) {
player.title = CharacterTitle.BOX;
return true; return true;
} }
} }
player.title = CharacterTitle.NONE;
return false; return false;
}catch(Exception e){ }catch(Exception e){
return false; return false;

Loading…
Cancel
Save