RestorationInfo restorationInfo = RestorationInfoHolder.getInstance().getRestorationInfo(this);
if (restorationInfo == null)
{
return;
}
Playable playable = (Playable)activeChar;
int itemConsumeId = restorationInfo.getItemConsumeId();
int itemConsumeCount = restorationInfo.getItemConsumeCount();
if ((itemConsumeId > 0) && (itemConsumeCount > 0))
{
if (ItemFunctions.getItemCount(playable, itemConsumeId) < itemConsumeCount)
{
playable.sendPacket(SystemMsg.THERE_ARE_NOT_ENOUGH_NECESSARY_ITEMS_TO_USE_THE_SKILL);
return;
}
ItemFunctions.removeItem(playable, itemConsumeId, itemConsumeCount, true);
}