- Updating the card cache directly is no longer needed after the fix in CardFactoryUtil is complete.

This commit is contained in:
Agetian
2018-04-23 22:04:15 +03:00
parent 844c083ee4
commit 9ffad0437a
2 changed files with 0 additions and 7 deletions

View File

@@ -184,9 +184,6 @@ public class Game {
public void addCard(int id, Card card) {
cardCache.put(Integer.valueOf(id), card);
}
public void updateCachedCardZone(CardView cardView, Zone zone) {
cardCache.get(cardView).setZone(zone);
}
public CardCollection getCardList(Iterable<CardView> cardViews) {
CardCollection list = new CardCollection();
cardCache.addToList(cardViews, list);

View File

@@ -357,10 +357,6 @@ public class GameAction {
zoneTo.add(copied, position, c); // the modified state of the card is also reported here (e.g. for Morbid + Awaken)
c.setZone(zoneTo);
// TODO: The card cache in Game is never updated, and that makes Suspend cards not function correctly after
// they ETB. Probably there's a better way.
game.updateCachedCardZone(c.getView(), zoneTo);
if (fromBattlefield) {
c.setDamage(0); //clear damage after a card leaves the battlefield
c.setHasBeenDealtDeathtouchDamage(false);