discard Spawner setter. various fixes to dismount, pets, bolas, specials, spells...
This commit is contained in:
parent
3b94a24a9a
commit
91273d85d6
8 changed files with 137 additions and 143 deletions
|
|
@ -247,8 +247,10 @@ namespace Server.Mobiles
|
|||
}
|
||||
else
|
||||
{
|
||||
if ( m_Rider != null )
|
||||
if( m_Rider != null )
|
||||
{
|
||||
Dismount( m_Rider );
|
||||
}
|
||||
|
||||
Dismount( value );
|
||||
|
||||
|
|
@ -259,8 +261,10 @@ namespace Server.Mobiles
|
|||
|
||||
Internalize();
|
||||
|
||||
if ( value.Target is Bola.BolaTarget )
|
||||
if( value.Target is Bola.BolaTarget )
|
||||
{
|
||||
Target.Cancel( value );
|
||||
}
|
||||
}
|
||||
|
||||
m_Rider = value;
|
||||
|
|
@ -276,9 +280,9 @@ namespace Server.Mobiles
|
|||
{
|
||||
bool result = true;
|
||||
|
||||
if( ( mob is PlayerMobile ) && ( mob as PlayerMobile ).BlockReason != BlockMountType.None )
|
||||
if ((mob is PlayerMobile) && (mob as PlayerMobile).MountBlockReason != BlockMountType.None)
|
||||
{
|
||||
mob.SendLocalizedMessage( ( int )( mob as PlayerMobile ).BlockReason );
|
||||
mob.SendLocalizedMessage((int)(mob as PlayerMobile).MountBlockReason);
|
||||
|
||||
result = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ namespace Server.Mobiles
|
|||
[CorpseName( "a hiryu corpse" )]
|
||||
public class Hiryu : BaseMount
|
||||
{
|
||||
public override double WeaponAbilityChance { get { return 0.07; } } /* 1 in 15 chance of using per landed hit */
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.Dismount;
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ namespace Server.Mobiles
|
|||
[CorpseName( "a hiryu corpse" )]
|
||||
public class LesserHiryu : BaseMount
|
||||
{
|
||||
public override double WeaponAbilityChance { get { return 0.07; } } /* 1 in 15 chance of using; 1 in 5 chance of success */
|
||||
|
||||
public override WeaponAbility GetWeaponAbility()
|
||||
{
|
||||
return WeaponAbility.Dismount;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue