Destination of shadow jump should not be within 5 tiles of a house.
This commit is contained in:
parent
b39241220e
commit
2f189e4785
2 changed files with 12 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue