public string CastBaseSkill(Entity[] targets) { string result = ""; if (isAlive()) { if (BaseSkill.CanBeCasted()) { SkillManager.Instance.CastBaseSkill(this, targets); } else { double now = DateTime.Now.TimeOfDay.TotalMilliseconds; double exp = BaseSkill.Expiration; double seconds = exp - now; return $"{Name}'s base skill is cooling down: {Utils.FormatSeconds(seconds / 1000)}"; } } else { return $"{Name} you are dead. You will be revived in: {Utils.FormatSeconds(Utils.GetTimeDifference(ReviveTime) / 1000)}"; } return result; }