forked from External/mage
Refactor: removed server side objects from a client side game's data (#10788)
* Clean original values transmitted with CardView.originalObject * Move RateCard to mage.Common, support cardView as argument. * Clean PermanentView constructor for TestCardRenderDialog
This commit is contained in:
parent
ba411e0054
commit
5062c84098
17 changed files with 285 additions and 149 deletions
|
|
@ -28,7 +28,6 @@ import mage.game.command.Plane;
|
|||
import mage.game.match.MatchType;
|
||||
import mage.game.mulligan.Mulligan;
|
||||
import mage.game.mulligan.MulliganType;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.game.permanent.PermanentCard;
|
||||
import mage.game.permanent.PermanentMeld;
|
||||
import mage.game.permanent.PermanentToken;
|
||||
|
|
@ -402,9 +401,9 @@ public class TestCardRenderDialog extends MageDialog {
|
|||
if (main.getGameCard() instanceof PermanentView) {
|
||||
// new settings must be as a new copy -- it would activate the animations
|
||||
PermanentView oldPermanent = (PermanentView) main.getGameCard();
|
||||
PermanentView newPermament = new PermanentView( // ???
|
||||
(Permanent) oldPermanent.getOriginalCard(),
|
||||
game.getCard(oldPermanent.getOriginalCard().getId()),
|
||||
PermanentView newPermament = new PermanentView(
|
||||
oldPermanent,
|
||||
game.getCard(oldPermanent.getOriginalId()),
|
||||
UUID.randomUUID(),
|
||||
game
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue