aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGildor <gildor55@gmail.com>2020-06-02 20:34:44 +0200
committerGitHub <noreply@github.com>2020-06-02 20:34:44 +0200
commit90e00c3e2ab4f8f631dbc9d1a31fa9d315a476bd (patch)
tree1c673724100cfb40dfcdce98f9c311d20e0f4678 /src
parent0e9eb8e7f5eac85531ce25d214cf6018bef4114b (diff)
Core/Spells: Fix ammo consumption (#24736)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Spell.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index fb8904d9e14..272e9aa21ee 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -7484,13 +7484,14 @@ void Spell::HandleLaunchPhase()
PrepareTargetProcessing();
+ bool ammoTaken = false;
+
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
{
float multiplier = 1.0f;
if (m_applyMultiplierMask & (1 << i))
multiplier = m_spellInfo->Effects[i].CalcDamageMultiplier(m_originalCaster, this);
- bool ammoTaken = false;
for (TargetInfo& target : m_UniqueTargetInfo)
{
uint32 mask = target.EffectMask;