private void RecastAbility(AbilityKey key) { AbilityRecast?.Invoke(this, key); AbilitiesOnRecast[key]--; if (AbilitiesOnRecast[key] == 0) { StartCooldownTimer(key); } }
private void RecastAbility(AbilityKey key) { AbilityRecast?.Invoke(this, key); AbilitiesOnRecast[key]--; if (AbilitiesOnRecast[key] == 0) { if (AbilityCastModes[key].RecastMode.RecastOnKeyUp) { SelectedAbility = AbilityKey.None; } StartCooldownTimer(key); } }