mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
TargetRestictions don't need to be copied, they may be just reused
This commit is contained in:
@@ -317,8 +317,7 @@ public class CardFactoryUtil {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AbilityActivated getCopy() {
|
public AbilityActivated getCopy() {
|
||||||
AbilityActivated res = new AbilityTransmute(getSourceCard(),
|
AbilityActivated res = new AbilityTransmute(getSourceCard(), getPayCosts(), getTargetRestrictions());
|
||||||
getPayCosts(), getTargetRestrictions() == null ? null : new TargetRestrictions(getTargetRestrictions()));
|
|
||||||
CardFactory.copySpellAbility(this, res);
|
CardFactory.copySpellAbility(this, res);
|
||||||
res.getRestrictions().setZone(ZoneType.Hand);
|
res.getRestrictions().setZone(ZoneType.Hand);
|
||||||
return res;
|
return res;
|
||||||
@@ -353,7 +352,7 @@ public class CardFactoryUtil {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sameCost.size() == 0) {
|
if (sameCost.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user