Destination of shadow jump should not be within 5 tiles of a house.

This commit is contained in:
xavier 2010-12-11 17:20:56 +00:00
parent b39241220e
commit 2f189e4785
2 changed files with 12 additions and 10 deletions

View file

@ -77,9 +77,8 @@ namespace Server.Spells.Ninjitsu
{
Caster.SendLocalizedMessage( 502831 ); // Cannot teleport to that spot.
}
else if ( SpellHelper.CheckMulti( new Point3D( p ), map ) )
else if (SpellHelper.CheckMulti( Caster.Location, Caster.Map, true, 5 ))
{
// TODO: Cannot shadowjump within 5 tiles from any house.
Caster.SendLocalizedMessage( 502831 ); // Cannot teleport to that spot.
}
else if ( CheckSequence() )
@ -103,7 +102,6 @@ namespace Server.Spells.Ninjitsu
FinishSequence();
}
public class InternalTarget : Target
{
private Shadowjump m_Owner;