Core/Units: backported hit, dodge, parry and crit chance updates from 335 and fixed logics in 4.x specific code

This commit is contained in:
Ovahlord committed 2020-08-23 17:14:34 +02:00
1 parent ec1b73e6eb
commit a657a21c4a
4 files changed
+245 -305

No files matched your search

+1 -1
View File
@@ -922,7 +922,7 @@ void Creature::UpdatePowerRegeneration(Powers powerType)
{
case POWER_MANA:
// Regeneration for controlled units
if (GetCharmerGUID() || GetOwnerGUID())
if (!GetCharmerGUID().IsEmpty() || !GetOwnerGUID().IsEmpty())
{
float spiritRegen = (GetStat(STAT_SPIRIT) / 5.f + 17.f);
SetFloatValue(UNIT_FIELD_POWER_REGEN_FLAT_MODIFIER, spiritRegen + powerRegenMod);