la-cosa-nostra
Version:
A Mafia bot designed to run in Discord - beware the traitors and the lies!
24 lines (17 loc) • 575 B
JavaScript
var rs = require("../../../rolesystem/rolesystem.js");
module.exports = function (actionable, game, params) {
// Send visit
game.execute("visit", {visitor: actionable.from,
target: actionable.to,
priority: actionable.priority,
reason: "Plaguebearer-visit"});
var target = game.getPlayerByIdentifier(actionable.to);
game.addAction("plaguebearer/infect_plague", ["retrocycle"], {
from: actionable.from,
to: target,
expiry: 1,
tags: ["permanent"],
priority: 10
});
};
module.exports.TAGS = ["drivable", "roleblockable", "visit"];