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