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
|
|
@ -13,9 +13,9 @@ import mage.constants.TimingRule;
|
|||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.permanent.token.EmptyToken;
|
||||
import mage.game.permanent.token.Token;
|
||||
import mage.players.Player;
|
||||
import mage.util.CardUtil;
|
||||
import mage.util.functions.CopyTokenFunction;
|
||||
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
|
@ -91,11 +91,10 @@ class EternalizeEffect extends OneShotEffect {
|
|||
}
|
||||
|
||||
// create token and modify all attributes permanently (without game usage)
|
||||
EmptyToken token = new EmptyToken();
|
||||
CardUtil.copyTo(token).from(card, game); // needed so that entersBattlefied triggered abilities see the attributes (e.g. Master Biomancer)
|
||||
token.getColor().setColor(ObjectColor.BLACK);
|
||||
Token token = CopyTokenFunction.createTokenCopy(card, game); // needed so that entersBattlefied triggered abilities see the attributes (e.g. Master Biomancer)
|
||||
token.setColor(ObjectColor.BLACK);
|
||||
token.addSubType(SubType.ZOMBIE);
|
||||
token.getManaCost().clear();
|
||||
token.clearManaCost();
|
||||
token.removePTCDA();
|
||||
token.setPower(4);
|
||||
token.setToughness(4);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue