fixes to miasma special moves.
This commit is contained in:
parent
255bc064ad
commit
296ef1be68
3 changed files with 19 additions and 6 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
|
using Server.Mobiles;
|
||||||
|
|
||||||
namespace Server.Items
|
namespace Server.Items
|
||||||
{
|
{
|
||||||
|
|
@ -21,8 +22,13 @@ namespace Server.Items
|
||||||
|
|
||||||
public override void OnHit(Mobile attacker, Mobile defender, int damage)
|
public override void OnHit(Mobile attacker, Mobile defender, int damage)
|
||||||
{
|
{
|
||||||
if ( !Validate( attacker ) || !CheckMana( attacker, true ) )
|
if( !Validate( attacker ) || !CheckMana( attacker, true ) )
|
||||||
return;
|
{
|
||||||
|
if( !( defender is BaseCreature ) || !( defender as BaseCreature ).HasManaOveride )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ClearCurrentAbility( attacker );
|
ClearCurrentAbility( attacker );
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -477,6 +477,8 @@ namespace Server.Mobiles
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public virtual bool HasManaOveride { get { return false; } }
|
||||||
|
|
||||||
public virtual FoodType FavoriteFood{ get{ return FoodType.Meat; } }
|
public virtual FoodType FavoriteFood{ get{ return FoodType.Meat; } }
|
||||||
public virtual PackInstinct PackInstinct{ get{ return PackInstinct.None; } }
|
public virtual PackInstinct PackInstinct{ get{ return PackInstinct.None; } }
|
||||||
|
|
||||||
|
|
@ -5249,7 +5251,7 @@ namespace Server.Mobiles
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if( m_FailedReturnHome > 0 )
|
||||||
{
|
{
|
||||||
m_FailedReturnHome = 0;
|
m_FailedReturnHome = 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,14 @@ namespace Server.Mobiles
|
||||||
Karma = -21000;
|
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()
|
public override void GenerateLoot()
|
||||||
{
|
{
|
||||||
AddLoot( LootPack.UltraRich, 2 );
|
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 )
|
public Miasma( Serial serial )
|
||||||
: base( serial )
|
: base( serial )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue