Fixes code according to modern code style. Fixes a few expression bugs.
This commit is contained in:
parent
89eea25e5f
commit
970fd563b2
3324 changed files with 441118 additions and 433755 deletions
|
|
@ -1,24 +1,24 @@
|
|||
using Server.Targeting;
|
||||
using Server.Commands.Generic;
|
||||
using Server.Targeting;
|
||||
|
||||
namespace Server.Targets
|
||||
{
|
||||
public class PickMoveTarget : Target
|
||||
{
|
||||
public PickMoveTarget() : base( -1, false, TargetFlags.None )
|
||||
{
|
||||
}
|
||||
public class PickMoveTarget : Target
|
||||
{
|
||||
public PickMoveTarget() : base(-1, false, TargetFlags.None)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnTarget( Mobile from, object o )
|
||||
{
|
||||
if ( !BaseCommand.IsAccessible( from, o ) )
|
||||
{
|
||||
from.SendMessage( "That is not accessible." );
|
||||
return;
|
||||
}
|
||||
protected override void OnTarget(Mobile from, object o)
|
||||
{
|
||||
if (!BaseCommand.IsAccessible(from, o))
|
||||
{
|
||||
from.SendMessage("That is not accessible.");
|
||||
return;
|
||||
}
|
||||
|
||||
if ( o is Item || o is Mobile )
|
||||
from.Target = new MoveTarget( o );
|
||||
}
|
||||
}
|
||||
if (o is Item || o is Mobile)
|
||||
from.Target = new MoveTarget(o);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue