Merge pull request #2470 from Card-Forge/henzieBlitzReplacementFix

ReplacementHandler: fix adding CastSA Keyword again
This commit is contained in:
Anthony Calosa
2023-02-14 14:46:53 +08:00
committed by GitHub

View File

@@ -173,6 +173,10 @@ public class ReplacementHandler {
}
// need to copy stored keywords from lki into real object to prevent the replacement effect from making new ones
affectedCard.setStoredKeywords(affectedLKI.getStoredKeywords(), true);
if (affectedCard.getCastSA() != null && affectedCard.getCastSA().getKeyword() != null) {
// need to readd the CastSA Keyword into the Card
affectedCard.addKeywordForStaticAbility(affectedCard.getCastSA().getKeyword());
}
runParams.put(AbilityKey.Affected, affectedCard);
runParams.put(AbilityKey.NewCard, CardUtil.getLKICopy(affectedLKI));
}