diff options
-rw-r--r-- | src/server/game/Spells/Auras/SpellAuraEffects.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index b8992c7ee36..d80a4a762d8 100644 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -3351,7 +3351,7 @@ void AuraEffect::HandleAuraModStat(AuraApplication const* aurApp, uint8 mode, bo if (abs(spellGroupVal) >= abs(GetAmount())) return; - for (uint32 i = STAT_STRENGTH; i < MAX_STATS; ++i) + for (int32 i = STAT_STRENGTH; i < MAX_STATS; ++i) { // -1 or -2 is all stats (misc < -2 checked in function beginning) if (GetMiscValue() < 0 || GetMiscValue() == i) @@ -3387,7 +3387,7 @@ void AuraEffect::HandleModPercentStat(AuraApplication const* aurApp, uint8 mode, if (target->GetTypeId() != TYPEID_PLAYER) return; - for (uint32 i = STAT_STRENGTH; i < MAX_STATS; ++i) + for (int32 i = STAT_STRENGTH; i < MAX_STATS; ++i) { if (GetMiscValue() == i || GetMiscValue() == -1) { @@ -3507,7 +3507,7 @@ void AuraEffect::HandleModTotalPercentStat(AuraApplication const* aurApp, uint8 if (target->getDeathState() == CORPSE) zeroHealth = (target->GetHealth() == 0); - for (uint32 i = STAT_STRENGTH; i < MAX_STATS; ++i) + for (int32 i = STAT_STRENGTH; i < MAX_STATS; ++i) { if (GetMiscValueB() & 1 << i || !GetMiscValueB()) // 0 is also used for all stats { |