From 2da0af9595593765426399b3e65c51c3b20fb5e2 Mon Sep 17 00:00:00 2001 From: Gacko Date: Sun, 23 Sep 2012 16:42:31 +0200 Subject: Core: Utgarde Keep - Shadow Axe - MovementInform --- .../UtgardeKeep/UtgardeKeep/boss_ingvar_the_plunderer.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/server/scripts') diff --git a/src/server/scripts/Northrend/UtgardeKeep/UtgardeKeep/boss_ingvar_the_plunderer.cpp b/src/server/scripts/Northrend/UtgardeKeep/UtgardeKeep/boss_ingvar_the_plunderer.cpp index 4662a4c4e31..aaa95631792 100644 --- a/src/server/scripts/Northrend/UtgardeKeep/UtgardeKeep/boss_ingvar_the_plunderer.cpp +++ b/src/server/scripts/Northrend/UtgardeKeep/UtgardeKeep/boss_ingvar_the_plunderer.cpp @@ -402,7 +402,8 @@ public: enum eShadowAxe { SPELL_SHADOW_AXE_DAMAGE = 42750, - H_SPELL_SHADOW_AXE_DAMAGE = 59719 + H_SPELL_SHADOW_AXE_DAMAGE = 59719, + POINT_TARGET = 28 }; class mob_ingvar_throw_dummy : public CreatureScript @@ -427,7 +428,7 @@ public: { float x, y, z; target->GetPosition(x, y, z); - me->GetMotionMaster()->MoveCharge(x, y, z, 42.0f, 28); + me->GetMotionMaster()->MoveCharge(x, y, z, 42.0f, POINT_TARGET); target->DisappearAndDie(); } else @@ -438,7 +439,7 @@ public: void MovementInform(uint32 type, uint32 id) { - if (id == 28) + if (type == EFFECT_MOTION_TYPE && id == POINT_TARGET) { DoCast(me, SPELL_SHADOW_AXE_DAMAGE); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE); -- cgit v1.2.3