package com.sarmatianHeroes.objects
{
	import flash.display.Sprite;
	import flash.display.MovieClip;
	import flash.utils.*
	
	
	public class SquadSpear extends Squad
	{
				
		public function SquadSpear(type:String, quantity:Number) 
		{
			super(type, quantity);
			attackRadius = 100;
			_oneHP = 20;
			Damage = 6;
		}
		
		override public function attack(target:Object):void
		{
			/*var dist:Number = Math.sqrt((target.x-x)*(target.x-x)+(target.y-y)*(target.y-y));
			if ((dist <= target.radius + attackRadius))
			{
				for(var i:uint = 0; i < quantity; i++)
				{
					var arr:Arrow = new Arrow;
					arr.x = this.x + _balls[i].x;
					arr.y = this.y + _balls[i].y-25;
					arr.fire(target);
					this.parent.parent.addChild(arr);
				}
			}*/
			trace(quantity, " spears");
		}
		
		
	}
}