Core/Units: Focus will now benefit from power regen mods as well

This commit is contained in:
Ovahlord
2021-03-08 20:27:02 +01:00
parent a52bc1798c
commit e34c38cef4

View File

@@ -936,6 +936,7 @@ void Creature::UpdatePowerRegeneration(Powers powerType)
SetFloatValue(UNIT_FIELD_POWER_REGEN_FLAT_MODIFIER, 8.714059f + powerRegenMod); // Most common value in sniffs. Todo: research
break;
case POWER_ENERGY:
case POWER_FOCUS:
{
float regenerationRate = CalculatePct<float>(10, powerRegenModPct) + powerRegenMod;
SetFloatValue(UNIT_FIELD_POWER_REGEN_FLAT_MODIFIER, regenerationRate);