fix(Core/Item): Fixed incorrect damage mod for Heirloom 2H weapons (#15443)

* cherry-pick commit (13fa60ab86)

Co-authored-by: robinsch <robinsch@users.noreply.github.com>
This commit is contained in:
Kitzunu
2023-04-02 20:30:47 +02:00
committed by GitHub
parent a0c51a45fb
commit 511c1918bd
2 changed files with 14 additions and 2 deletions

View File

@@ -1518,6 +1518,16 @@ struct ScalingStatValuesEntry
return 0;
}
bool IsTwoHand(uint32 mask) const
{
if (mask & 0x7E00)
{
if (mask & 0x00000400) return true;
if (mask & 0x00001000) return true;
}
return false;
}
[[nodiscard]] uint32 getSpellBonus(uint32 mask) const
{
if (mask & 0x00008000) return spellPower;