Remove some more references to getOpponent, refactor some cards to support the changes.

This commit is contained in:
elcnesh
2014-07-30 10:50:47 +00:00
parent fb03ed6654
commit 2b3ede060b
11 changed files with 17 additions and 37 deletions

View File

@@ -124,12 +124,6 @@ public final class InputSelectTargets extends InputSyncronizedBase {
return false;
}
// If all cards must be from different zones
if (tgt.isDifferentZone() && lastTarget != null && !card.getController().equals(lastTarget.getController().getOpponent())) {
showMessage(sa.getHostCard() + " - Cannot target this card (not in different zones)");
return false;
}
// If the cards can't share a creature type
if (tgt.isWithoutSameCreatureType() && lastTarget != null && card.sharesCreatureTypeWith(lastTarget)) {
showMessage(sa.getHostCard() + " - Cannot target this card (should not share a creature type)");