Created L2Character method abortAllSkillCasters.

This commit is contained in:
MobiusDev
2019-02-17 08:50:48 +00:00
parent 6943ed2f94
commit 47300f236f
40 changed files with 180 additions and 140 deletions

View File

@@ -29,7 +29,6 @@ import com.l2jmobius.gameserver.model.effects.AbstractEffect;
import com.l2jmobius.gameserver.model.effects.EffectFlag;
import com.l2jmobius.gameserver.model.effects.L2EffectType;
import com.l2jmobius.gameserver.model.skills.Skill;
import com.l2jmobius.gameserver.model.skills.SkillCaster;
/**
* Block Actions effect implementation.
@@ -63,10 +62,7 @@ public final class BlockActions extends AbstractEffect
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
effected.startParalyze();
// Cancel running skill casters.
for (SkillCaster skillCaster : effected.getSkillCasters())
{
skillCaster.stopCasting(true);
}
effected.abortAllSkillCasters();
}
@Override