Fixes casting checks
This commit is contained in:
parent
7ea00fbf4f
commit
03dd5f1926
431 changed files with 5616 additions and 6250 deletions
|
|
@ -281,7 +281,7 @@ namespace Server.Regions
|
|||
|
||||
foreach ( Mobile v in m.GetMobilesInRange( 8 ) )
|
||||
{
|
||||
if( !v.Player && v != m && !IsGuardCandidate( v ) && ((v is BaseCreature)? ((BaseCreature)v).IsHumanInTown() : (v.Body.IsHuman && v.Region.IsPartOf( this ))) )
|
||||
if ( !v.Player && v != m && !IsGuardCandidate( v ) && ((v is BaseCreature)? ((BaseCreature)v).IsHumanInTown() : (v.Body.IsHuman && v.Region.IsPartOf( this ))) )
|
||||
{
|
||||
double dist = m.GetDistanceToSqrt( v );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue