forked from External/mage
Implement DFC tokens for Incubate (#10231)
* remove incubate skip * initial implementation of DFC tokens * separate incubator back face to separate class * small refactor to token copy function * token copies now have back faces as well * effects which modify token copies now correctly apply to both faces * add skip for exception * tokens now enter transformed correctly * [MOC] remove skip for incubate * fix verify failure
This commit is contained in:
parent
f8d23ff56b
commit
726e289646
30 changed files with 540 additions and 156 deletions
|
|
@ -42,7 +42,6 @@ import mage.players.Player;
|
|||
import mage.target.Target;
|
||||
import mage.target.TargetCard;
|
||||
import mage.target.targetpointer.FixedTarget;
|
||||
import mage.util.functions.CopyTokenFunction;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
|
|
@ -474,17 +473,6 @@ public final class CardUtil {
|
|||
spellAbility.getManaCostsToPay().addAll(adjustedCost);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns function that copies params\abilities from one card to
|
||||
* {@link Token}.
|
||||
*
|
||||
* @param target
|
||||
* @return
|
||||
*/
|
||||
public static CopyTokenFunction copyTo(Token target) {
|
||||
return new CopyTokenFunction(target);
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts an integer number to string Numbers > 20 will be returned as
|
||||
* digits
|
||||
|
|
@ -1821,6 +1809,9 @@ public final class CardUtil {
|
|||
needSetCode = ((Card) copyFromObject).getExpansionSetCode();
|
||||
needCardNumber = ((Card) copyFromObject).getCardNumber();
|
||||
needTokenType = 0;
|
||||
} else if (copyFromObject instanceof Token) {
|
||||
// TODO: make this work
|
||||
return;
|
||||
} else {
|
||||
throw new IllegalStateException("Unsupported copyFromObject class: " + copyFromObject.getClass().getSimpleName());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue