fixes to miasma special moves.

This commit is contained in:
xavier 2013-01-19 23:06:49 +00:00
parent 255bc064ad
commit 296ef1be68
3 changed files with 19 additions and 6 deletions

View file

@ -1,5 +1,6 @@
using System;
using System.Collections;
using Server.Mobiles;
namespace Server.Items
{
@ -21,8 +22,13 @@ namespace Server.Items
public override void OnHit(Mobile attacker, Mobile defender, int damage)
{
if ( !Validate( attacker ) || !CheckMana( attacker, true ) )
return;
if( !Validate( attacker ) || !CheckMana( attacker, true ) )
{
if( !( defender is BaseCreature ) || !( defender as BaseCreature ).HasManaOveride )
{
return;
}
}
ClearCurrentAbility( attacker );

View file

@ -477,6 +477,8 @@ namespace Server.Mobiles
}
}
public virtual bool HasManaOveride { get { return false; } }
public virtual FoodType FavoriteFood{ get{ return FoodType.Meat; } }
public virtual PackInstinct PackInstinct{ get{ return PackInstinct.None; } }
@ -5249,7 +5251,7 @@ namespace Server.Mobiles
}
}
}
else
else if( m_FailedReturnHome > 0 )
{
m_FailedReturnHome = 0;
}

View file

@ -42,6 +42,14 @@ namespace Server.Mobiles
Karma = -21000;
}
/* yes, this is OSI style */
public override double WeaponAbilityChance { get { return .5; } }
public override double HitPoisonChance { get { return 0.1; } }
public override Poison HitPoison { get { return ( Poison.Lethal ); } }
public override bool HasManaOveride { get { return false; } }
public override bool GivesMLMinorArtifact { get { return true; } }
public override int TreasureMapLevel { get { return 5; } }
public override void GenerateLoot()
{
AddLoot( LootPack.UltraRich, 2 );
@ -83,9 +91,6 @@ namespace Server.Mobiles
}
*/
public override bool GivesMLMinorArtifact{ get{ return true; } }
public override int TreasureMapLevel{ get{ return 5; } }
public Miasma( Serial serial )
: base( serial )
{