mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Converted Ensnaring Bridge and Reverence to script.
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user