diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2023-09-21 17:04:03 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2023-09-21 17:04:03 +0200 |
commit | fcb4a526a76e0e8464fc42a92145fe0ed149026b (patch) | |
tree | ed46af8dab2e98801c4ed99da36c77390b2e9c1d /lib | |
parent | ca128a74ae0f238b9ba81df68ed26e3b9a223e1e (diff) | |
download | colonial-twilight-fcb4a526a76e0e8464fc42a92145fe0ed149026b.zip colonial-twilight-fcb4a526a76e0e8464fc42a92145fe0ed149026b.tar.gz |
Deck : add Card::capability? && specs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/colonial_twilight/deck.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/colonial_twilight/deck.rb b/lib/colonial_twilight/deck.rb index 747cb2f..8c58bf2 100644 --- a/lib/colonial_twilight/deck.rb +++ b/lib/colonial_twilight/deck.rb @@ -40,6 +40,10 @@ module ColonialTwilight (@attributes & FLN_SPECIAL) == FLN_SPECIAL end + def capability? + fln_capability? || gov_capability? || dual_capability? + end + def fln_capability? (@attributes & FLN_CAPABILITY) == FLN_CAPABILITY end |