mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-24 05:31:26 -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",
|
"purify",
|
||||||
"quickpunch",
|
"quickpunch",
|
||||||
"quickstab",
|
"quickstab",
|
||||||
"selfheal",
|
|
||||||
"smash",
|
"smash",
|
||||||
"snowball",
|
"snowball",
|
||||||
"supershot",
|
"supershot",
|
||||||
@@ -8270,6 +8269,14 @@ function init_io() {
|
|||||||
reject = attack;
|
reject = attack;
|
||||||
cool = false;
|
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) {
|
} else if (data.name == "invis" && !player.s.invis) {
|
||||||
if (player.s.marked) {
|
if (player.s.marked) {
|
||||||
return fail_response("skill_cant_use", data.name);
|
return fail_response("skill_cant_use", data.name);
|
||||||
|
|||||||
Reference in New Issue
Block a user