mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Remove some more references to getOpponent, refactor some cards to support the changes.
This commit is contained in:
@@ -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)");
|
||||
|
||||
Reference in New Issue
Block a user