mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
CardState: fixed copy with keywordcache
This commit is contained in:
@@ -172,6 +172,7 @@ public class CardState extends GameObject {
|
||||
for (KeywordInterface k : intrinsicKeyword0) {
|
||||
intrinsicKeywords.insert(k.copy(card, lki));
|
||||
}
|
||||
card.updateKeywordsCache(this);
|
||||
}
|
||||
|
||||
public final KeywordInterface addIntrinsicKeyword(final String s, boolean initTraits) {
|
||||
|
||||
@@ -174,6 +174,8 @@ public abstract class ReplacementEffect extends TriggerReplacementBase {
|
||||
if (!lki) {
|
||||
res.setId(nextId());
|
||||
}
|
||||
|
||||
res.setHostCard(host);
|
||||
|
||||
res.setActiveZone(validHostZones);
|
||||
res.setLayer(getLayer());
|
||||
|
||||
Reference in New Issue
Block a user