mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:27 -05:00
Make Charm more consistent with other abilities
This PR makes Charm more consistent with the other abilities, and actually consistent with the item description. Also adds a dedicated description for the Charm ability.
This commit is contained in:
+1
-1
@@ -8905,7 +8905,7 @@ function init_io() {
|
||||
}
|
||||
if (data.name == "charm") {
|
||||
consume_mp(player, G.skills[data.name].mp);
|
||||
if (Math.random() > 0.01) {
|
||||
if (Math.random() > attacker.a.charm.attr0 / 100) {
|
||||
socket.emit("game_response", "charm_failed");
|
||||
xy_emit(player, "ui", { type: "charm", name: player.name, id: target.id, fail: true });
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user