public void RefreshUnitStats(Unit unit) { var health = unit.Stats.Health(); var magic = unit.Stats.Magic(); StatsComputer.RecomputeStats(unit.Stats, unit.GetUnitEffects().ToArray()); unit.Stats.Health(health); unit.Stats.Magic(magic); }