-
Notifications
You must be signed in to change notification settings - Fork 850
Open
Labels
Description
We should clean up the parts of the code that uses getValidCards + TargetRestriction + getTargetableCards with getValidCardsToTarget ?
like this part?
forge/forge-game/src/main/java/forge/game/staticability/StaticAbilityMustTarget.java
Lines 44 to 47 in 831d61f
| 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); |
Reactions are currently unavailable