#Ai failed at Secret Tunnel

9 messages · Page 1 of 1 (latest)

novel sorrel
#

[[Secret Tunnel]] needs some logic @paper pasture

violet boltBOT
#

Land — Cave
This land can't be blocked.
manat: Add manac.
mana4, manat: Two target creatures you control that share a creature type can't be blocked this turn.
"I forget the next couple of lines, but then it goes...'Secret tunnel! Secret tunnel!" —Chong, nomad musician

paper pasture
#

I'll look into it 🙂 What would be the optimal way these days to detect two creatures with a shared type on the battlefield without going through all the permutations in a loop (if there is a way)?

gaunt spade
#

Dunno if there's already a function to do it, but dump all the applicable permanents into a multimap that maps card-subtype to cards, then look at the keys with more than one value.

novel sorrel
gaunt spade
#

Good catch. If any of those exist then you could keep them separate until you build the map, then add them to each existing key afterwards?

#

Though then you also need to handle the edge case where there's only all-creature-types creatures.

#

May be best to just consider them separately.