O Ilusionista
Captain 100K
I saw this question on Discord and thought it might be useful to have the solution here on the forum, because it's much easier to search here.
Just add this to the enemy header:
defense all 0
What I often do:
I just duplicate an enemy and call it "dummy", removing all its attacks and set that "defense all 0" to its header.
You can set its health to a very high number like health 999999 but that is an overkill
The code in action:
Question: is there a way to set "infinite" health for a training/test stage for example where you don't want the enemy to die but just be there like a sparring dummy?
Just add this to the enemy header:
defense all 0
What I often do:
I just duplicate an enemy and call it "dummy", removing all its attacks and set that "defense all 0" to its header.
You can set its health to a very high number like health 999999 but that is an overkill

The code in action: