mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 17:58:01 +00:00
only reset castFaceDown when making a full spell copy
This commit is contained in:
@@ -209,6 +209,12 @@ public class CardFactory {
|
|||||||
// 707.10b
|
// 707.10b
|
||||||
copySA.setOriginalAbility(targetSA);
|
copySA.setOriginalAbility(targetSA);
|
||||||
|
|
||||||
|
// Copied spell is not cast face down
|
||||||
|
if (copySA instanceof Spell) {
|
||||||
|
Spell spell = (Spell) copySA;
|
||||||
|
spell.setCastFaceDown(false);
|
||||||
|
}
|
||||||
|
|
||||||
if (targetSA.usesTargeting()) {
|
if (targetSA.usesTargeting()) {
|
||||||
// do for SubAbilities too?
|
// do for SubAbilities too?
|
||||||
copySA.setTargets(targetSA.getTargets().clone());
|
copySA.setTargets(targetSA.getTargets().clone());
|
||||||
|
|||||||
@@ -1096,12 +1096,6 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
|
|||||||
// always set this to false, it is only set in CopyEffect
|
// always set this to false, it is only set in CopyEffect
|
||||||
clone.mayChooseNewTargets = false;
|
clone.mayChooseNewTargets = false;
|
||||||
|
|
||||||
// Copied spell is not cast face down
|
|
||||||
if (clone instanceof Spell) {
|
|
||||||
Spell spell = (Spell) clone;
|
|
||||||
spell.setCastFaceDown(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
clone.triggeringObjects = AbilityKey.newMap(this.triggeringObjects);
|
clone.triggeringObjects = AbilityKey.newMap(this.triggeringObjects);
|
||||||
|
|
||||||
clone.setPayCosts(getPayCosts().copy());
|
clone.setPayCosts(getPayCosts().copy());
|
||||||
|
|||||||
Reference in New Issue
Block a user