From 76284cf3c9b010612335c41f1cffc86cd89f0f57 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 17 Feb 2025 16:36:12 -0600 Subject: [PATCH] player update optimized --- src/engine/objects/PlayerCharacter.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 8f519ec9..a149eb66 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -5184,8 +5184,14 @@ public class PlayerCharacter extends AbstractCharacter { } } - if (this.isBoxed && !this.containsEffect(1672601862)) { - PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false); + if (this.isBoxed && !this.containsEffect(508555434)) { + PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 508555434, 40, false); + } + + if (this.ZergMultiplier != 1.0f && !this.containsEffect(-906894951)) { + PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, -906894951, 40, false); + }else if(this.containsEffect(-906894951)){ + this.effects.remove("Zerg Penalty"); } if (this.isFlying()) {