This commit is contained in:
luis
2026-08-23 05:34:24 -03:00
parent 0210a458d1
commit 0f0f2e7c3a
+2 -18
View File
@@ -1302,6 +1302,7 @@ class spell_warl_shadowburn : public SpellScript
void CalcCritChance(Unit const* victim, float& critChance) const void CalcCritChance(Unit const* victim, float& critChance) const
{ {
// EFFECT_3 = health threshold, EFFECT_2 = crit chance bonus
if (victim->HealthBelowPct(GetEffectInfo(EFFECT_3).CalcValue(GetCaster()))) if (victim->HealthBelowPct(GetEffectInfo(EFFECT_3).CalcValue(GetCaster())))
critChance += GetEffectInfo(EFFECT_2).CalcValue(GetCaster()); critChance += GetEffectInfo(EFFECT_2).CalcValue(GetCaster());
} }
@@ -1331,23 +1332,6 @@ public:
} }
} }
}; };
class spell_warl_shadowburn_aura : public AuraScript
{
void RemoveEffect(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/) const
{
if (GetTargetApplication()->GetRemoveMode() != AURA_REMOVE_BY_DEATH)
return;
spell_warl_shadowburn::TryEnergize(Object::ToPlayer(GetCaster()), GetTarget(), GetSpellInfo(), nullptr, aurEff);
}
void Register() override
{
AfterEffectRemove += AuraEffectRemoveFn(spell_warl_shadowburn_aura::RemoveEffect, EFFECT_1, SPELL_AURA_DUMMY, AURA_EFFECT_HANDLE_REAL);
}
};
// 686 - Shadow Bolt // 686 - Shadow Bolt
class spell_warl_shadow_bolt : public SpellScript class spell_warl_shadow_bolt : public SpellScript
{ {
@@ -2084,7 +2068,7 @@ void AddSC_warlock_spell_scripts()
RegisterSpellScript(spell_warl_seed_of_corruption); RegisterSpellScript(spell_warl_seed_of_corruption);
RegisterSpellAndAuraScriptPair(spell_warl_seed_of_corruption_dummy, spell_warl_seed_of_corruption_dummy_aura); RegisterSpellAndAuraScriptPair(spell_warl_seed_of_corruption_dummy, spell_warl_seed_of_corruption_dummy_aura);
RegisterSpellScript(spell_warl_seed_of_corruption_generic); RegisterSpellScript(spell_warl_seed_of_corruption_generic);
RegisterSpellAndAuraScriptPair(spell_warl_shadowburn, spell_warl_shadowburn_aura); RegisterSpellScript(spell_warl_shadowburn);
RegisterSpellScript(spell_warl_shadow_bolt); RegisterSpellScript(spell_warl_shadow_bolt);
RegisterSpellScript(spell_warl_shadow_invocation); RegisterSpellScript(spell_warl_shadow_invocation);
RegisterSpellScript(spell_warl_siphon_life); RegisterSpellScript(spell_warl_siphon_life);