- Fixed AF CopyPermanent messing with DFC's.

This commit is contained in:
Sloth
2012-06-17 11:49:41 +00:00
parent ae2c982524
commit 929cc8bfc5

View File

@@ -392,7 +392,9 @@ public final class AbilityFactoryCopy {
AllZone.getTriggerHandler().suppressMode(TriggerType.Transformed);
boolean wasInAlt = false;
CardCharactersticName stateName = CardCharactersticName.Original;
if (c.isInAlternateState()) {
stateName = c.getCurState();
wasInAlt = true;
c.setState(CardCharactersticName.Original);
}
@@ -464,10 +466,13 @@ public final class AbilityFactoryCopy {
copy.setCloneOrigin(hostCard);
sa.getSourceCard().addClone(copy);
crds[i] = copy;
AllZone.getTriggerHandler().clearSuppression(TriggerType.Transformed);
}
if (wasInAlt) {
c.setState(stateName);
}
AllZone.getTriggerHandler().clearSuppression(TriggerType.Transformed);
// have to do this since getTargetCard() might change
// if Kiki-Jiki somehow gets untapped again
final Card[] target = new Card[multiplier];