public virtual void OnTurnStart() { if (Game.rounds.round <= unit.spawnRound) { return; } cooldown.current.value--; if (cooldown.current <= 0) { charges.current.value++; if (cooldown.max <= 0) { charges.Max(); } else { charges.Ceil(); } cooldown.Max(); } }