Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_ceroba_pacifist_act_helper_Step_0

(view raw script w/o annotations or w/e)
1
if (attack_noloop == 0 && global.enemy_attacking == true)
2
    attack_noloop = 1
3
if (attack_noloop == 1 && global.enemy_attacking == false)
4
{
5
    if (global.current_pp_self > pp_original)
6
        global.current_pp_self = pp_original
7
    if (global.current_sp_self > sp_original)
8
        global.current_sp_self = sp_original
9
    instance_destroy()
10
}