This commit is contained in:
parent
296ef1be68
commit
5718b66fde
4 changed files with 36 additions and 13 deletions
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
|
|
@ -24,10 +23,7 @@ namespace Server.Items
|
|||
{
|
||||
if( !Validate( attacker ) || !CheckMana( attacker, true ) )
|
||||
{
|
||||
if( !( defender is BaseCreature ) || !( defender as BaseCreature ).HasManaOveride )
|
||||
{
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
ClearCurrentAbility( attacker );
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ using System.Collections;
|
|||
using Server;
|
||||
using Server.Network;
|
||||
using Server.Spells;
|
||||
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
|
|
@ -141,6 +141,11 @@ namespace Server.Items
|
|||
|
||||
if ( from.Mana < mana )
|
||||
{
|
||||
if( ( from is BaseCreature ) && ( from as BaseCreature ).HasManaOveride )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
from.SendLocalizedMessage( 1060181, mana.ToString() ); // You need ~1_MANA_REQUIREMENT~ mana to perform that attack
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue