Skip to content

Commit

Permalink
Fix duplication like a dummy
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Sep 29, 2023
1 parent 0ce14cc commit a035f20
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion sql/scriptdev2/spell.sql
Expand Up @@ -1230,7 +1230,6 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES
(32996,'spell_shadow_word_death'),
(48157,'spell_shadow_word_death'),
(48158,'spell_shadow_word_death'),
(55682,'spell_glyph_of_shadow_word_death'),
(589,'spell_shadow_affinity_dots'),
(594,'spell_shadow_affinity_dots'),
(970,'spell_shadow_affinity_dots'),
Expand Down
16 changes: 0 additions & 16 deletions src/game/Spells/Scripts/Scripting/ClassScripts/Priest.cpp
Expand Up @@ -305,21 +305,6 @@ struct GlyphOfLightwell : public AuraScript
}
};

struct GlyphOfShadowWordDeath : public AuraScript
{
void OnApply(Aura* aura, bool apply) const override
{
if (aura->GetEffIndex() == EFFECT_INDEX_0)
aura->GetTarget()->RegisterScriptedLocationAura(aura, SCRIPT_LOCATION_SPELL_DAMAGE_DONE, apply);
}

void OnDamageCalculate(Aura* aura, Unit* /*attacker*/, Unit* victim, int32& advertisedBenefit, float& totalMod) const override
{
if (victim->GetHealthPercent() <= 35.f)
totalMod *= (float(100 + aura->GetModifier()->m_amount) / 100);
}
};

struct ShadowAffinityDots : public AuraScript
{
void OnApply(Aura* aura, bool apply) const override
Expand Down Expand Up @@ -474,7 +459,6 @@ void LoadPriestScripts()
RegisterSpellScript<LightwellRenew>("spell_lightwell_renew");
RegisterSpellScript<LightwellRelay>("spell_lightwell_relay");
RegisterSpellScript<GlyphOfLightwell>("spell_glyph_of_lightwell");
RegisterSpellScript<GlyphOfShadowWordDeath>("spell_glyph_of_shadow_word_death");
RegisterSpellScript<ShadowAffinityDots>("spell_shadow_affinity_dots");
RegisterSpellScript<GuardianSpiritPriest>("spell_guardian_spirit_priest");
RegisterSpellScript<RenewedHope>("spell_renewed_hope");
Expand Down

0 comments on commit a035f20

Please sign in to comment.