Refactor: Add proper support for modifying and querying base P/T (#9409)

This commit is contained in:
Alex Vasile 2022-09-01 19:57:30 -04:00 committed by GitHub
parent d83eb41073
commit 07a142c9e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
415 changed files with 1844 additions and 2095 deletions

View file

@ -587,8 +587,8 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
}
if (this.transformed) {
Card orgCard = this.getMainCard();
this.getPower().modifyBaseValue(orgCard.getPower().getValue());
this.getToughness().modifyBaseValue(orgCard.getToughness().getValue());
this.getPower().setModifiedBaseValue(orgCard.getPower().getValue());
this.getToughness().setModifiedBaseValue(orgCard.getToughness().getValue());
}
game.informPlayers(this.getLogName() + " transforms into " + this.getOtherFace().getLogName()
+ CardUtil.getSourceLogName(game, source, this.getId()));
@ -1298,12 +1298,12 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
@Override
public void addPower(int power) {
this.power.boostValue(power);
this.power.increaseBoostedValue(power);
}
@Override
public void addToughness(int toughness) {
this.toughness.boostValue(toughness);
this.toughness.increaseBoostedValue(toughness);
}
/**