@Override
	protected void etick(){
		checkTargets();
		if(areAllPlayerBlinking() && !dead && targetEntity != null){
			if(nearPlayer()){
				if(!spotted){
					idle = false;
					spotted = true;
					if(soundEffects && foundStr != null)
						SoundManager.playSoundEffect(foundStr);
				}
			}
			if(spotted){
				if(melee){
					if(targetEntity.intersects(this)){
						if(attackFactor == attackMax){
							attack();
							attackFactor = 0;
						} else {
							attackFactor++;
						}	
					}
				}
			}
			if(!farPlayer() && spotted)
				spotted = false;
		} else {
			actiontime = actiondelay;
		}
	}