mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Fix Second Guess (#1246)
Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.59>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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")) {
|
||||
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user