From 5c53bf875ab0426d9b57917b6433e835ca43e3df Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 24 Mar 2025 18:46:22 -0500 Subject: [PATCH] fix boxed fury crash game bug --- src/engine/jobs/PersistentAoeJob.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/engine/jobs/PersistentAoeJob.java b/src/engine/jobs/PersistentAoeJob.java index efd19b8f..a97b9341 100644 --- a/src/engine/jobs/PersistentAoeJob.java +++ b/src/engine/jobs/PersistentAoeJob.java @@ -45,6 +45,13 @@ public class PersistentAoeJob extends AbstractEffectJob { if (this.aej == null || this.source == null || this.action == null || this.power == null || this.source == null || this.eb == null) return; + if(this.source.isAlive() && this.source.getObjectType().equals(GameObjectType.PlayerCharacter)){ + PlayerCharacter pc = (PlayerCharacter)this.source; + if(pc.isBoxed){ + this.cancelJob(); + } + } + if (!this.source.isAlive()) PowersManager.finishEffectTime(this.source, this.target, this.action, this.trains); else if (this.iteration < this.power.getChantIterations()) {