From 58456bff19c8872e6030df6dc1c1ab26d664db7d Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Wed, 31 Jul 2024 17:09:09 +0200 Subject: 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 --- src/server/scripts/Spells/spell_rogue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3