if global.bombs < 1
exit;
if global.timeout > 0
global.bombs -= 1
with (obj_enemymanager)
instance_destroy()
instance_create(x,y,obj_bombeffect)
global.timeout = 15
global.invuln = 30