1 |
vulnerable = false |
2 |
global.hit_self = true |
3 |
if (global.current_pp_self > 0) |
4 |
{ |
5 |
instance_create(x, y, obj_heart_battle_effect_expand) |
6 |
for (i = 0; i < 5; i++) |
7 |
instance_create(x, y, obj_heart_battle_effect_shard) |
8 |
global.current_pp_self -= 1 |
9 |
audio_play_sound(snd_mirrorbreak1, 20, false) |
10 |
} |
11 |
else |
12 |
{ |
13 |
if (damage_number == 1) |
14 |
global.current_hp_self -= damage |
15 |
else if (damage_number == 2) |
16 |
global.current_hp_self -= damage_2 |
17 |
else if (damage_number == 3) |
18 |
global.current_hp_self -= damage_3 |
19 |
audio_play_sound(snd_hurt, 20, false) |
20 |
if (global.option_screenshake_toggle == true) |
21 |
instance_create(0, 0, obj_screenshake_hurt) |
22 |
} |
23 |
alarm[0] = global.invulnerability_self |