private void onDamage(float damageValue) { if (!actionApplied && (killable.getHealth().IsPreciselySmallerOrEqualTo(maxHealth))) { actionApplied = true; applyActionOnObjects(actionWhenValueReached); } }