text: const DrawCard = require('../../drawcard.js');
  
  class WayOfTheCrab extends DrawCard {
      setupCardAbilities(ability) {
          this.action({
              title: 'Make your opponent sacrifice a character',
              condition: () => this.controller.opponent,
              cost: ability.costs.sacrifice(card => card.type === 'character' && card.isFaction('crab')),
              max: ability.limit.perRound(1),
              handler: context => {
                  this.game.promptForSelect(this.controller.opponent, {
                      activePromptTitle: 'Choose a character to sacrifice',
                      source: this,
                      cardCondition: card => card.location === 'play area' && card.controller === this.controller.opponent,
                      cardType: 'character',
                      buttons: [],
                      onSelect: (player, card) => {
                          this.game.addMessage('{0} sacrifices {1} using {2} to force {3} to sacrifice {4}', this.controller, context.costs.sacrifice, this, player, card);
                          player.sacrificeCard(card);
                          return true;
                      }
                  });
              }
          });
      }
  }
  
  WayOfTheCrab.id = 'way-of-the-crab';
  
  module.exports = WayOfTheCrab;
  