mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
Filter out tapped cards in CostTapType
This commit is contained in:
@@ -134,8 +134,9 @@ public class CostTapType extends CostPartWithList {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public final boolean payHuman(final SpellAbility ability, final Card source, final Cost_Payment payment) {
|
public final boolean payHuman(final SpellAbility ability, final Card source, final Cost_Payment payment) {
|
||||||
CardList typeList = source.getController().getCardsIn(Zone.Battlefield);
|
CardList typeList = ability.getActivatingPlayer().getCardsIn(Zone.Battlefield);
|
||||||
typeList = typeList.getValidCards(getType().split(";"), ability.getActivatingPlayer(), ability.getSourceCard());
|
typeList = typeList.getValidCards(getType().split(";"), ability.getActivatingPlayer(), ability.getSourceCard());
|
||||||
|
typeList = typeList.filter(CardListFilter.untapped);
|
||||||
String amount = getAmount();
|
String amount = getAmount();
|
||||||
Integer c = convertAmount();
|
Integer c = convertAmount();
|
||||||
if (c == null) {
|
if (c == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user