- Converted Ensnaring Bridge and Reverence to script.

This commit is contained in:
Sloth
2011-09-27 16:07:37 +00:00
parent 6416e1dada
commit 146940affc
3 changed files with 6 additions and 20 deletions

View File

@@ -1,7 +1,9 @@
Name:Ensnaring Bridge Name:Ensnaring Bridge
ManaCost:3 ManaCost:3
Types:Artifact Types:Artifact
Text:Creatures with power greater than the number of cards in your hand can't attack. Text:no text
S:Mode$ Continuous | Affected$ Creature.powerGTX | AddHiddenKeyword$ HIDDEN CARDNAME can't attack. | Description$ Creatures with power greater than the number of cards in your hand can't attack.
SVar:X:Count$InYourHand
SVar:RemRandomDeck:True SVar:RemRandomDeck:True
SVar:Rarity:Rare SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/ensnaring_bridge.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/ensnaring_bridge.jpg

View File

@@ -1,7 +1,8 @@
Name:Reverence Name:Reverence
ManaCost:2 W W ManaCost:2 W W
Types:Enchantment Types:Enchantment
Text:Creatures with power 2 or less can't attack you. Text:no text
S:Mode$ Continuous | Affected$ Creature.YouDontCtrl+powerLE2 | AddHiddenKeyword$ HIDDEN CARDNAME can't attack. | Description$ Creatures with power 2 or less can't attack you.
SVar:Rarity:Rare SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/reverence.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/reverence.jpg
SetInfo:SOK|Rare|http://magiccards.info/scans/en/sok/26.jpg SetInfo:SOK|Rare|http://magiccards.info/scans/en/sok/26.jpg

View File

@@ -557,9 +557,7 @@ public class CombatUtil {
//The creature won't untap next turn //The creature won't untap next turn
if (c.isTapped() && !PhaseUtil.canUntap(c)) return false; if (c.isTapped() && !PhaseUtil.canUntap(c)) return false;
if (c.hasKeyword("CARDNAME can't attack.") if (c.hasKeyword("CARDNAME can't attack.") || c.hasKeyword("CARDNAME can't attack or block."))
|| c.hasKeyword("CARDNAME can't attack or block.")
|| (AllZoneUtil.isCardInPlay("Reverence", c.getController().getOpponent()) && c.getNetAttack() < 3))
return false; return false;
if (c.hasKeyword("Defender") if (c.hasKeyword("Defender")
@@ -567,21 +565,6 @@ public class CombatUtil {
return false; return false;
} }
if (AllZoneUtil.isCardInPlay("Ensnaring Bridge")) {
int limit = Integer.MAX_VALUE;
CardList Human = AllZone.getHumanPlayer().getCardsIn(Zone.Battlefield);
if (Human.getName("Ensnaring Bridge").size() > 0) {
CardList Hand = AllZone.getHumanPlayer().getCardsIn(Zone.Hand);
limit = Hand.size();
}
CardList Compi = AllZone.getComputerPlayer().getCardsIn(Zone.Battlefield);
if (Compi.getName("Ensnaring Bridge").size() > 0) {
CardList Hand = AllZone.getComputerPlayer().getCardsIn(Zone.Hand);
if (Hand.size() < limit) limit = Hand.size();
}
if (c.getNetAttack() > limit) return false;
}
if (AllZoneUtil.isCardInPlay("Kulrath Knight")) { if (AllZoneUtil.isCardInPlay("Kulrath Knight")) {
CardList all = AllZoneUtil.getCardsIn(Zone.Battlefield, "Kulrath Knight"); CardList all = AllZoneUtil.getCardsIn(Zone.Battlefield, "Kulrath Knight");
for (int i = 0; i < all.size(); i++) { for (int i = 0; i < all.size(); i++) {