forked from External/mage
[FIN] Golbez returns card to hand, not battlefield - can't getPermanent on a Card.
This commit is contained in:
parent
4dd5054314
commit
d0ee2fef06
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ enum GolbezCrystalCollectorValue implements DynamicValue {
|
||||||
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
||||||
return Optional
|
return Optional
|
||||||
.ofNullable(effect.getTargetPointer().getFirst(game, sourceAbility))
|
.ofNullable(effect.getTargetPointer().getFirst(game, sourceAbility))
|
||||||
.map(game::getPermanent)
|
.map(game::getCard)
|
||||||
.map(MageObject::getPower)
|
.map(MageObject::getPower)
|
||||||
.map(MageInt::getValue)
|
.map(MageInt::getValue)
|
||||||
.orElse(0);
|
.orElse(0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue