Fixed bug that cost reduction did not work of Locket of Yesterdays.

This commit is contained in:
LevelX2 2013-03-18 17:06:56 +01:00
parent 78dd82d49c
commit 6a6f78d7cb

View file

@ -84,7 +84,7 @@ class LocketOfYesterdaysCostReductionEffect extends CostModificationEffectImpl<L
if (sourceObject != null) { if (sourceObject != null) {
int amount = 0; int amount = 0;
for (UUID cardId :game.getState().getPlayer(source.getControllerId()).getGraveyard()) { for (UUID cardId :game.getState().getPlayer(source.getControllerId()).getGraveyard()) {
Card card = game.getPermanent(cardId); Card card = game.getCard(cardId);
if (card != null && card.getName().equals(sourceObject.getName())) { if (card != null && card.getName().equals(sourceObject.getName())) {
amount++; amount++;
} }