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 );