Browse Source

boxshroud fixes

lakebane-master
FatBoy-DOTC 10 months ago
parent
commit
a6a2629fd5
  1. 9
      src/engine/objects/PlayerCharacter.java

9
src/engine/objects/PlayerCharacter.java

@ -4814,22 +4814,25 @@ public class PlayerCharacter extends AbstractCharacter {
this.safeZone = this.isInSafeZone(); this.safeZone = this.isInSafeZone();
if(this.isBoxed && this.containsEffect(1672601862) == false) if(this.isBoxed && this.containsEffect(1672601862) == false) {
this.isBoxed = false; this.isBoxed = false;
for (PlayerCharacter pc : SessionManager.getAllActivePlayers()) { for (PlayerCharacter pc : SessionManager.getAllActivePlayers()) {
if (pc.isActive() == false) if (pc.isActive() == false)
continue; continue;
if (pc.isEnteredWorld() == false) if (pc.isEnteredWorld() == false)
continue; continue;
if (this.getClientConnection().machineID.equals(pc.getClientConnection().machineID)) { if (this.getClientConnection().machineID.equals(pc.getClientConnection().machineID)) {
//add deatshroud effect //add deatshroud effect
if (pc.isBoxed == true) if (pc.isBoxed == true)
continue; continue;
this.isBoxed = true; this.isBoxed = true;
return;
} }
} }
if(this.isBoxed) }
if(this.isBoxed && this.containsEffect(1672601862) == false)
PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false); PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false);
} catch (Exception e) { } catch (Exception e) {

Loading…
Cancel
Save