forked from External/mage
add isOwned and isControlled methods. remove some null-checks, remove some unnecessary casts
This commit is contained in:
parent
e46ad02918
commit
9f06046f22
464 changed files with 567 additions and 562 deletions
|
|
@ -40,7 +40,7 @@ public class TargetCardInOpponentsGraveyard extends TargetCard {
|
|||
if (game.getPlayer(source.getControllerId()).hasOpponent(card.getOwnerId(), game)) {
|
||||
if (allFromOneOpponent && !targets.isEmpty()) {
|
||||
Card firstCard = game.getCard(targets.keySet().iterator().next());
|
||||
if (firstCard != null && !card.getOwnerId().equals(firstCard.getOwnerId())) {
|
||||
if (firstCard != null && !card.isOwnedBy(firstCard.getOwnerId())) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue