forked from External/mage
Bugfixes with != instead of equals and default toString calls
This commit is contained in:
parent
752392fc46
commit
a15220d51e
74 changed files with 187 additions and 147 deletions
|
|
@ -184,9 +184,9 @@ public class ZonesHandler {
|
|||
ZoneChangeInfo subInfo = itr.next();
|
||||
if (!maybeRemoveFromSourceZone(subInfo, game)) {
|
||||
itr.remove();
|
||||
} else if (subInfo.event.getTargetId() == meld.getTopHalfCard().getId()) {
|
||||
} else if (Objects.equals(subInfo.event.getTargetId(), meld.getTopHalfCard().getId())) {
|
||||
meld.setTopLastZoneChangeCounter(meld.getTopHalfCard().getZoneChangeCounter(game));
|
||||
} else if (subInfo.event.getTargetId() == meld.getBottomHalfCard().getId()) {
|
||||
} else if (Objects.equals(subInfo.event.getTargetId(), meld.getBottomHalfCard().getId())) {
|
||||
meld.setBottomLastZoneChangeCounter(meld.getBottomHalfCard().getZoneChangeCounter(game));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue