Proper skill reduce item consumption.

This commit is contained in:
MobiusDev
2017-04-13 22:14:49 +00:00
parent 5e61cecf5b
commit 4e0d3100be
4 changed files with 18 additions and 4 deletions

View File

@ -446,6 +446,13 @@ public class SkillCaster implements Runnable
// On each repeat recharge shots before cast.
caster.rechargeShots(_skill.useSoulShot(), _skill.useSpiritShot(), false);
// Consume skill reduced item.
if ((_item != null) && ((_item.getItem().getDefaultAction() == ActionType.SKILL_REDUCE) || (_item.getItem().getDefaultAction() == ActionType.SKILL_REDUCE_ON_SKILL_SUCCESS)))
{
caster.destroyItem(_skill.toString(), _item.getObjectId(), _skill.getItemConsumeCount(), target, true);
}
return true;
}