mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +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(new OwnerIdPredicate(player.getId()));
|
||||
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;
|
||||
}
|
||||
Card card = game.getCard(target.getFirstTarget());
|
||||
|
|
Loading…
Reference in a new issue