forked from External/mage
replaced StaticValue with singletons
This commit is contained in:
parent
7f0d793544
commit
9a603fbaab
318 changed files with 440 additions and 435 deletions
|
|
@ -31,14 +31,14 @@ public class DamageControllerEffect extends OneShotEffect {
|
|||
|
||||
public DamageControllerEffect(int amount, boolean preventable, String whoDealDamageName) {
|
||||
super(Outcome.Damage);
|
||||
this.amount = new StaticValue(amount);
|
||||
this.amount = StaticValue.get(amount);
|
||||
this.preventable = preventable;
|
||||
this.sourceName = whoDealDamageName;
|
||||
}
|
||||
|
||||
public DamageControllerEffect(int amount, boolean preventable) {
|
||||
super(Outcome.Damage);
|
||||
this.amount = new StaticValue(amount);
|
||||
this.amount = StaticValue.get(amount);
|
||||
this.preventable = preventable;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue