This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3639 from jeremylarner/righthand
TEL - Right Hand of the Emperor
- Loading branch information
Showing
2 changed files
with
618 additions
and
0 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,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; |
Oops, something went wrong.