Core/Spells: do not check for MiscValue1 in SPELL_AURA_MOD_TOTAL_STAT_PERCENTAGE for stacking checks to fix an exploit that was stacking stats into infinity

This commit is contained in:
Ovahlord
2019-03-08 17:23:11 +01:00
parent 2e09764fa9
commit e30cdbba28

View File

@@ -3534,7 +3534,7 @@ void AuraEffect::HandleModTotalPercentStat(AuraApplication const* aurApp, uint8
return;
Unit* target = aurApp->GetTarget();
int32 spellGroupVal = target->GetHighestExclusiveSameEffectSpellGroupValue(this, SPELL_AURA_MOD_TOTAL_STAT_PERCENTAGE, true, -1);
int32 spellGroupVal = target->GetHighestExclusiveSameEffectSpellGroupValue(this, SPELL_AURA_MOD_TOTAL_STAT_PERCENTAGE);
if (abs(spellGroupVal) >= abs(GetAmount()))
return;