removed unnecessary overrides of adjustTargets and adjustCosts

This commit is contained in:
Evan Kranzler 2021-03-23 20:43:16 -04:00
parent 897e41bc94
commit 3feb2017d3
4 changed files with 4 additions and 68 deletions

View file

@ -174,30 +174,6 @@ public class PermanentCard extends PermanentImpl {
return false;
}
@Override
public void adjustTargets(Ability ability, Game game) {
if (this.isTransformed() && card.getSecondCardFace() != null) {
card.getSecondCardFace().adjustTargets(ability, game);
} else {
if (this.isCopy()) {
// if COPIED card have adjuster then it's must be called instead own -- see OathOfLieges tests
// raise null error on wrong copy
this.getCopyFrom().adjustTargets(ability, game);
} else {
card.adjustTargets(ability, game);
}
}
}
@Override
public void adjustCosts(Ability ability, Game game) {
if (this.isTransformed() && card.getSecondCardFace() != null) {
card.getSecondCardFace().adjustCosts(ability, game);
} else {
card.adjustCosts(ability, game);
}
}
@Override
public ManaCosts<ManaCost> getManaCost() {
if (faceDown) { // face down permanent has always {0} mana costs