Update SpellAbility.java

This commit is contained in:
tool4ever
2025-11-18 08:05:05 +01:00
committed by GitHub
parent a3d19cb195
commit fd1dcba0aa

View File

@@ -2699,7 +2699,9 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
}
public void setMaxWaterbend(Cost cost) {
if (cost == null || cost.getMaxWaterbend() == null) {
if (maxWaterbend != null) {
maxWaterbend = 0;
}
return;
}
maxWaterbend = AbilityUtils.calculateAmount(getHostCard(), cost.getMaxWaterbend(), this);