1 | if (global.invc < 1) |
2 | { |
3 | dmgamt = round(dmg - ((global.df + global.adef) / 5)); |
4 | if (dmgamt < 1) |
5 | dmgamt = 1; |
6 | global.hp -= dmgamt; |
7 | if (global.hp < 0) |
8 | global.hp = 0; |
9 | snd_play(snd_hurt1); |
10 | global.hshake = 2; |
11 | global.shakespeed = 2; |
12 | global.vshake = 2; |
13 | instance_create(0, 0, obj_shaker); |
14 | instance_destroy(); |
15 | global.invc = global.inv; |
16 | if (global.battlegroup == 22) |
17 | { |
18 | if (global.hp < 1) |
19 | obj_torielboss.sprite_index = spr_torielboss_mouthcover; |
20 | } |
21 | } |