mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
attach: rework attaching names
This commit is contained in:
@@ -99,7 +99,7 @@ public class VField extends FContainer {
|
||||
};
|
||||
|
||||
private boolean tryStackCard(CardView card, List<CardView> cardsOfType) {
|
||||
if (card.isAttached()) {
|
||||
if (card.isAttachedByCards()) {
|
||||
return false; //can stack with enchanted or equipped card
|
||||
}
|
||||
if (card.getCurrentState().isCreature() && !card.isToken()) {
|
||||
@@ -107,7 +107,7 @@ public class VField extends FContainer {
|
||||
}
|
||||
final String cardName = card.getCurrentState().getName();
|
||||
for (CardView c : cardsOfType) {
|
||||
if (!c.isAttached() &&
|
||||
if (!c.isAttachedByCards() &&
|
||||
cardName.equals(c.getCurrentState().getName()) &&
|
||||
card.hasSameCounters(c) &&
|
||||
card.isToken() == c.isToken()) { //don't stack tokens on top of non-tokens
|
||||
|
||||
Reference in New Issue
Block a user