1 |
if (global.turntimer < 3) |
2 |
{ |
3 |
with (obj_spearbullet_follow) |
4 |
deactivate = 1; |
5 |
with (obj_undyneboss) |
6 |
darkify = 3; |
7 |
instance_destroy(); |
8 |
} |
9 |
if (global.turntimer < 4) |
10 |
{ |
11 |
if (instance_exists(obj_undyneboss)) |
12 |
{ |
13 |
if (obj_undyneboss.order == 9 || obj_undyneboss.order == 15) |
14 |
{ |
15 |
global.turntimer = 30; |
16 |
if (obj_undyneboss.order == 9) |
17 |
obj_undyneboss.lesson = 8; |
18 |
if (obj_undyneboss.order == 15) |
19 |
obj_undyneboss.lesson = 13; |
20 |
if (obj_undyneboss.order == 24) |
21 |
obj_undyneboss.lesson = 22; |
22 |
with (obj_spearbullet_follow) |
23 |
deactivate = 1; |
24 |
with (obj_undyneboss) |
25 |
darkify = 3; |
26 |
with (obj_undyneboss) |
27 |
event_user(1); |
28 |
} |
29 |
} |
30 |
if (instance_exists(obj_undyne_ex)) |
31 |
{ |
32 |
if (obj_undyne_ex.order == 6) |
33 |
{ |
34 |
global.turntimer = 30; |
35 |
with (obj_undyne_ex) |
36 |
alarm[11] |
37 |
if (obj_undyne_ex.order == 6) |
38 |
obj_undyne_ex.lesson = -8; |
39 |
with (obj_undyne_ex) |
40 |
deactivate = 1; |
41 |
with (obj_undyne_ex) |
42 |
darkify = 3; |
43 |
with (obj_undyne_ex) |
44 |
event_user(1); |
45 |
} |
46 |
} |
47 |
instance_destroy(); |
48 |
} |