UNPKG

cosa-nostra-backstabbers

Version:
27 lines (14 loc) 616 B
var lcn = require("../../../../../source/lcn.js"); var rs = lcn.rolesystem; // Defaults to shooting // Godfather can override module.exports = function (actionable, game, params) { rs.prototypes.basicAttack.reason = "shot by a member of the __Mafia__"; var outcome = rs.prototypes.basicAttack(...arguments); var from = game.getPlayerByIdentifier(actionable.from); if (!outcome) { var to = game.getPlayerByIdentifier(actionable.to); game.addMessage(from, ":exclamation: Your target could not be attacked last night!"); }; }; module.exports.TAGS = ["drivable", "roleblockable", "visit"];