| 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 | snd_play(snd_hurt1); |
| 8 | global.hshake = 2; |
| 9 | global.shakespeed = 2; |
| 10 | global.vshake = 2; |
| 11 | instance_create(0, 0, obj_shaker); |
| 12 | global.invc = global.inv * 2; |
| 13 | if (global.battlegroup == 22) |
| 14 | { |
| 15 | if (global.hp < 1) |
| 16 | obj_torielboss.sprite_index = spr_torielboss_mouthcover; |
| 17 | } |
| 18 | } |