forked from External/mage
Refactor: Add proper support for modifying and querying base P/T (#9409)
This commit is contained in:
parent
d83eb41073
commit
07a142c9e8
415 changed files with 1844 additions and 2095 deletions
|
|
@ -412,4 +412,11 @@ public interface Permanent extends Card, Controllable {
|
|||
}
|
||||
return getAttachedTo().equals(otherId);
|
||||
}
|
||||
|
||||
default void switchPowerToughness() {
|
||||
// This is supposed to use boosted value since its switching the final values
|
||||
int power = this.getPower().getValue();
|
||||
this.getPower().setBoostedValue(this.getToughness().getValue());
|
||||
this.getToughness().setBoostedValue(power);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue