mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 12:22:10 -08:00
Added Cards.
This commit is contained in:
parent
6f260b5933
commit
a14cc419d8
4 changed files with 275 additions and 3 deletions
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
package mage.abilities.common;
|
||||
|
||||
import java.util.Arrays;
|
||||
import mage.Constants.CardType;
|
||||
import mage.Constants.Outcome;
|
||||
import mage.Constants.Zone;
|
||||
|
|
@ -53,9 +54,7 @@ public class FetchLandActivatedAbility extends ActivatedAbilityImpl<FetchLandAct
|
|||
addCost(new SacrificeSourceCost());
|
||||
FilterCard filter = new FilterCard(subTypeNames(subTypes));
|
||||
filter.getCardType().add(CardType.LAND);
|
||||
for (String subType: subTypes) {
|
||||
filter.getSubtype().add(subType);
|
||||
}
|
||||
filter.getSubtype().addAll(Arrays.asList(subTypes));
|
||||
filter.setScopeSubtype(ComparisonScope.Any);
|
||||
TargetCardInLibrary target = new TargetCardInLibrary(filter);
|
||||
addEffect(new SearchLibraryPutInPlayEffect(target, false, Outcome.PutLandInPlay));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue