mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
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:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user