mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
CardUtil: copy Kicker and OptionalCost into LKI
This commit is contained in:
@@ -42,6 +42,7 @@ import forge.game.player.Player;
|
||||
import forge.game.replacement.ReplacementEffect;
|
||||
import forge.game.spellability.AbilityManaPart;
|
||||
import forge.game.spellability.AbilitySub;
|
||||
import forge.game.spellability.OptionalCost;
|
||||
import forge.game.spellability.SpellAbility;
|
||||
import forge.game.spellability.TargetRestrictions;
|
||||
import forge.game.trigger.Trigger;
|
||||
@@ -308,6 +309,15 @@ public final class CardUtil {
|
||||
newCopy.updateKeywordsCache(newCopy.getState(s));
|
||||
}
|
||||
|
||||
newCopy.setKickerMagnitude(in.getKickerMagnitude());
|
||||
|
||||
for (OptionalCost ocost : in.getOptionalCostsPaid()) {
|
||||
newCopy.addOptionalCostPaid(ocost);
|
||||
}
|
||||
|
||||
newCopy.setCastSA(in.getCastSA());
|
||||
newCopy.setCastFrom(in.getCastFrom());
|
||||
|
||||
return newCopy;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user