Class: Ability::KeepOneConstruct

Inherits:
OtherSideChoice show all
Defined in:
lib/ascension/ability.rb

Instance Attribute Summary

Attributes inherited from Base

#parent_card

Instance Method Summary collapse

Methods inherited from OtherSideChoice

#side_for_card_choice

Methods inherited from BaseChoice

#call, #card_choice, #side_for_card_choice

Methods inherited from Base

#call_until_nil, #choice_instance

Instance Method Details

#action(card, side) ⇒ Object



205
206
207
208
209
210
# File 'lib/ascension/ability.rb', line 205

def action(card,side)
  other = side.constructs.reject { |x| x == card }
  other.each do |o|
    side.constructs.discard(o)
  end
end

#choosable_cards(side) ⇒ Object



202
203
204
# File 'lib/ascension/ability.rb', line 202

def choosable_cards(side)
  side.constructs
end