box flag checker

This commit is contained in:
2024-05-28 21:37:03 -05:00
parent 3815f9df8e
commit 8b9bc474b4
2 changed files with 6 additions and 39 deletions
+5 -5
View File
@@ -40,15 +40,15 @@ public class BoxFlagThread implements Runnable {
if(LocalDateTime.now().isAfter(nextPulse)) {
for(PlayerCharacter pc : SessionManager.getAllActivePlayerCharacters()){
if(pc.isEnteredWorld() && pc.isActive()){
if(PlayerCharacter.checkIfBoxed(pc)) {
pc.isBoxed = PlayerCharacter.checkIfBoxed(pc);
if(pc.isBoxed) {
if(pc.title.equals(CharacterTitle.BOX) == false) {
pc.title = CharacterTitle.BOX;
//InterestManager.reloadCharacter(pc);
InterestManager.setObjectDirty(pc);
}
if (pc.containsEffect(1672601862) == false) {//Deathshroud
PowersManager.applyPower(pc, pc, Vector3fImmutable.ZERO, 1672601862, 40, false);
if (pc.containsEffect(1672601862) == false) {//Deathshroud
PowersManager.applyPower(pc, pc, Vector3fImmutable.ZERO, 1672601862, 40, false);
}
}
}else{
if(pc.title.equals(CharacterTitle.NONE) == false) {