public void damage(int damage, int dir, Mob toDamage, Mob attacker){
		
		if(target == null) target = attacker;
		if(damage > 0){
			for(int i = 0; i < (damage * 3); i++) dungeon.addParticle(new BloodParticle(dungeon.getParticles().size(), x, y, 0xffE04141, 2, 0.4, dungeon, random));
			dungeon.addParticle(new TextParticle(dungeon.getParticles().size(), x, y, "-" + damage, 0xffE04141, 2, 0.4, dungeon, random));
		}
		else dungeon.addParticle(new TextParticle(dungeon.getParticles().size(), x, y, "-" + damage, 0xff41A3E0, 2, 0.4, dungeon, random));
		
		knockDir = dir;
		knockback = 3f;
		
		if(health - damage > 0) health -= damage;
		else{
			setDead(true);
			health = 0;
		}
	}