mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
[MIC] Implemented Cleaver Skaab
This commit is contained in:
parent
3d0571d5e9
commit
affd33c23b
4 changed files with 107 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ public class CreateTokenCopyTargetEffect extends OneShotEffect {
|
|||
private final UUID playerId;
|
||||
private final CardType additionalCardType;
|
||||
private boolean hasHaste;
|
||||
private final int number;
|
||||
private int number;
|
||||
private final List<Permanent> addedTokenPermanents;
|
||||
private SubType additionalSubType;
|
||||
private SubType onlySubType;
|
||||
|
|
@ -302,6 +302,10 @@ public class CreateTokenCopyTargetEffect extends OneShotEffect {
|
|||
this.startingLoyalty = startingLoyalty;
|
||||
}
|
||||
|
||||
public void setNumber(int number) {
|
||||
this.number = number;
|
||||
}
|
||||
|
||||
public void exileTokensCreatedAtNextEndStep(Game game, Ability source) {
|
||||
for (Permanent tokenPermanent : addedTokenPermanents) {
|
||||
ExileTargetEffect exileEffect = new ExileTargetEffect(null, "", Zone.BATTLEFIELD);
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ import java.net.URLEncoder;
|
|||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
/**
|
||||
* @author nantuko
|
||||
|
|
@ -1365,4 +1366,9 @@ public final class CardUtil {
|
|||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static <T> Stream<T> castStream(Stream<?> stream, Class<T> clazz) {
|
||||
return stream.filter(clazz::isInstance).map(clazz::cast);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue