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