/**********************************************************
RunUO 2.0 AoV C# script file
Official Age of Valor Script :: www.uovalor.com
Last modified by 
Filepath: scripts\_custom\engines\ML Peerless + misc areas\demitel\Dark Palace\Mobiles\SpectralJuggernaut.cs
Lines of code: 77
***********************************************************/


using System;
using System.Collections;
using Server.Items;
using Server;
using Server.Targeting;

namespace Server.Mobiles
{
	public class SpectralJuggernaut : BaseCreature
	{
		public override bool IgnoreYoungProtection { get { return true; } }
		public override bool AlwaysMurderer{ get{ return true; } }
		public override bool DeleteCorpseOnDeath{ get{ return true; } }

		public override WeaponAbility GetWeaponAbility()
		{
			switch ( Utility.Random( 3 ) )
			{
				default:
				case 0: return WeaponAbility.ArmorIgnore;
				case 1: return WeaponAbility.ConcussionBlow;
				case 2: return WeaponAbility.CrushingBlow;
			}
		}
		[Constructable]
		public SpectralJuggernaut() : base( AIType.AI_Melee, FightMode.Weakest, 10, 1, 0.2, 0.4 )
		{
			Name = "a spectral juggernaut";
			Body = 752;
			Hue = 16385;
			BaseSoundID = 0x3E9;

			ActiveSpeed = 0.001;
			CurrentSpeed = 0.001;
			PassiveSpeed = 0.001;

			SetStr( 2000, 2000 );
			SetDex( 2000, 2000 );
			SetInt( 2000, 2000 );

			SetHits( 100 );

			SetDamage( 70, 90 );

			SetDamageType( ResistanceType.Cold, 10 );
			SetDamageType( ResistanceType.Energy, 90 );

			SetResistance( ResistanceType.Physical, -100, -100 );
			SetResistance( ResistanceType.Fire, -100, -100 );
			SetResistance( ResistanceType.Cold, 100 );
			SetResistance( ResistanceType.Poison, -100, -100 );
			SetResistance( ResistanceType.Energy, -100, -100 );

			SetSkill( SkillName.MagicResist, 85.1, 95.0 );
			SetSkill( SkillName.Tactics, 120.0 );
			SetSkill( SkillName.Tactics, 120.0 );
			SetSkill( SkillName.Wrestling, 150.0 );

			Fame = 666000;
			Karma = -666000;

			VirtualArmor = 15;

		}

		public override void GenerateLoot()
		{
			AddLoot( LootPack.Average );
			AddLoot( LootPack.Meager );
		}

		public override void OnGaveMeleeAttack( Mobile defender )
		{
			base.OnGaveMeleeAttack( defender );

			defender.Damage( Utility.Random( 20, 40 ), this );
		}

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

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

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
		}
	}
}