la-cosa-nostra
Version:
A Mafia bot designed to run in Discord - beware the traitors and the lies!
23 lines (12 loc) • 574 B
JavaScript
var rs = require("../../../rolesystem/rolesystem.js");
module.exports = function (actionable, game, params) {
rs.prototypes.unstoppableAttack.reason = "dealt a fatal blow by a member of the __Mafia__";
var from = game.getPlayerByIdentifier(actionable.from);
var to = game.getPlayerByIdentifier(actionable.to);
var outcome = rs.prototypes.unstoppableAttack(...arguments);
if (!outcome) {
game.addMessage(from, ":exclamation: Your target could not be attacked last night!");
};
from.misc.strongman_kills_left--;
};
module.exports.TAGS = ["visit"];