public boolean hit(GroupOfUnits target)
	{
		int c = 0;
		if(type.name.equals("Wąpierz") && new Random().nextInt(10) > 6)
			c = new Random().nextInt(1) + 1;
		target.totalHP -= number*getAttack()*type.damageRatio(target.type)*target.type.receivedDamageRation(type)*1.0/3.0;
		target.number = java.lang.Math.max(0, (int)java.lang.Math.ceil((float)target.totalHP/target.getDefense()));
		number = number+c;
		totalHP += getDefense()*c;
		
		if (target.totalHP <= 0) {
			target.getOwner().getUnits().remove(target);
			return true;
		}
		return false;
	}