forked from External/mage
removed unnecessary overrides of adjustTargets and adjustCosts
This commit is contained in:
parent
897e41bc94
commit
3feb2017d3
4 changed files with 4 additions and 68 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue