aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-17 17:57:15 -0600
committermegamage <none@none>2009-01-17 17:57:15 -0600
commit54ed3974138f2f51c3c42c4469f9f1541818f631 (patch)
treeec47275d8cec63057455b20598285e2f79a72e2d /src/game/SpellEffects.cpp
parent90e4a2b558f954fb6f24dcf70798ae702293bfa2 (diff)
parent9f1409c557c4ef6edc2bb9b54c6ad0463beb20db (diff)
*Update to Trinity 881.
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index abf20cd9dc2..f6bf10e5d62 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -5946,17 +5946,10 @@ void Spell::EffectCharge(uint32 /*i*/)
float x, y, z;
unitTarget->GetContactPoint(m_caster, x, y, z);
- if(unitTarget->GetTypeId() != TYPEID_PLAYER)
- ((Creature *)unitTarget)->StopMoving();
-
- // Only send MOVEMENTFLAG_WALK_MODE, client has strange issues with other move flags
- m_caster->SendMonsterMove(x, y, z, 0, MOVEMENTFLAG_WALK_MODE, 1);
-
- if(m_caster->GetTypeId() != TYPEID_PLAYER)
- m_caster->GetMap()->CreatureRelocation((Creature*)m_caster,x,y,z,m_caster->GetOrientation());
+ m_caster->GetMotionMaster()->MoveCharge(x, y, z);
// not all charge effects used in negative spells
- if ( !IsPositiveSpell(m_spellInfo->Id))
+ if ( !IsPositiveSpell(m_spellInfo->Id) && m_caster->GetTypeId() == TYPEID_PLAYER)
m_caster->Attack(unitTarget,true);
}