mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Fix copy effects so that added triggers (eg. Dethrone from Dack's Duplicate) function again.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user