-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed previous issues, had to reopen branch due to conflict merges messing stuff up witch doctor is a cult-aligned role (alternative to cult leader and doomsayer) that targets players and saves them from killers; if successful, their targets convert to cultists
- Loading branch information
Showing
5 changed files
with
55 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const Role = require("../../Role"); | ||
|
||
module.exports = class WitchDoctor extends Role { | ||
constructor(player, data) { | ||
super("Witch Doctor", player, data); | ||
|
||
this.alignment = "Cult"; | ||
this.cards = ["VillageCore", "WinWithCult", "MeetingCult", "ConvertSave", "KillCultistsOnDeath"]; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
const Card = require("../../Card"); | ||
const { PRIORITY_NIGHT_SAVER } = require("../../const/Priority"); | ||
|
||
module.exports = class ConvertSave extends Card { | ||
constructor(role) { | ||
super(role); | ||
|
||
this.meetings = { | ||
"Save": { | ||
states: ["Night"], | ||
flags: ["voting"], | ||
action: { | ||
labels: ["save", "convert", "cult"], | ||
priority: PRIORITY_NIGHT_SAVER, | ||
run: function () { | ||
this.heal(1); | ||
|
||
let killers = this.getVisitors(this.target, "kill"); | ||
if (killers.length == 0) { | ||
return; | ||
} | ||
|
||
this.actor.role.killers = killers; | ||
this.actor.role.savedRole = this.target.role.name; | ||
this.target.setRole("Cultist"); | ||
}, | ||
}, | ||
}, | ||
}; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters