1 | function scr_healallitemspell |
2 | { |
3 | scr_healall |
4 | for (i = 0; i < 3; i += 1) |
5 | { |
6 | with (global.charinstance[i]) |
7 | { |
8 | ha = instance_create(x, y, obj_healanim) |
9 | ha.target = id |
10 | dmgwr = scr_dmgwriter_selfchar |
11 | with (dmgwr) |
12 | { |
13 | delay = 8 |
14 | type = 3 |
15 | damage = argument0 |
16 | } |
17 | if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) |
18 | { |
19 | with (dmgwr) |
20 | specialmessage = 3 |
21 | } |
22 | tu += 1 |
23 | } |
24 | } |
25 | global.spelldelay = 20 |
26 | } |