gui: fix stacking of land creature tokens (#12318)

Moving land creatures into the creature row like they were pre-stacking update

related to #12242, #12248, #12256
This commit is contained in:
grimreap124 2024-06-01 15:10:33 +10:00 committed by GitHub
parent f253777f7c
commit 6498522b4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -140,7 +140,8 @@ public class CardPluginImpl implements CardPlugin {
for (MageCard card : cards.values()) {
MagePermanent perm = (MagePermanent) card.getMainPanel(); // all cards must be MagePermanent on battlefield
if (!rowType.isType(perm) || perm.getOriginalPermanent().isAttachedToPermanent()) {
if (!rowType.isType(perm) || perm.getOriginalPermanent().isAttachedToPermanent()
|| (perm.isCreature() && !rowType.equals(RowType.creature))) {
continue;
}