Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Scripts/Spells: Drop obsolete PW:S script.
Browse files Browse the repository at this point in the history
Signed-off-by: AriDEV <aridev666@gmail.com>
  • Loading branch information
AriDEV committed Jul 4, 2019
1 parent 31aeb51 commit 5cecda9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 36 deletions.
1 change: 1 addition & 0 deletions sql/updates/world/2019_07_04_00_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DELETE FROM spell_script_names WHERE ScriptName LIKE 'spell_pri_improved_power_word_shield';
36 changes: 0 additions & 36 deletions src/server/scripts/Spells/spell_priest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,41 +153,6 @@ class spell_pri_divine_aegis : public SpellScriptLoader
}
};

class spell_pri_improved_power_word_shield : public SpellScriptLoader
{
public:
spell_pri_improved_power_word_shield() : SpellScriptLoader("spell_pri_improved_power_word_shield") { }

class spell_pri_improved_power_word_shield_AuraScript : public AuraScript
{
PrepareAuraScript(spell_pri_improved_power_word_shield_AuraScript);

void HandleEffectCalcSpellMod(AuraEffect const* aurEff, SpellModifier*& spellMod)
{
if (!spellMod)
{
spellMod = new SpellModifier(GetAura());
spellMod->op = SpellModOp(aurEff->GetMiscValue());
spellMod->type = SPELLMOD_PCT;
spellMod->spellId = GetId();
spellMod->mask = GetSpellInfo()->Effects[aurEff->GetEffIndex()].SpellClassMask;
}

spellMod->value = aurEff->GetAmount();
}

void Register() OVERRIDE
{
DoEffectCalcSpellMod += AuraEffectCalcSpellModFn(spell_pri_improved_power_word_shield_AuraScript::HandleEffectCalcSpellMod, EFFECT_0, SPELL_AURA_DUMMY);
}
};

AuraScript* GetAuraScript() const OVERRIDE
{
return new spell_pri_improved_power_word_shield_AuraScript();
}
};

// 37594 - Greater Heal Refund
class spell_pri_item_greater_heal_refund : public SpellScriptLoader
{
Expand Down Expand Up @@ -883,7 +848,6 @@ void AddSC_priest_spell_scripts()
{
new spell_pri_body_and_soul();
new spell_pri_divine_aegis();
new spell_pri_improved_power_word_shield();
new spell_pri_item_greater_heal_refund();
new spell_pri_leap_of_faith_effect_trigger();
new spell_pri_lightwell_renew();
Expand Down

0 comments on commit 5cecda9

Please sign in to comment.