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