public void Atack(Hero attacking, Hero attacked) { int damage; if (attacking.buf) { attacking.Atack(out damage); logger.Atack(attacking, attacked, damage); attacked.GetDamage(damage + attacking.bufDamage); } else { attacking.Atack(out damage); logger.Atack(attacking, attacked, damage); attacked.GetDamage(damage); } }
public void UseSkill(Hero attacking, Hero attacked) { int damage; string skillName; if (attacking.buf) { attacking.Skill(out skillName, out damage); logger.Skill(attacking, attacked, skillName, damage); attacked.GetDamage(damage + attacking.bufDamage); } else { attacking.Skill(out skillName, out damage); logger.Skill(attacking, attacked, skillName, damage); attacked.GetDamage(damage); } }