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
|
|
@ -78,7 +78,7 @@ public class PutOnLibraryTargetEffect extends OneShotEffect {
|
|||
Cards cardsPlayer = new CardsImpl();
|
||||
for (Iterator<Card> iterator = cards.iterator(); iterator.hasNext();) {
|
||||
Card next = iterator.next();
|
||||
if (next.getOwnerId().equals(owner.getId())) {
|
||||
if (next.isOwnedBy(owner.getId())) {
|
||||
cardsPlayer.add(next);
|
||||
iterator.remove();
|
||||
}
|
||||
|
|
@ -97,7 +97,7 @@ public class PutOnLibraryTargetEffect extends OneShotEffect {
|
|||
Cards cardsPlayer = new CardsImpl();
|
||||
for (Iterator<Permanent> iterator = permanents.iterator(); iterator.hasNext();) {
|
||||
Permanent next = iterator.next();
|
||||
if (next.getOwnerId().equals(owner.getId())) {
|
||||
if (next.isOwnedBy(owner.getId())) {
|
||||
cardsPlayer.add(next);
|
||||
iterator.remove();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue