mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Fixed bug that cost reduction did not work of Locket of Yesterdays.
This commit is contained in:
parent
78dd82d49c
commit
6a6f78d7cb
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue