mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
remove unneeded methods from DamageTargetEffect
minor cleanup to Sentinel Tower, Tephraderm (see #11111)
This commit is contained in:
parent
aa1e2342e4
commit
2893fb43fc
3 changed files with 12 additions and 40 deletions
|
|
@ -20,10 +20,10 @@ import java.util.UUID;
|
|||
*/
|
||||
public class DamageTargetEffect extends OneShotEffect {
|
||||
|
||||
protected DynamicValue amount;
|
||||
protected boolean preventable;
|
||||
protected String targetDescription;
|
||||
protected String sourceName = "{this}";
|
||||
private final DynamicValue amount;
|
||||
private final boolean preventable;
|
||||
private String targetDescription;
|
||||
private String sourceName = "{this}";
|
||||
|
||||
public DamageTargetEffect(int amount) {
|
||||
this(StaticValue.get(amount), true);
|
||||
|
|
@ -67,18 +67,6 @@ public class DamageTargetEffect extends OneShotEffect {
|
|||
this.targetDescription = targetDescription;
|
||||
}
|
||||
|
||||
public int getAmount() {
|
||||
if (amount instanceof StaticValue) {
|
||||
return amount.calculate(null, null, this);
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
public void setAmount(DynamicValue amount) {
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
protected DamageTargetEffect(final DamageTargetEffect effect) {
|
||||
super(effect);
|
||||
this.amount = effect.amount.copy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue