aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/updates/world/master/2017_02_10_00_world.sql3
-rw-r--r--src/server/scripts/Spells/spell_priest.cpp36
2 files changed, 39 insertions, 0 deletions
diff --git a/sql/updates/world/master/2017_02_10_00_world.sql b/sql/updates/world/master/2017_02_10_00_world.sql
new file mode 100644
index 00000000000..662855662df
--- /dev/null
+++ b/sql/updates/world/master/2017_02_10_00_world.sql
@@ -0,0 +1,3 @@
+DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_pri_levitate';
+INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
+(1706,'spell_pri_levitate');
diff --git a/src/server/scripts/Spells/spell_priest.cpp b/src/server/scripts/Spells/spell_priest.cpp
index 6e04955684c..0e0e8858fa5 100644
--- a/src/server/scripts/Spells/spell_priest.cpp
+++ b/src/server/scripts/Spells/spell_priest.cpp
@@ -49,6 +49,7 @@ enum PriestSpells
SPELL_PRIEST_LEAP_OF_FAITH_EFFECT = 92832,
SPELL_PRIEST_LEAP_OF_FAITH_EFFECT_TRIGGER = 92833,
SPELL_PRIEST_LEAP_OF_FAITH_TRIGGERED = 92572,
+ SPELL_PRIEST_LEVITATE_EFFECT = 111759,
SPELL_PRIEST_MANA_LEECH_PROC = 34650,
SPELL_PRIEST_PENANCE_R1 = 47540,
SPELL_PRIEST_PENANCE_R1_DAMAGE = 47758,
@@ -594,6 +595,40 @@ class spell_pri_leap_of_faith_effect_trigger : public SpellScriptLoader
}
};
+// 1706 - Levitate
+class spell_pri_levitate : public SpellScriptLoader
+{
+public:
+ spell_pri_levitate() : SpellScriptLoader("spell_pri_levitate") { }
+
+ class spell_pri_levitate_SpellScript : public SpellScript
+ {
+ PrepareSpellScript(spell_pri_levitate_SpellScript);
+
+ bool Validate(SpellInfo const* /*spellInfo*/) override
+ {
+ if (!sSpellMgr->GetSpellInfo(SPELL_PRIEST_LEVITATE_EFFECT))
+ return false;
+ return true;
+ }
+
+ void HandleDummy(SpellEffIndex /*effIndex*/)
+ {
+ GetCaster()->CastSpell(GetHitUnit(), SPELL_PRIEST_LEVITATE_EFFECT, true);
+ }
+
+ void Register() override
+ {
+ OnEffectHitTarget += SpellEffectFn(spell_pri_levitate_SpellScript::HandleDummy, EFFECT_0, SPELL_EFFECT_DUMMY);
+ }
+ };
+
+ SpellScript* GetSpellScript() const
+ {
+ return new spell_pri_levitate_SpellScript;
+ }
+};
+
// 7001 - Lightwell Renew
class spell_pri_lightwell_renew : public SpellScriptLoader
{
@@ -1254,6 +1289,7 @@ void AddSC_priest_spell_scripts()
new spell_pri_item_greater_heal_refund();
new spell_pri_guardian_spirit();
new spell_pri_leap_of_faith_effect_trigger();
+ new spell_pri_levitate();
new spell_pri_lightwell_renew();
new spell_pri_mana_burn();
new spell_pri_mana_leech();