forked from External/mage
Implemented Jace, Mirror Mage
This commit is contained in:
parent
c84c17a455
commit
6903dad861
7 changed files with 169 additions and 5 deletions
|
|
@ -4,6 +4,7 @@ import java.util.ArrayList;
|
|||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.MageObject;
|
||||
import mage.ObjectColor;
|
||||
import mage.abilities.Ability;
|
||||
|
|
@ -46,6 +47,7 @@ public class CreateTokenCopyTargetEffect extends OneShotEffect {
|
|||
private ObjectColor color;
|
||||
private boolean useLKI = false;
|
||||
private boolean isntLegendary = false;
|
||||
private int startingLoyalty = -1;
|
||||
private final List<Ability> additionalAbilities = new ArrayList();
|
||||
|
||||
public CreateTokenCopyTargetEffect(boolean useLKI) {
|
||||
|
|
@ -176,6 +178,10 @@ public class CreateTokenCopyTargetEffect extends OneShotEffect {
|
|||
if (isntLegendary) {
|
||||
token.getSuperType().remove(SuperType.LEGENDARY);
|
||||
}
|
||||
|
||||
if (startingLoyalty!=-1){
|
||||
token.setStartingLoyalty(startingLoyalty);
|
||||
}
|
||||
if (additionalCardType != null && !token.getCardType().contains(additionalCardType)) {
|
||||
token.addCardType(additionalCardType);
|
||||
}
|
||||
|
|
@ -288,6 +294,10 @@ public class CreateTokenCopyTargetEffect extends OneShotEffect {
|
|||
this.hasHaste = hasHaste;
|
||||
}
|
||||
|
||||
public void setStartingLoyalty(int startingLoyalty) {
|
||||
this.startingLoyalty = startingLoyalty;
|
||||
}
|
||||
|
||||
public void exileTokensCreatedAtNextEndStep(Game game, Ability source) {
|
||||
for (Permanent tokenPermanent : addedTokenPermanents) {
|
||||
ExileTargetEffect exileEffect = new ExileTargetEffect(null, "", Zone.BATTLEFIELD);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue