fix(Core/Player): Mutilate + Cold Blood crit fix (#22308)
This commit is contained in:
@@ -10002,6 +10002,16 @@ void Player::RemoveSpellMods(Spell* spell)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// ROGUE MUTILATE WITH COLD BLOOD
|
||||||
|
if (spellInfo->Id == 5374)
|
||||||
|
{
|
||||||
|
SpellInfo const* sp = mod->ownerAura->GetSpellInfo();
|
||||||
|
if (sp->Id == 14177) // Cold Blood
|
||||||
|
{
|
||||||
|
mod->charges = 1;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (mod->ownerAura->DropCharge(AURA_REMOVE_BY_EXPIRE))
|
if (mod->ownerAura->DropCharge(AURA_REMOVE_BY_EXPIRE))
|
||||||
itr = m_spellMods[i].begin();
|
itr = m_spellMods[i].begin();
|
||||||
|
|||||||
@@ -4544,6 +4544,11 @@ void Spell::finish(bool ok)
|
|||||||
// Xinef: Reset cooldown event in case of fail cast
|
// Xinef: Reset cooldown event in case of fail cast
|
||||||
if (m_spellInfo->IsCooldownStartedOnEvent())
|
if (m_spellInfo->IsCooldownStartedOnEvent())
|
||||||
m_caster->ToPlayer()->SendCooldownEvent(m_spellInfo, 0, 0, false);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user