Core/Spells: fixed an exploit that was allowing stacking spellpower percent bonus values when casting the effects in a special order

This commit is contained in:
Ovahlord
2019-05-23 14:13:19 +02:00
parent b3686c8853
commit 18d30102cc

View File

@@ -7070,7 +7070,7 @@ int32 Unit::SpellBaseDamageBonusDone(SpellSchoolMask schoolMask) const
AddPct(DoneAdvertisedBenefit, spellGroupVal);
break;
}
else
else if (!spellGroupVal)
AddPct(DoneAdvertisedBenefit, aurEff->GetAmount());
}
@@ -7739,7 +7739,7 @@ int32 Unit::SpellBaseHealingBonusDone(SpellSchoolMask schoolMask) const
AddPct(advertisedBenefit, spellGroupVal);
break;
}
else
else if (!spellGroupVal)
AddPct(advertisedBenefit, aurEff->GetAmount());
}