public void ChangeParry_er(Systems Target, int slot, bool delete,bool UpdatePacket)
{
try
{
if (!delete)
{
int amount;
if (Data.SkillBase[Target.Character.Action.Buff.SkillID[slot]].Properties1["er"] != 0) // parry inc
{
amount = Data.SkillBase[Target.Character.Action.Buff.SkillID[slot]].Properties1["er"];
Target.Character.Action.Buff.UpdatedStats[slot].Parry = amount;
Target.Character.Stat.Parry += Target.Character.Action.Buff.UpdatedStats[slot].Parry;
}
else if (Data.SkillBase[Target.Character.Action.Buff.SkillID[slot]].Properties2["er"] != 0) // parry %inc?
{
}
}
else
{
if (Data.SkillBase[Target.Character.Action.Buff.SkillID[slot]].Properties1["er"] != 0) // parry inc
{
Target.Character.Stat.Parry -= Target.Character.Action.Buff.UpdatedStats[slot].Parry;
Target.Character.Action.Buff.UpdatedStats[slot].Parry = 0;
}
else if (Data.SkillBase[Target.Character.Action.Buff.SkillID[slot]].Properties2["er"] != 0) // parry %inc?
{
}
}
if (UpdatePacket) Target.client.Send(Packet.PlayerStat(Target.Character));
}
catch (Exception ex)
{
Systems.Debugger.Write(ex);
}
}