mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
rewrote some streams and optionals
This commit is contained in:
parent
d0bf77cedf
commit
594ffa2754
29 changed files with 199 additions and 273 deletions
|
|
@ -27,8 +27,6 @@
|
|||
*/
|
||||
package mage.game.command;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.MageObject;
|
||||
import mage.ObjectColor;
|
||||
|
|
@ -46,6 +44,11 @@ import mage.game.Game;
|
|||
import mage.game.events.ZoneChangeEvent;
|
||||
import mage.util.GameLog;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.EnumSet;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author nantuko
|
||||
*/
|
||||
|
|
@ -92,7 +95,7 @@ public class Emblem implements CommandObject {
|
|||
this.sourceObject = sourceObject;
|
||||
if (sourceObject instanceof Card) {
|
||||
if (name.isEmpty()) {
|
||||
name = ((Card) sourceObject).getSubtype(null).toString();
|
||||
name = sourceObject.getSubtype(null).toString();
|
||||
}
|
||||
if (expansionSetCodeForImage.isEmpty()) {
|
||||
expansionSetCodeForImage = ((Card) sourceObject).getExpansionSetCode();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue