remove unneeded methods from DamageTargetEffect

minor cleanup to Sentinel Tower, Tephraderm

(see #11111)
This commit is contained in:
xenohedron 2025-11-17 23:26:02 -05:00
parent aa1e2342e4
commit 2893fb43fc
3 changed files with 12 additions and 40 deletions

View file

@ -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();