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

@ -62,7 +62,7 @@ namespace Server.Mobiles
public override void OnDamagedBySpell( Mobile from )
{
if( from != null && from.Alive && 0.4 > Utility.RandomDouble() )
if ( from != null && from.Alive && 0.4 > Utility.RandomDouble() )
{
ThrowHatchet( from );
}
@ -72,7 +72,7 @@ namespace Server.Mobiles
{
base.OnGotMeleeAttack( attacker );
if( attacker != null && attacker.Alive && attacker.Weapon is BaseRanged && 0.4 > Utility.RandomDouble() )
if ( attacker != null && attacker.Alive && attacker.Weapon is BaseRanged && 0.4 > Utility.RandomDouble() )
{
ThrowHatchet( attacker );
}

View file

@ -115,7 +115,7 @@ namespace Server.Mobiles
public void BeginSavageDance()
{
if( this.Map == null )
if ( this.Map == null )
return;
ArrayList list = new ArrayList();

View file

@ -17,7 +17,7 @@ namespace Server.Mobiles
Hue = 0x8026;
Buckler buckler = new Buckler();
ChainCoif coif = new ChainCoif();
ChainCoif coif = new ChainCoif ();
PlateGloves gloves = new PlateGloves();
buckler.Hue = 0x835; buckler.Movable = false;