Skip to content

getValidCards + getTargetableCards to getValidCardsToTarget #9727

@Hanmac

Description

@Hanmac

We should clean up the parts of the code that uses getValidCards + TargetRestriction + getTargetableCards with getValidCardsToTarget ?

like this part?

TargetRestrictions tgt = currentAbility.getTargetRestrictions();
List<ZoneType> zone = tgt.getZone();
List<Card> validCards = CardLists.getValidCards(game.getCardsIn(zone), tgt.getValidTgts(), currentAbility.getActivatingPlayer(), currentAbility.getHostCard(), currentAbility);
List<Card> choices = CardLists.getTargetableCards(validCards, currentAbility);

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions