aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorOvahlord <dreadkiller@gmx.de>2024-07-31 13:40:01 +0200
committerOvahlord <dreadkiller@gmx.de>2024-07-31 13:40:01 +0200
commit947fd260a84aad1f1739a1a71394d7e49ea38f84 (patch)
treeca6a180873f09a32576fe9593c8258ccc6f86759 /src/server/scripts
parent72e9036481abdd302a1ebb6ef1609822cb7e1cf3 (diff)
Core/Spells: treat combo points consumption similar to regular power to allow spending and gaining combo points within the same update tick
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Spells/spell_rogue.cpp2
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 f63117299f5..45474c7135c 100644
--- a/src/server/scripts/Spells/spell_rogue.cpp
+++ b/src/server/scripts/Spells/spell_rogue.cpp
@@ -37,7 +37,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
{
- int32 combo = GetCaster()->GetPower(POWER_COMBO_POINTS);
+ uint32 combo = GetSpell()->m_spentComboPoints;
flatMod += (GetSpellInfo()->GetEffect(EFFECT_0).BasePoints * combo) + (GetCaster()->GetTotalAttackPowerValue(BASE_ATTACK) * 0.091f * combo);
}