Skip to content
Snippets Groups Projects
Commit 51839f0b authored by Nos's avatar Nos
Browse files

BETA: DP-Part for [L6361]

	* Cleaned up a bit `StealAbnormal` effect.
	
Tested by: St3et
Reviewed by: St3et
parent c703301c
No related branches found
No related tags found
No related merge requests found
...@@ -81,24 +81,8 @@ public final class StealAbnormal extends AbstractEffect ...@@ -81,24 +81,8 @@ public final class StealAbnormal extends AbstractEffect
final BuffInfo stolen = new BuffInfo(env); final BuffInfo stolen = new BuffInfo(env);
stolen.setAbnormalTime(infoToSteal.getTime()); // Copy the remaining time. stolen.setAbnormalTime(infoToSteal.getTime()); // Copy the remaining time.
// To include all the effects, it's required to go through the template rather the buff info. // To include all the effects, it's required to go through the template rather the buff info.
for (AbstractEffect effect : infoToSteal.getSkill().getEffects(EffectScope.GENERAL)) infoToSteal.getSkill().applyEffectScope(EffectScope.GENERAL, stolen, true, true);
{ info.getEffected().getEffectList().remove(true, infoToSteal);
if (effect != null)
{
if (effect.isInstant())
{
if (effect.calcSuccess(stolen))
{
effect.onStart(stolen);
}
}
else if (effect.canStart(stolen))
{
stolen.addEffect(effect);
}
}
}
info.getEffected().getEffectList().remove(infoToSteal);
info.getEffector().getEffectList().add(stolen); info.getEffector().getEffectList().add(stolen);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment