mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
- Fixed #8299
This commit is contained in:
parent
f0b31dd585
commit
22493c22af
1 changed files with 4 additions and 1 deletions
|
|
@ -38,7 +38,10 @@ public class YouControlYourOpponentsWhileSearchingReplacementEffect extends Repl
|
|||
@Override
|
||||
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
return controller != null && game.isOpponent(controller, event.getPlayerId());
|
||||
return controller != null
|
||||
&& game.isOpponent(controller, event.getPlayerId())
|
||||
// verify that the controller of the ability is searching their library
|
||||
&& event.getTargetId().equals(event.getPlayerId());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue