solarus
solarus copied to clipboard
Syntax request: enemy:set_invincible([boolean])
It would be more natural (and easier to remember) if we allowed the function "enemy:set_invincible" to have an optional boolean parameter: "enemy:set_invincible([boolean])". Calling "enemy:set_invincible(false)" would be equivalent to call "enemy:set_default_attack_consequences()".