mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
Make ExileCardYouChooseTargetOpponentEffect respect TargetPointer
This commit is contained in:
parent
e8a1725a55
commit
dbfc047698
1 changed files with 1 additions and 4 deletions
|
|
@ -32,10 +32,7 @@ public class ExileCardYouChooseTargetOpponentEffect extends OneShotEffect {
|
|||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
Player opponent = game.getPlayer(source.getFirstTarget());
|
||||
if (opponent == null) {
|
||||
opponent = game.getPlayer(targetPointer.getFirst(game, source));
|
||||
}
|
||||
Player opponent = game.getPlayer(targetPointer.getFirst(game, source));
|
||||
if (controller == null || opponent == null) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue