mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
* Pyxis of Pandemonium - Fixed that the exiled permanents were not put to battlefield.
This commit is contained in:
parent
2a9af5ad99
commit
7f3ffbb7ed
2 changed files with 19 additions and 9 deletions
|
|
@ -531,6 +531,16 @@ public class CardUtil {
|
|||
return getObjectZoneString(text,cardId, game, zoneChangeCounter, previous);
|
||||
}
|
||||
|
||||
public static String getObjectZoneString(String text, MageObject mageObject, Game game) {
|
||||
int zoneChangeCounter = 0;
|
||||
if (mageObject instanceof Permanent) {
|
||||
zoneChangeCounter = ((Permanent) mageObject).getZoneChangeCounter();
|
||||
} else if (mageObject instanceof Card) {
|
||||
zoneChangeCounter = ((Card) mageObject).getZoneChangeCounter();
|
||||
}
|
||||
return getObjectZoneString(text, mageObject.getId(), game, zoneChangeCounter, false);
|
||||
}
|
||||
|
||||
public static String getObjectZoneString(String text, UUID objectId, Game game, int zoneChangeCounter, boolean previous) {
|
||||
StringBuilder uniqueString = new StringBuilder();
|
||||
if (text != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue