if (state == 3) { global.mercymod[myself] = 0; traitorp = 1; global.flag[20] = 1; with (obj_jigsawryenemy_ch1) { if (traitorp == 0) traitorp = 2; global.mercymod[myself] = 0; } if (global.monsterhp[myself] <= (global.monstermaxhp[myself] - 20)) { global.monsterstatus[myself] = 1; if (global.monstercomment[myself] == " ") global.monstercomment[myself] = scr_84_get_lang_string_ch1("obj_jigsawryenemy_slash_Draw_0_gml_15_0"); } hurttimer -= 1; if (hurttimer < 0) { state = 0; } else { if (global.monster[myself] == 0) scr_defeatrun_ch1(); hurtshake += 1; if (hurtshake > 1) { if (shakex > 0) shakex -= 1; if (shakex < 0) shakex += 1; shakex = -shakex; hurtshake = 0; } draw_sprite_ext(hurtsprite, 0, x + shakex, y, 2, 2, 0, image_blend, 1); } } if (state == 0) { siner += 1; thissprite = idlesprite; if (global.mercymod[myself] >= global.mercymax[myself]) thissprite = sparedsprite; if (global.flag[20] == 1) thissprite = hurtsprite; draw_sprite_ext(thissprite, siner / 6, x, y, 2, 2, 0, image_blend, 1); if (flash == 1) { fsiner += 1; d3d_set_fog_ch1(true, 16777215, 0, 1); draw_sprite_ext(thissprite, siner / 6, x, y, 2, 2, 0, image_blend, (-cos(fsiner / 5) * 0.4) + 0.6); d3d_set_fog_ch1(false, 0, 0, 0); } } if (becomeflash == 0) flash = 0; becomeflash = 0;