public void tookDamage(double damageTaken) {
    	if(invincibility<=0){
	    	game.isDamaged();
	    	invincibility=invTime;
	    	armour-=damageTaken;
	    	if(armour<=0){
	    		Random r = new Random();
	            Color c;
	            
	            int numSparks;
	            if(Spark.glowEnabled){
	            	numSparks=Spark.glowSparks;
	            } else {
	            	numSparks=Spark.normalSparks;
	            }
	            for(int i = 0; i<numSparks;i++){
	            	switch(r.nextInt(3)){
		            	case 0:c=Color.RED;
		            	break;
		            	case 1:c=Color.ORANGE;
		            	break;
		            	case 2:c=Color.RED;
		            	break;
		            	default:c=Color.RED;
	            	}
	            	double angle = r.nextInt(360);
	            	int distance = r.nextInt(200);
	            	int xPos = (int) (x+(Math.cos(angle)*distance));
	            	int yPos = (int) (y+(Math.sin(angle)*distance));
	            	game.addSpark((int) (x+(sprite.getWidth()/2)),(int) (y+(sprite.getHeight()/2)), 10,xPos,yPos,20, c,true);
	            }
	            game.removeEntity(this);
	            game.notifyDeath();
	    	}
    	}
    }