UNPKG

la-cosa-nostra

Version:

A Mafia bot designed to run in Discord - beware the traitors and the lies!

27 lines (18 loc) 794 B
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: "Firefighter-visit"}); // Remove douse var extinguisher = game.getPlayerByIdentifier(actionable.from); var target = game.getPlayerByIdentifier(actionable.to); if (target.misc.doused === true) { target.misc.doused = false; // Is doused game.addMessage(extinguisher, ":exclamation: You managed to remove gasoline from your target!"); game.addMessage(target, ":exclamation: Someone extinguished you last night and removed gasoline from you!"); }; }; module.exports.TAGS = ["drivable", "roleblockable", "visit"];