Fixes casting checks
This commit is contained in:
parent
7ea00fbf4f
commit
03dd5f1926
431 changed files with 5616 additions and 6250 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ namespace Server.Mobiles
|
|||
|
||||
public void BeginSavageDance()
|
||||
{
|
||||
if( this.Map == null )
|
||||
if ( this.Map == null )
|
||||
return;
|
||||
|
||||
ArrayList list = new ArrayList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue