Core/Spells: Seal of Insight will no longer proc on AOE attacks and updated proc data for Cataclysm instead of MoP

This commit is contained in:
Ovahlord
2021-02-19 17:51:07 +01:00
parent f59392d609
commit 3d20971d01
3 changed files with 21 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
UPDATE `spell_proc` SET `Cooldown`= 1000, `ProcsPerMinute`= 15 WHERE `SpellId`= 20165;
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_pal_seal_of_insight';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(20165, 'spell_pal_seal_of_insight');

View File

@@ -3042,8 +3042,6 @@ void SpellMgr::LoadSpellInfoCorrections()
41376, // Spite
45248, // Shadow Blades
46771, // Flame Sear
54171, // Divine Storm
54172, // Divine Storm (heal)
66588 // Flaming Spear
}, [](SpellInfo* spellInfo)
{

View File

@@ -421,7 +421,7 @@ class spell_pal_divine_storm : public SpellScript
if (Unit* caster = GetCaster())
{
int32 heal = CalculatePct(GetHitDamage(), GetSpellInfo()->Effects[EFFECT_1].CalcValue(GetCaster()));
caster->CastSpell(caster, SPELL_PALADIN_DIVINE_STORM_DUMMY, CastSpellExtraArgs(true).AddSpellBP0(heal));
caster->CastSpell(caster, SPELL_PALADIN_DIVINE_STORM_DUMMY, CastSpellExtraArgs(true).AddSpellBP0(heal).AddSpellMod(SPELLVALUE_MAX_TARGETS, 3));
}
}
@@ -1973,6 +1973,20 @@ class spell_pal_tower_of_radiance : public AuraScript
}
};
// 20165 - Seal of Insight
class spell_pal_seal_of_insight : public AuraScript
{
bool CheckProc(ProcEventInfo& eventInfo)
{
return (!eventInfo.GetSpellInfo() || !eventInfo.GetSpellInfo()->IsAffectingArea());
}
void Register() override
{
DoCheckProc.Register(&spell_pal_seal_of_insight::CheckProc);
}
};
void AddSC_paladin_spell_scripts()
{
RegisterSpellScript(spell_pal_ardent_defender);
@@ -2016,6 +2030,7 @@ void AddSC_paladin_spell_scripts()
RegisterSpellScript(spell_pal_protector_of_the_innocent);
new spell_pal_righteous_defense();
RegisterSpellScript(spell_pal_sacred_shield);
RegisterSpellScript(spell_pal_seal_of_insight);
RegisterSpellScript(spell_pal_seal_of_righteousness);
RegisterSpellScript(spell_pal_seal_of_truth);
new spell_pal_shield_of_the_righteous();