mirror of
https://github.com/correl/mage.git
synced 2025-04-13 09:11:06 -09:00
* Goblin Welder - fixed rollback error;
This commit is contained in:
parent
b7f15772e8
commit
107c10fd2c
1 changed files with 3 additions and 0 deletions
|
@ -68,6 +68,9 @@ public final class GoblinWelder extends CardImpl {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
|
if (getTargetPointer().getTargets(game, source).size() < 2) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
Permanent artifact = game.getPermanent(getTargetPointer().getFirst(game, source));
|
Permanent artifact = game.getPermanent(getTargetPointer().getFirst(game, source));
|
||||||
Card card = game.getCard(getTargetPointer().getTargets(game, source).get(1));
|
Card card = game.getCard(getTargetPointer().getTargets(game, source).get(1));
|
||||||
Player controller = game.getPlayer(source.getControllerId());
|
Player controller = game.getPlayer(source.getControllerId());
|
||||||
|
|
Loading…
Add table
Reference in a new issue