mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:28 -05:00
Merge pull request #87 from earthiverse/fix-selfheal
Fix Paladin's `selfheal`
This commit is contained in:
+8
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user