1 | if (intangible == 0) |
2 | { |
3 | if (global.invc < 1) |
4 | { |
5 | dmgamt = round(dmg - ((global.df + global.adef) / 5)); |
6 | if (dmgamt < 1) |
7 | dmgamt = 1; |
8 | global.hp -= dmgamt; |
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 | } |
17 | } |