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:
1 parent
ec1b73e6eb
commit
a657a21c4a
4 files changed
+245
-305
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user