public void AbilityRecovery()
{
if (this._abilityCharging)
{
if (this._abilityCharge < this._data.abilityChargeMax)
++this._abilityCharge;
}
else if (this._abilityCharge > 0)
--this._abilityCharge;
if (this._abilityCooldown > 0)
--this._abilityCooldown;
if (this._abilityDuration <= 0)
return;
--this._abilityDuration;
}