Skip to content

Commit 76ab200

Browse files
committed
Core/Spells: Don't grant runic power when death knight abilities that do it using negative power cost miss and the spell has SPELL_ATTR1_DISCOUNT_POWER_ON_MISS
1 parent c886940 commit 76ab200

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/server/game/Spells/Spell.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5572,6 +5572,11 @@ void Spell::TakePower()
55725572
{
55735573
if (!hit)
55745574
{
5575+
// skipping granting power through negative cost only when spell has SPELL_ATTR1_DISCOUNT_POWER_ON_MISS is correct behavior
5576+
// tested with 206931 - Blooddrinker
5577+
if (cost.Amount < 0)
5578+
continue;
5579+
55755580
//lower spell cost on fail (by talent aura)
55765581
if (Player* modOwner = unitCaster->GetSpellModOwner())
55775582
modOwner->ApplySpellMod(m_spellInfo, SpellModOp::PowerCostOnMiss, cost.Amount);

0 commit comments

Comments
 (0)