From 3d4118962e98e0c6d18a4cfe83501f33c61da6a2 Mon Sep 17 00:00:00 2001 From: Hondacrx Date: Wed, 4 Jun 2025 09:12:30 -0400 Subject: [PATCH] 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 Port From (https://github.com/TrinityCore/TrinityCore/commit/76ab2007c0540542b892dd66e9287b394c54ee42) --- Source/Game/Spells/Spell.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Game/Spells/Spell.cs b/Source/Game/Spells/Spell.cs index 331b81ad0..f36cca60e 100644 --- a/Source/Game/Spells/Spell.cs +++ b/Source/Game/Spells/Spell.cs @@ -4741,6 +4741,11 @@ namespace Game.Spells { if (!hit) { + // skipping granting power through negative cost only when spell has SPELL_ATTR1_DISCOUNT_POWER_ON_MISS is correct behavior + // tested with 206931 - Blooddrinker + if (cost.Amount < 0) + continue; + //lower spell cost on fail (by talent aura) Player modOwner = unitCaster.GetSpellModOwner(); if (modOwner != null)