mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
fixed Memory Theft error
This commit is contained in:
parent
56ede98b03
commit
720180ed93
1 changed files with 2 additions and 1 deletions
|
@ -77,7 +77,8 @@ class MemoryTheftEffect extends OneShotEffect {
|
||||||
filter.add(AdventurePredicate.instance);
|
filter.add(AdventurePredicate.instance);
|
||||||
filter.add(new OwnerIdPredicate(player.getId()));
|
filter.add(new OwnerIdPredicate(player.getId()));
|
||||||
TargetCard target = new TargetCardInExile(0, 1, filter, null, true);
|
TargetCard target = new TargetCardInExile(0, 1, filter, null, true);
|
||||||
if (!controller.choose(outcome, target, source.getSourceId(), game)) {
|
if (!target.canChoose(source.getSourceId(), source.getControllerId(), game)
|
||||||
|
|| !controller.choose(outcome, target, source.getSourceId(), game)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Card card = game.getCard(target.getFirstTarget());
|
Card card = game.getCard(target.getFirstTarget());
|
||||||
|
|
Loading…
Reference in a new issue