aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Spells
diff options
context:
space:
mode:
authorjoschiwald <joschiwald.trinity@gmail.com>2017-05-04 18:08:02 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2017-05-04 18:38:04 +0200
commit3b873add1933ffa6593b2e3d7be2033257cffc62 (patch)
tree6cba6d23f4f0b0fece911b335535f985a9261f3f /src/server/scripts/Spells
parent0d556dd4af739130d2217ad66b65787bb310c46b (diff)
Core/Packets: Implemented SMSG_CANCEL_SPELL_VISUAL_KIT and SMSG_PLAY_ORPHAN_SPELL_VISUAL
* Added some helper methods for sending these packets Closes #19486
Diffstat (limited to 'src/server/scripts/Spells')
-rw-r--r--src/server/scripts/Spells/spell_warrior.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/server/scripts/Spells/spell_warrior.cpp b/src/server/scripts/Spells/spell_warrior.cpp
index 5b0f82b44fc..69ab4a36095 100644
--- a/src/server/scripts/Spells/spell_warrior.cpp
+++ b/src/server/scripts/Spells/spell_warrior.cpp
@@ -27,7 +27,6 @@
#include "SpellHistory.h"
#include "SpellScript.h"
#include "SpellAuraEffects.h"
-#include "SpellPackets.h"
enum WarriorSpells
{
@@ -173,16 +172,8 @@ class spell_warr_charge_drop_fire_periodic : public SpellScriptLoader
for (uint32 i = 0; i < 5; ++i)
{
int32 timeOffset = 6 * i * aurEff->GetPeriod() / 25;
- WorldPackets::Spells::PlaySpellVisual playSpellVisual;
- playSpellVisual.Source = GetTarget()->GetGUID();
- playSpellVisual.TargetPostion = static_cast<G3D::Vector3>(GetTarget()->movespline->ComputePosition(timeOffset)); // slices
- playSpellVisual.SpellVisualID = SPELL_VISUAL_BLAZING_CHARGE;
- playSpellVisual.TravelSpeed = 1.0f;
- playSpellVisual.MissReason = 0;
- playSpellVisual.ReflectStatus = 0;
- playSpellVisual.Orientation = 0.0f;
- playSpellVisual.SpeedAsTime = true;
- GetTarget()->SendMessageToSet(playSpellVisual.Write(), true);
+ Movement::Location loc = GetTarget()->movespline->ComputePosition(timeOffset);
+ GetTarget()->SendPlaySpellVisual(loc, 0.f, SPELL_VISUAL_BLAZING_CHARGE, 0, 0, 1.f, true);
}
}
}