aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPitcrawler <pitcrawler@server.fake>2013-05-27 14:29:46 +0200
committerPitcrawler <pitcrawler@server.fake>2013-05-27 14:29:46 +0200
commit379d41735cef617f1891132b9f32c8b936828ddd (patch)
treee942f0f058c5b846abed90ecd96cca27a9a973d0 /src
parentc0490644d8572acde4909973c778de7909f91edc (diff)
DB/Quests: Fix some remaining issues from https://github.com/TrinityCore/TrinityCore/commit/aaa1d9b749988fb1ad3139041e7199b1381b54ba
For example the missing floating visual and prevent the script from being started more than once.
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_quest.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp
index 3036c52876d..4cc464af9ab 100644
--- a/src/server/scripts/Spells/spell_quest.cpp
+++ b/src/server/scripts/Spells/spell_quest.cpp
@@ -1640,6 +1640,37 @@ class spell_q13291_q13292_q13239_q13261_armored_decoy_summon_skytalon : public S
}
};
+class spell_q12847_summon_soul_moveto_bunny : public SpellScriptLoader
+{
+ public:
+ spell_q12847_summon_soul_moveto_bunny() : SpellScriptLoader("spell_q12847_summon_soul_moveto_bunny") { }
+
+ class spell_q12847_summon_soul_moveto_bunny_SpellScript : public SpellScript
+ {
+ PrepareSpellScript(spell_q12847_summon_soul_moveto_bunny_SpellScript);
+
+ void ChangeSummonPos(SpellEffIndex /*effIndex*/)
+ {
+ // Adjust effect summon position
+ WorldLocation summonPos = *GetExplTargetDest();
+ Position offset = { 0.0f, 0.0f, 2.5f, 0.0f };
+ summonPos.RelocateOffset(offset);
+ SetExplTargetDest(summonPos);
+ GetHitDest()->RelocateOffset(offset);
+ }
+
+ void Register()
+ {
+ OnEffectHit += SpellEffectFn(spell_q12847_summon_soul_moveto_bunny_SpellScript::ChangeSummonPos, EFFECT_0, SPELL_EFFECT_SUMMON);
+ }
+ };
+
+ SpellScript *GetSpellScript() const
+ {
+ return new spell_q12847_summon_soul_moveto_bunny_SpellScript();
+ }
+};
+
void AddSC_quest_spell_scripts()
{
new spell_q55_sacred_cleansing();
@@ -1680,4 +1711,5 @@ void AddSC_quest_spell_scripts()
new spell_q12527_zuldrak_rat();
new spell_q13291_q13292_q13239_q13261_frostbrood_skytalon_grab_decoy();
new spell_q13291_q13292_q13239_q13261_armored_decoy_summon_skytalon();
+ new spell_q12847_summon_soul_moveto_bunny();
}