From 5626255b12d202bf1a5a70fee0dfae38c4495bf1 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 18 Mar 2025 21:15:03 -0500 Subject: [PATCH] mob clear effects on death --- src/engine/jobs/PersistentAoeJob.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/jobs/PersistentAoeJob.java b/src/engine/jobs/PersistentAoeJob.java index d6a66911..2eeb44d5 100644 --- a/src/engine/jobs/PersistentAoeJob.java +++ b/src/engine/jobs/PersistentAoeJob.java @@ -45,8 +45,12 @@ 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.target.isAlive()) + try { + if (!this.target.isAlive()) + PowersManager.finishEffectTime(this.source, this.target, this.action, this.trains); + }catch(Exception e){ PowersManager.finishEffectTime(this.source, this.target, this.action, this.trains); + } if (!this.source.isAlive()) PowersManager.finishEffectTime(this.source, this.target, this.action, this.trains);