small change to amass effect

This commit is contained in:
theelk801 2023-06-18 10:30:11 -04:00
parent a62b051045
commit 62a92d6d1c

View file

@ -85,8 +85,10 @@ public class AmassEffect extends OneShotEffect {
if (permanent == null) {
return null;
}
game.addEffect(new AddCardSubTypeTargetEffect(subType, Duration.Custom)
.setTargetPointer(new FixedTarget(permanent, game)), source);
if (!permanent.hasSubtype(subType, game)) {
game.addEffect(new AddCardSubTypeTargetEffect(subType, Duration.Custom)
.setTargetPointer(new FixedTarget(permanent, game)), source);
}
if (xValue > 0) {
permanent.addCounters(
CounterType.P1P1.createInstance(xValue),