Fixes casting checks
This commit is contained in:
parent
7ea00fbf4f
commit
03dd5f1926
431 changed files with 5616 additions and 6250 deletions
|
|
@ -129,7 +129,7 @@ namespace Server.Regions
|
|||
{
|
||||
if (m is PlayerMobile && ((PlayerMobile)m).Young)
|
||||
{
|
||||
if(!this.YoungProtected)
|
||||
if (!this.YoungProtected)
|
||||
{
|
||||
m.SendGump(new YoungDungeonWarning());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
||||
|
|
|
|||
|
|
@ -98,14 +98,14 @@ namespace Server.Regions
|
|||
{
|
||||
m.Location = m_House.BanLocation;
|
||||
|
||||
if( !Core.SE )
|
||||
if ( !Core.SE )
|
||||
m.SendLocalizedMessage( 501284 ); // You may not enter.
|
||||
}
|
||||
else if ( m_House.IsAosRules && !m_House.Public && !m_House.HasAccess( m ) && m_House.IsInside( m ) )
|
||||
{
|
||||
m.Location = m_House.BanLocation;
|
||||
|
||||
if( !Core.SE )
|
||||
if ( !Core.SE )
|
||||
m.SendLocalizedMessage( 501284 ); // You may not enter.
|
||||
}
|
||||
else if ( m_House.IsCombatRestricted( m ) && m_House.IsInside( m ) && !m_House.IsInside( oldLocation, 16 ) )
|
||||
|
|
@ -159,14 +159,14 @@ namespace Server.Regions
|
|||
{
|
||||
from.Location = m_House.BanLocation;
|
||||
|
||||
if( !Core.SE )
|
||||
if ( !Core.SE )
|
||||
from.SendLocalizedMessage( 501284 ); // You may not enter.
|
||||
|
||||
return false;
|
||||
}
|
||||
else if ( m_House.IsAosRules && !m_House.Public && !m_House.HasAccess( from ) && m_House.IsInside( newLocation, 16 ) )
|
||||
{
|
||||
if( !Core.SE )
|
||||
if ( !Core.SE )
|
||||
from.SendLocalizedMessage( 501284 ); // You may not enter.
|
||||
|
||||
return false;
|
||||
|
|
@ -257,7 +257,7 @@ namespace Server.Regions
|
|||
{
|
||||
from.CloseGump( typeof( ConfirmHouseResize ) );
|
||||
from.CloseGump( typeof( HouseGumpAOS ) );
|
||||
from.SendGump( new ConfirmHouseResize( from, m_House ) );
|
||||
from.SendGump( new ConfirmHouseResize( from, m_House ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -429,4 +429,4 @@ namespace Server.Regions
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ namespace Server.Regions
|
|||
|
||||
bool uncontrolled = !(spawnable is BaseCreature) || !((BaseCreature)spawnable).Controlled;
|
||||
|
||||
if( uncontrolled )
|
||||
if ( uncontrolled )
|
||||
spawnable.Delete();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue