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.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 );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue