Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #3639 from jeremylarner/righthand
Browse files Browse the repository at this point in the history
TEL - Right Hand of the Emperor
  • Loading branch information
jeremylarner committed Nov 6, 2019
2 parents 5f49d82 + 0e59fe4 commit 6f3ff42
Show file tree
Hide file tree
Showing 2 changed files with 618 additions and 0 deletions.
42 changes: 42 additions & 0 deletions server/game/cards/10-TEL/RightHandOfTheEmperor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import { Locations, Players, CardTypes, TargetModes, PlayTypes } from '../../Constants.js';

const DrawCard = require('../../drawcard.js');
const AbilityDsl = require('../../abilitydsl');

class RightHandOfTheEmperor extends DrawCard {
setupCardAbilities() {
this.persistentEffect({
condition: context => context.player.opponent && context.player.honor > context.player.opponent.honor,
location: Locations.ConflictDiscardPile,
effect: AbilityDsl.effects.canPlayFromOwn(Locations.ConflictDiscardPile, [this], PlayTypes.Other)
});
this.action({
title: 'Ready characters',
target: {
mode: TargetModes.MaxStat,
activePromptTitle: 'Choose characters',
cardStat: card => card.getCost(),
maxStat: () => 6,
numCards: 0,
optional: true,
cardType: CardTypes.Character,
controller: Players.Self,
cardCondition: card => card.hasTrait('bushi'),
gameAction: AbilityDsl.actions.ready()
},
gameAction: AbilityDsl.actions.moveCard(context => ({
target: context.source,
destination: Locations.ConflictDeck, bottom: true
})),
effect: 'ready {0}{1}. {2} is placed on the bottom of {3}\'s conflict deck',
effectArgs: context => [
context.target.length > 0 ? '' : 'no one',
context.source,
context.source.owner]
});
}
}

RightHandOfTheEmperor.id = 'right-hand-of-the-emperor';

module.exports = RightHandOfTheEmperor;

0 comments on commit 6f3ff42

Please sign in to comment.