mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-02 18:43:48 +00:00
fix(Core/Spells): Fingers of Frost should always proc alongside with … (#13008)
...Frostbite.
This commit is contained in:
@@ -1450,6 +1450,26 @@ void Aura::HandleAuraSpecificMods(AuraApplication const* aurApp, Unit* caster, b
|
||||
else
|
||||
target->AddAura(74396, target);
|
||||
}
|
||||
break;
|
||||
case 12494: // Frostbite, synchronise with Fingers of Frost
|
||||
{
|
||||
// Find Fingers of Frost
|
||||
if (AuraEffect* aurEff = caster->GetAuraEffect(SPELL_AURA_PROC_TRIGGER_SPELL, SPELLFAMILY_MAGE, 2947, EFFECT_0))
|
||||
{
|
||||
if (SpellInfo const* triggeringSpellInfo = GetTriggeredByAuraSpellInfo())
|
||||
{
|
||||
uint8 fbRank = sSpellMgr->GetSpellRank(triggeringSpellInfo->Id);
|
||||
uint8 fofRank = sSpellMgr->GetSpellRank(aurEff->GetId());
|
||||
uint8 chance = uint8(std::ceil(fofRank * fbRank * 16.6f));
|
||||
|
||||
if (roll_chance_i(chance))
|
||||
{
|
||||
caster->CastSpell(caster, aurEff->GetSpellInfo()->Effects[EFFECT_0].TriggerSpell, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user