la-cosa-nostra
Version:
A Mafia bot designed to run in Discord - beware the traitors and the lies!
28 lines (20 loc) • 705 B
JavaScript
var lcn = require("../../../../../source/lcn.js");
var rs = lcn.rolesystem;
module.exports = function (actionable, game, params) {
var target = game.getPlayerByIdentifier(actionable.to);
var mortician = game.getPlayerByIdentifier(actionable.from);
// Considered as visit
game.execute("visit", {visitor: actionable.from,
target: actionable.to,
priority: actionable.priority,
reason: "Mortician-visit"});
game.addAction("mortician/target_killed", ["killed"], {
name: "Mortician-target-killed",
from: actionable.from,
to: actionable.to,
target: actionable.to,
expiry: 1,
priority: 10
});
};
module.exports.TAGS = ["drivable", "roleblockable", "visit"];