- 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

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