public void ChangeCriticalParry_dcri(Systems Target, int slot, bool delete,bool UpdatePacket)
{
try
{
int amount;
if (!delete)
{
if (Data.SkillBase[Target.Character.Action.Buff.SkillID[slot]].Properties1["dcri"] != 0)
{
amount = Data.SkillBase[Target.Character.Action.Buff.SkillID[slot]].Properties1["dcri"];
Target.Character.Stat.CritParryRatio += amount;
}
}
else
{
amount = Data.SkillBase[Target.Character.Action.Buff.SkillID[slot]].Properties1["dcri"];
Target.Character.Stat.CritParryRatio -= amount;
}
if (UpdatePacket) Target.client.Send(Packet.PlayerStat(Target.Character));
}
catch (Exception ex)
{
Systems.Debugger.Write(ex);
}
}