| 1 | if (attack_noloop == 0 && global.enemy_attacking == true) |
| 2 | attack_noloop = 1; |
| 3 | if (attack_noloop == 1 && global.enemy_attacking == false) |
| 4 | { |
| 5 | if (global.current_pp_self > pp_original) |
| 6 | global.current_pp_self = pp_original; |
| 7 | if (global.current_sp_self > sp_original) |
| 8 | global.current_sp_self = sp_original; |
| 9 | instance_destroy(); |
| 10 | } |