Fix casting commander transformed (#10790)

Remove CastCommanderAbility and instead apply the modification directly
This commit is contained in:
ssk97 2023-08-23 16:30:09 -07:00 committed by GitHub
parent 921b640c33
commit a756529e05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 42 deletions

View file

@ -1453,4 +1453,11 @@ public abstract class AbilityImpl implements Ability {
.filter(Objects::nonNull)
.anyMatch(Condition::caresAboutManaColor);
}
public AbilityImpl copyWithZone(Zone zone) {
AbilityImpl copy = ((AbilityImpl)this.copy());
copy.zone = zone;
copy.newId();
return copy;
}
}