using System;
using Server;
using Server.Items;
using Server.Engines.Harvest;
using Server.Spells;
using Server.Spells.Spellweaving;

namespace Server.Items
{
	public abstract class BaseMeleeWeapon : BaseWeapon
	{
		public BaseMeleeWeapon( int itemID ) : base( itemID )
		{
		}

		public BaseMeleeWeapon( Serial serial ) : base( serial )
		{
		}

// 		public override int AbsorbDamage( Mobile attacker, Mobile defender, int damage )
// 		{
// 			damage = base.AbsorbDamage( attacker, defender, damage );
// 
// 			if ( defender.MeleeDamageAbsorb > 0 && !AttunementSpell.IsAbsorbing( defender ) )
// 			{
//             int absorb = Math.Min( damage, defender.MeleeDamageAbsorb );
//             
// 				int react = damage / 4;
// 
// 				if ( react <= 0 )
// 					react = 1;
// 
// 				attacker.Damage( react, defender );
// 					
//             damage -= absorb;
//             defender.MeleeDamageAbsorb -= absorb;
//             
//             defender.SendLocalizedMessage( 1075127, String.Format( "{0}\t{1}", absorb, defender.MeleeDamageAbsorb ) ); // ~1_damage~ point(s) of damage have been absorbed. A total of ~2_remaining~ point(s) of shielding remain.
// 				attacker.PlaySound( 0x1F1 );
// 				attacker.FixedEffect( 0x374A, 10, 16 );
// 				
// 				if( defender.MeleeDamageAbsorb <= 0 )
// 				{
// 					defender.MeleeDamageAbsorb = 0;
// 					defender.SendMessage( "Tva ochrana pred fyzickym utokem skoncila" );
// 					DefensiveSpell.Nullify( defender );
// 				}
// 			
//             if( damage < 0 )
//                damage = 0;
//          }
// 			
// 			return damage;
// 		}

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
		}
	}
}