Skip to content

Commit

Permalink
Merge pull request #87 from earthiverse/fix-selfheal
Browse files Browse the repository at this point in the history
Fix Paladin's `selfheal`
  • Loading branch information
kaansoral authored Dec 19, 2023
2 parents 6e5c6e3 + 8067d59 commit 040373c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion node/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8255,7 +8255,6 @@ function init_io() {
"purify",
"quickpunch",
"quickstab",
"selfheal",
"smash",
"snowball",
"supershot",
Expand All @@ -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);
Expand Down

0 comments on commit 040373c

Please sign in to comment.