forked from MagicBane/Server
mob clear effects on death
This commit is contained in:
@@ -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)
|
if (this.aej == null || this.source == null || this.action == null || this.power == null || this.source == null || this.eb == null)
|
||||||
return;
|
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);
|
PowersManager.finishEffectTime(this.source, this.target, this.action, this.trains);
|
||||||
|
}
|
||||||
|
|
||||||
if (!this.source.isAlive())
|
if (!this.source.isAlive())
|
||||||
PowersManager.finishEffectTime(this.source, this.target, this.action, this.trains);
|
PowersManager.finishEffectTime(this.source, this.target, this.action, this.trains);
|
||||||
|
|||||||
Reference in New Issue
Block a user