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 | exit; |
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 | } |