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