diff options
author | Ovahlord <dreadkiller@gmx.de> | 2024-07-31 17:09:09 +0200 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2024-07-31 17:09:09 +0200 |
commit | 58456bff19c8872e6030df6dc1c1ab26d664db7d (patch) | |
tree | 0d4274a72a2a4d6153056435bc3958b1aebdf1d6 | |
parent | cb8f38120acd0ef81b16541904d2f5fd93313cd5 (diff) |
Core/Spells: use signed variable to track spent combo points in Eviscerate spell script to match the class member's type
* and to make some folks happy
-rw-r--r-- | src/server/scripts/Spells/spell_rogue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Spells/spell_rogue.cpp b/src/server/scripts/Spells/spell_rogue.cpp index 0a8ba0a7e0a..60e930f6c94 100644 --- a/src/server/scripts/Spells/spell_rogue.cpp +++ b/src/server/scripts/Spells/spell_rogue.cpp @@ -38,7 +38,7 @@ class spell_rog_eviscerate : public SpellScript // Damage: effectValue + (basePoints * Combo) + (AP * 0.091 * Combo) void CalculateDamage(Unit* /*victim*/, int32& /*damage*/, int32& flatMod, float& /*pctMod*/) const { - uint32 combo = GetSpell()->m_spentComboPoints; + int32 combo = GetSpell()->m_spentComboPoints; flatMod += (GetSpellInfo()->GetEffect(EFFECT_0).BasePoints * combo) + (GetCaster()->GetTotalAttackPowerValue(BASE_ATTACK) * 0.091f * combo); } |