fix(Core/Spells): Fix Cold Blood not consumed when Mutilate kills target (#24909)

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
Co-authored-by: ariel- <ariel-@users.noreply.github.com>
This commit is contained in:
blinkysc
2026-02-28 08:14:25 -06:00
committed by GitHub
parent 0b952192c1
commit 7b89dac055
4 changed files with 77 additions and 13 deletions
@@ -9990,14 +9990,6 @@ void Player::RemoveSpellMods(Spell* spell)
if (roll_chance_i(aurEff->GetAmount()))
continue; // don't consume charge
}
// ROGUE MUTILATE WITH COLD BLOOD
if (spellInfo->Id == 5374)
{
SpellInfo const* sp = mod->ownerAura->GetSpellInfo();
if (sp->Id == 14177) // Cold Blood
continue; // don't consume charge
}
if (mod->ownerAura->DropCharge(AURA_REMOVE_BY_EXPIRE))
itr = m_spellMods[i].begin();
}
-4
View File
@@ -4472,10 +4472,6 @@ void Spell::finish(bool ok)
if (m_spellInfo->IsCooldownStartedOnEvent())
m_caster->ToPlayer()->SendCooldownEvent(m_spellInfo, 0, 0, false);
// Rogue fix: Remove Cold Blood if Mutilate off-hand failed
if (m_spellInfo->Id == 27576) // Mutilate, off-hand
if (m_caster->HasAura(14177))
m_caster->RemoveAura(14177);
}
return;
}