UNPKG

cosa-nostra-backstabbers

Version:
25 lines (13 loc) 576 B
var lcn = require("../../../../../source/lcn.js"); var rs = lcn.rolesystem; module.exports = function (actionable, game, params) { rs.prototypes.powerfulAttack.reason = "shot by a __Vigilante__"; var outcome = rs.prototypes.powerfulAttack(...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!"); }; return true; }; module.exports.TAGS = ["drivable", "roleblockable", "visit"];