if (sprite_index == spr_vines_grab)
{
sprite_index = spr_heart_wrapped
alarm[0] = 45alarm[0]audio_play_sound(snd_hurt, 1, 0) shake_count -= 1 shake_intensity = 4 - shake_count if (shake_count <= 0) { audio_play_sound(snd_undertale_flash, 1, 0) sprite_index = spr_heart_released alarm[1] = 60 } else alarm[0] = 30 + shake_count * 0.5
}
if (sprite_index == spr_heart_released)
image_index = image_number - 1