Fixes casting checks

This commit is contained in:
Kamron Batman 2018-08-19 01:38:55 +08:00
parent 7ea00fbf4f
commit 03dd5f1926
431 changed files with 5616 additions and 6250 deletions

View file

@ -40,7 +40,7 @@ namespace Server.Items
public override void OnAfterDelete()
{
if( m_Timer != null )
if ( m_Timer != null )
m_Timer.Stop();
}
@ -49,10 +49,10 @@ namespace Server.Items
DateTime now = DateTime.UtcNow;
TimeSpan age = now - m_Created;
if( age > m_Duration ) {
if ( age > m_Duration ) {
Delete();
} else {
if( !m_Drying && age > (m_Duration - age) )
if ( !m_Drying && age > (m_Duration - age) )
{
m_Drying = true;
ItemID = 0x122B;
@ -64,7 +64,7 @@ namespace Server.Items
{
BaseCreature bc = m as BaseCreature;
if( m.Alive && !m.IsDeadBondedPet && (bc == null || bc.Controlled || bc.Summoned) )
if ( m.Alive && !m.IsDeadBondedPet && (bc == null || bc.Controlled || bc.Summoned) )
{
toDamage.Add( m );
}