*Move target handling of TARGET_DEST_CASTER_FRONT_LEAP out of SPELL_EFFECT_LEAP handler, this fixes spells with SPELL_EFFECT_LEAP using other target types.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-07-21 02:06:51 +02:00
parent 1944cd17a1
commit dd89c54c6e
5 changed files with 65 additions and 45 deletions
+6
View File
@@ -487,6 +487,12 @@ class WorldObject : public Object, public WorldLocation
GetPosition(&pos);
MovePosition(pos, dist, angle);
}
void MovePositionToFirstCollision(Position &pos, float dist, float angle);
void GetFirstCollisionPosition(Position &pos, float dist, float angle)
{
GetPosition(&pos);
MovePositionToFirstCollision(pos, dist, angle);
}
void GetRandomNearPosition(Position &pos, float radius)
{
GetPosition(&pos);