fix selfheal

This commit is contained in:
Kent Rasmussen
2023-12-19 12:42:30 +09:00
parent 6e5c6e3647
commit 8067d59466
+8 -1
View File
@@ -8255,7 +8255,6 @@ function init_io() {
"purify",
"quickpunch",
"quickstab",
"selfheal",
"smash",
"snowball",
"supershot",
@@ -8270,6 +8269,14 @@ function init_io() {
reject = attack;
cool = false;
}
} else if (data.name == "selfheal") {
const attack = commence_attack(player, player, data.name);
if (!attack.failed) {
resolve = attack;
} else {
reject = attack;
cool = false;
}
} else if (data.name == "invis" && !player.s.invis) {
if (player.s.marked) {
return fail_response("skill_cant_use", data.name);