Fix Second Guess (#1246)

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.59>
This commit is contained in:
tool4ever
2022-07-30 13:01:46 +02:00
committed by GitHub
parent 63914dbe35
commit 569e948068
5 changed files with 7 additions and 7 deletions

View File

@@ -229,7 +229,7 @@ public class ComputerUtil {
// Then base on Targeting Restriction
final String[] validTgts = tgt.getValidTgts();
if ((validTgts.length != 1) || !validTgts[0].equals("Card")) {
if (validTgts.length != 1 || !validTgts[0].equals("Card")) {
restrict += 10;
}

View File

@@ -474,11 +474,10 @@ public final class AbilityFactory {
final TargetRestrictions tgt = sa.getTargetRestrictions();
// Don't set the zone if it targets a player
if ((tgt != null) && !tgt.canTgtPlayer()) {
sa.getTargetRestrictions().setZone(origin);
if (tgt != null && !tgt.canTgtPlayer()) {
tgt.setZone(origin);
}
}
}
public static final SpellAbility buildFusedAbility(final Card card) {

View File

@@ -943,7 +943,8 @@ public class CardProperty {
final List<Card> cards = CardUtil.getThisTurnCast("Card", source, spellAbility);
if (cards.size() < 2) {
return false;
} else if (cards.get(1) != card) {
}
if (!cards.get(1).equalsWithTimestamp(card)) {
return false;
}
} else if (property.equals("ThisTurnCast")) {

View File

@@ -5,6 +5,6 @@ PT:0/3
K:Flash
K:Defender
K:Haste
A:AB$ CopySpellAbility | Cost$ 1 U T | ValidTgts$ Spell.YouCtrl+wasNotCast | TargetType$ Spell | MayChooseTarget$ True | AILogic$ OnceIfViable | SpellDescription$ Copy target spell you control that wasn't cast. You may choose new targets for the copy.
A:AB$ CopySpellAbility | Cost$ 1 U T | ValidTgts$ Card.YouCtrl+wasNotCast | TargetType$ Spell | MayChooseTarget$ True | AILogic$ OnceIfViable | SpellDescription$ Copy target spell you control that wasn't cast. You may choose new targets for the copy.
AI:RemoveDeck:Random
Oracle:Flash\nDefender, haste\n{1}{U}, {T}: Copy target spell you control that wasn't cast. You may choose new targets for the copy.

View File

@@ -1,5 +1,5 @@
Name:Second Guess
ManaCost:1 U
Types:Instant
A:SP$ Counter | Cost$ 1 U | TargetType$ Spell | TgtPrompt$ Select second spell cast this turn. | ValidTgts$ Spell.SecondSpellCastThisTurn | SpellDescription$ Counter target spell that's the second spell cast this turn.
A:SP$ Counter | Cost$ 1 U | TargetType$ Spell | TgtPrompt$ Select second spell cast this turn. | ValidTgts$ Card.SecondSpellCastThisTurn | SpellDescription$ Counter target spell that's the second spell cast this turn.
Oracle:Counter target spell that's the second spell cast this turn.