GUI: fixed stacked permanents in some use cases (#12402)

This commit is contained in:
grimreap124 2024-06-05 19:19:48 +10:00 committed by GitHub
parent 70a5a9a8cf
commit e0184197c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -186,7 +186,8 @@ public class CardPluginImpl implements CardPlugin {
? firstPanelPerm.getOriginal().getRules()
: new ArrayList<>();
// Check the names are equal and are creatures with the same summoning sickness
if (firstPanelPerm.getOriginal().getName().equals(perm.getOriginal().getName())
if (firstPanelPerm.getOriginal().isToken() == perm.getOriginal().isToken()
&& firstPanelPerm.getOriginal().getName().equals(perm.getOriginal().getName())
&& stackPower == cardPower && stackToughness == cardToughness
&& stackAbilities.equals(cardAbilities) && stackCounters.equals(cardCounters)
&& (!perm.isCreature() || firstPanelPerm.getOriginalPermanent().hasSummoningSickness() == perm