mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
Minor improvement
This commit is contained in:
parent
d001fafaed
commit
860909408d
1 changed files with 2 additions and 2 deletions
|
|
@ -96,8 +96,8 @@ public class DoUnlessTargetPlayerOrTargetsControllerPaysEffect extends OneShotEf
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player targetController = game.getPlayer(source.getFirstTarget());
|
||||
Permanent targetPermanent = game.getPermanent(source.getFirstTarget());
|
||||
Player targetController = game.getPlayer(this.getTargetPointer().getFirst(game, source));
|
||||
Permanent targetPermanent = game.getPermanent(this.getTargetPointer().getFirst(game, source));
|
||||
if (targetPermanent != null) {
|
||||
targetController = game.getPlayer(targetPermanent.getControllerId());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue