text: const RoleCard = require('../../rolecard.js');
  const { Elements } = require('../../Constants');
  
  class SeekerOfAir extends RoleCard {
      setupCardAbilities(ability) {
          this.reaction({
              title: 'Gain 1 fate',
              when: {
                  onCardRevealed: (event, context) =>
                      event.card.controller === context.player && event.card.isProvince &&
                      event.card.getElement().some(element => context.source.hasTrait(element))
              },
              gameAction: ability.actions.gainFate()
          });
      }
  
      getElement() {
          return [Elements.Air];
      }
  }
  
  SeekerOfAir.id = 'seeker-of-air';
  
  module.exports = SeekerOfAir;
  