[unit]
#textdomain wesnoth-utbs
	id=ESpectre
	name= _ "Ethereal Spectre"
	race=undead
	image="units/undead/spectre.png"
	{DEFENSE_ANIM "units/undead/spectre-defend.png" "units/undead/spectre.png" wail.wav }
	hitpoints=33
	movement_type=undeadspirit
	[movement_costs]
		cavewall=1
	[/movement_costs]
	[defense]
		cavewall=50
	[/defense]
	movement=7
	experience=100
	level=3
	alignment=chaotic
	advanceto=null
	{AMLA_TOUGH 3}
	cost=52
	usage=scout
	unit_description= _ "Sometimes called the 'hollow men', spectres form the right arm of their master's power. These abominations are a rightful terror to the living, and keep a sleepless vigil over their master's domain.

The creation of these is no mean feat; the real danger in encountering one is that it is likely only the harbinger of a much more dangerous force that will follow in its wake.

Special Notes: a strike from their blade will drain life from the victim, to renew the Spectre. Spectres have very unusual resistances to damage, and move quite slowly over open water. Unlike normal Spectres, Ethereal Spectres can also move through solid stone walls."
	die_sound=wail-long.wav
	[death]
		[frame]
			begin=0
			end=200
			image="units/undead/spectre-die-1.png"
		[/frame]
		[frame]
			begin=200
			end=400
			image="units/undead/spectre-die-2.png"
		[/frame]
		[frame]
			begin=400
			end=600
			image="units/undead/spectre-die-3.png"
		[/frame]
		[frame]
			begin=600
			end=800
			image="units/undead/spectre-die-4.png"
		[/frame]
	[/death]
	[attack]
		name=baneblade
		description= _"baneblade"
		type=blade
		range=melee
		damage=9
		number=4
		[specials]
			{WEAPON_SPECIAL_DRAIN}
		[/specials]
		[animation]
			[if]
				hits=yes
				[frame]
					begin=-100
					end=100
					image="units/undead/spectre-attack.png"
					sound={SOUND_LIST:SWORD_SWISH}
				[/frame]
			[/if]
			[else]
				hits=no
				[frame]
					begin=-100
					end=100
					image="units/undead/spectre-attack.png"
					sound={SOUND_LIST:MISS}
				[/frame]
			[/else]
		[/animation]
	[/attack]
	[attack]
		name=wail
		description= _"wail"
		type=cold
		range=ranged
		damage=6
		number=3
		[animation]
			[missile_frame]
				begin=-200
				end=0
				image="projectiles/darkmissile-n.png"
				image_diagonal="projectiles/darkmissile-ne.png"
			[/missile_frame]
			[frame]
				begin=-250
				end=50
				image="units/undead/spectre-attack1.png"
			[/frame]
		[/animation]
	[/attack]
[/unit]
