Fix copy effects so that added triggers (eg. Dethrone from Dack's Duplicate) function again.

This commit is contained in:
elcnesh
2014-06-25 08:34:44 +00:00
parent ea7b5e1db7
commit 4eca4decac

View File

@@ -124,9 +124,11 @@ public class CloneEffect extends SpellAbilityEffect {
cardToCopy.setState(origState);
}
// must call this before addAbilityFactoryAbilities so cloned added abilities are handled correctly
addExtraCharacteristics(tgtCard, sa, origSVars);
// must copy abilities before first so cloned added abilities are handled correctly
CardFactory.copyCopiableAbilities(cardToCopy, tgtCard);
// add extra abilities as granted by the copy effect
addExtraCharacteristics(tgtCard, sa, origSVars);
// restore name if it should be unchanged
if (keepName) {