{
_enchant4Skill = SkillTable.getInstance().getInfo(3426, 1);
} // Maximum Ability
if(_pDam != 0)
{
attachFunction(new FuncTemplate(null, "Add", Stats.POWER_ATTACK, 0x10, _pDam));
}
if(_mDam != 0)
{
attachFunction(new FuncTemplate(null, "Add", Stats.MAGIC_ATTACK, 0x10, _mDam));
}
if(_critical != 0)
{
attachFunction(new FuncTemplate(null, "Set", Stats.CRITICAL_BASE, 0x08, _critical * 10));
}
if(_aSpd != 0)
{
attachFunction(new FuncTemplate(null, "Set", Stats.ATK_BASE, 0x08, _aSpd));
}
if(_sDef != 0)
{
attachFunction(new FuncTemplate(null, "Add", Stats.SHIELD_DEFENCE, 0x10, _sDef));
}
if(_accmod != 0)
{
attachFunction(new FuncTemplate(null, "Add", Stats.ACCURACY_COMBAT, 0x10, _accmod));
}
if(_evsmod != 0)
{
attachFunction(new FuncTemplate(null, "Add", Stats.EVASION_RATE, 0x10, _evsmod));
}
if(_rShld != 0)
{
attachFunction(new FuncTemplate(null, "Add", Stats.SHIELD_RATE, 0x10, _rShld));
}
if(_crystalType != Grade.NONE)
{
if(_sDef > 0)
{
attachFunction(new FuncTemplate(null, "Enchant", Stats.SHIELD_DEFENCE, 0x0C, 0));
if(set.getInteger("type2") == L2Item.TYPE2_SHIELD_ARMOR)
{
attachFunction(new FuncTemplate(null, "Enchant", Stats.MAX_HP, 0x80, 0));
}
}
if(_pDam > 0)
{
attachFunction(new FuncTemplate(null, "Enchant", Stats.POWER_ATTACK, 0x0C, 0));
}
if(_mDam > 0)
{
attachFunction(new FuncTemplate(null, "Enchant", Stats.MAGIC_ATTACK, 0x0C, 0));
}
}
}