box flag checker
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user