updated defending player predicate again

This commit is contained in:
Evan Kranzler 2017-09-23 18:52:18 -04:00
parent 631acef6b9
commit 0681edfa48
2 changed files with 4 additions and 4 deletions

View file

@ -34,13 +34,13 @@ import mage.game.permanent.Permanent;
/**
*
* @author North
* @author TheElk801
*/
public class DefendingPlayerControlsPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
@Override
public boolean apply(ObjectSourcePlayer<Permanent> input, Game game) {
return input.getObject().getControllerId().equals(game.getCombat().getDefendingPlayerId(input.getSourceId()));
return input.getObject().getControllerId().equals(game.getCombat().getDefendingPlayerId(input.getSourceId(), game));
}
@Override

View file

@ -34,13 +34,13 @@ import mage.game.Game;
/**
*
* @author North
* @author TheElk801
*/
public class DefendingPlayerOwnsCardPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Card>> {
@Override
public boolean apply(ObjectSourcePlayer<Card> input, Game game) {
return input.getObject().getOwnerId().equals(game.getCombat().getDefendingPlayerId(input.getSourceId()));
return input.getObject().getOwnerId().equals(game.getCombat().getDefendingPlayerId(input.getSourceId(), game));
}
@Override