Add maxHealth check to Spawn event