mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
[VOW] Fix Howlpack Avenger; replace various custom abilities with SavedDamageValue
This commit is contained in:
parent
5854bd45dd
commit
6ca93d1936
15 changed files with 66 additions and 341 deletions
|
|
@ -9,7 +9,14 @@ import mage.game.Game;
|
|||
* @author TheElk801
|
||||
*/
|
||||
public enum SavedDamageValue implements DynamicValue {
|
||||
instance;
|
||||
MANY("many"),
|
||||
MUCH("much");
|
||||
|
||||
private final String message;
|
||||
|
||||
SavedDamageValue(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
||||
|
|
@ -21,8 +28,13 @@ public enum SavedDamageValue implements DynamicValue {
|
|||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "that " + message;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMessage() {
|
||||
return "that much";
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue