public IEnumerator PerformFrostBoltCoroutine(LivingEntity caster, LivingEntity victim) { Ability frostbolt = caster.mySpellBook.GetAbilityByName("Frost Bolt"); caster.StartCoroutine(caster.AttackMovement(victim)); CombatLogic.Instance.HandleDamage(CombatLogic.Instance.CalculateDamage(frostbolt.abilityPrimaryValue, victim, caster, frostbolt.abilityDamageType), caster, victim); victim.ApplyPinned(); OnAbilityUsed(frostbolt, caster); yield return(null); }