Update CardState.java

copy abilityForTrigger
This commit is contained in:
Hans Mackowiak
2025-11-06 13:48:12 +01:00
committed by GitHub
parent 9a398f2f50
commit 52b21fa72f

View File

@@ -733,6 +733,11 @@ public class CardState implements GameObject, IHasSVars, ITranslatable {
setFlavorName(source.getFlavorName());
setSVars(source.getSVars());
abilityForTrigger.clear();
for (Map.Entry<String, SpellAbility> e : source.abilityForTrigger.entrySet()) {
abilityForTrigger.put(e.getKey(), e.getValue().copy(card, lki));
}
abilities.clear();
for (SpellAbility sa : source.abilities) {
if (sa.isIntrinsic()) {