stealth breaking when attacking

This commit is contained in:
2024-05-17 17:07:58 -05:00
parent 19402bf06f
commit fe7f4dc3ca
+1 -3
View File
@@ -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;