fixed logic to check if hero level is gained and not lost