mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
CantBeCounteredBy : make Autumns veil card text changing work
This commit is contained in:
@@ -1445,7 +1445,10 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (keyword.startsWith("etbCounter")) {
|
if (keyword.startsWith("CantBeCounteredBy")) {
|
||||||
|
final String[] p = keyword.split(":");
|
||||||
|
sbLong.append(p[2]).append("\r\n");
|
||||||
|
} else if (keyword.startsWith("etbCounter")) {
|
||||||
final String[] p = keyword.split(":");
|
final String[] p = keyword.split(":");
|
||||||
final StringBuilder s = new StringBuilder();
|
final StringBuilder s = new StringBuilder();
|
||||||
if (p.length > 4) {
|
if (p.length > 4) {
|
||||||
|
|||||||
@@ -300,10 +300,15 @@ public class CardFactoryUtil {
|
|||||||
if (!isCounterable(c)) {
|
if (!isCounterable(c)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Autumn's Veil
|
|
||||||
if (c.hasKeyword("CARDNAME can't be countered by blue or black spells.") && sa.isSpell()
|
for (KeywordInterface k : c.getKeywords()) {
|
||||||
&& (sa.getHostCard().isBlack() || sa.getHostCard().isBlue())) {
|
final String o = k.getOriginal();
|
||||||
return false;
|
if (o.startsWith("CantBeCounteredBy")) {
|
||||||
|
final String m[] = o.split(":");
|
||||||
|
if (sa.isValid(m[1].split(","), c.getController(), c, null)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ Name:Autumn's Veil
|
|||||||
ManaCost:G
|
ManaCost:G
|
||||||
Types:Instant
|
Types:Instant
|
||||||
A:SP$ Effect | Cost$ G | Name$ Autumn's Veil Effect | StaticAbilities$ AntiBlueBlack,STCantBeTarget | SpellDescription$ Spells you control can't be countered by blue or black spells this turn, and creatures you control can't be the targets of blue or black spells this turn.
|
A:SP$ Effect | Cost$ G | Name$ Autumn's Veil Effect | StaticAbilities$ AntiBlueBlack,STCantBeTarget | SpellDescription$ Spells you control can't be countered by blue or black spells this turn, and creatures you control can't be the targets of blue or black spells this turn.
|
||||||
SVar:AntiBlueBlack:Mode$ Continuous | Affected$ Card.YouCtrl | AffectedZone$ Stack | EffectZone$ Command | AddHiddenKeyword$ CARDNAME can't be countered by blue or black spells. | Description$ Spells you control can't be countered by blue or black spells this turn.
|
SVar:AntiBlueBlack:Mode$ Continuous | Affected$ Card.YouCtrl | AffectedZone$ Stack | EffectZone$ Command | AddHiddenKeyword$ CantBeCounteredBy:Spell.Blue,Spell.Black:CARDNAME can't be countered by blue or black spells. | Description$ Spells you control can't be countered by blue or black spells this turn.
|
||||||
SVar:STCantBeTarget:Mode$ CantTarget | ValidCard$ Creature.YouCtrl | ValidSource$ Card.Blue,Card.Black | ValidSA$ Spell | EffectZone$ Command | Description$ Creatures you control can't be the targets of blue or black spells this turn.
|
SVar:STCantBeTarget:Mode$ CantTarget | ValidCard$ Creature.YouCtrl | ValidSource$ Card.Blue,Card.Black | ValidSA$ Spell | EffectZone$ Command | Description$ Creatures you control can't be the targets of blue or black spells this turn.
|
||||||
SVar:RemAIDeck:True
|
SVar:RemAIDeck:True
|
||||||
SVar:RemRandomDeck:True
|
SVar:RemRandomDeck:True
|
||||||
|
|||||||
@@ -3,3 +3,4 @@ ManaCost:W
|
|||||||
Types:Creature Bird
|
Types:Creature Bird
|
||||||
K:Flying
|
K:Flying
|
||||||
PT:1/2
|
PT:1/2
|
||||||
|
Oracle:Flying
|
||||||
|
|||||||
Reference in New Issue
Block a user