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 { @@ -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 { @@ -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;

Loading…
Cancel
Save