Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_phase_2_green_petal_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if place_meeting(x, y, obj_heart_battle_fighting_yellow_final)
4
{
5
    audio_play_sound(snd_heal, 1, 0)
6
    instance_destroy()
7
    if (global.current_hp_self > global.max_hp_self)
8
        return;
9
    global.current_hp_self += heal_amount
10
    if (global.current_hp_self > global.max_hp_self)
11
        global.current_hp_self = global.max_hp_self
12
}