/**********************************************************
RunUO AoV C# script file
Official Age of Valor Script :: www.uovalor.com
Last modified by Red Squirrel on Sep-24-2011 10:26:43pm
Filepath: scripts\Items\Artifacts\champion spawns\IlhenirDecayingArmBone.cs
Lines of code: 60

Description: 

***********************************************************/






using System;
using Server;

namespace Server.Items
{
	public class IlhenirsDecayingArmBone : ShortSpear
	{
		public override int InitMinHits{ get{ return 255; } }
		public override int InitMaxHits{ get{ return 255; } }

		[Constructable]
		public IlhenirsDecayingArmBone()
		{
			Name = "Ilhenir's Decaying Arm Bone";
			Hue = 1420;
			
			WeaponAttributes.UseBestSkill=1;
			Attributes.AttackChance = 15;
			WeaponAttributes.HitFireball = 100;			
			WeaponAttributes.HitLowerAttack = 50;			
			Attributes.WeaponDamage = 55;
			
			
				
			AosElementDamages.Physical=100;
			AosElementDamages.Fire=0;
			AosElementDamages.Cold=0;
			AosElementDamages.Poison=0;
			AosElementDamages.Energy=0;
			AosElementDamages.Chaos=0;	

		}

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

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

			writer.Write( (int) 2 );
		}
		
		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
			
			
			if(version<=1)
			{
				Hue = 1420;
				WeaponAttributes.HitLowerAttack = 0;
				WeaponAttributes.HitHarm = 0;
				Attributes.AttackChance = 0;
				Attributes.WeaponDamage = 0;
				WeaponAttributes.ResistPoisonBonus = 0;
				
				
				
				WeaponAttributes.UseBestSkill=1;
				Attributes.AttackChance = 15;
				WeaponAttributes.HitFireball = 100;			
				WeaponAttributes.HitLowerAttack = 50;			
				Attributes.WeaponDamage = 55;				
				
					
				AosElementDamages.Physical=100;
				AosElementDamages.Fire=0;
				AosElementDamages.Cold=0;
				AosElementDamages.Poison=0;
				AosElementDamages.Energy=0;
				AosElementDamages.Chaos=0;					
			}
			
		}
	}
}