package com.sarmatianHeroes.objects 
{
	
	import flash.display.MovieClip;
	
	
	public class HeroBow extends HeroBase 
	{
		
		
		public function HeroBow() 
		{
			super();
			attackRadius = 400;
			Damage = 20;
			speed = 80;
			_heroHPMax = 80;
			heroHP = _heroHPMax;
			_evade = 0.5;
		}
		
		override public function attack(target:Object):void
		{
			var quantity:int = 3;
			for(var i:uint = 0; i < quantity; i++)
			{
				var arr:Arrow = new Arrow;
				arr.scaleX = arr.scaleY = 0.8;
				arr.x = this.x;
				arr.y = this.y-50;
				arr.fire(target);
				this.parent.addChild(arr);
			}

		}
		
	}
	
}
