From 2d8c539b093cf6dac7336b6d01d15f9023644579 Mon Sep 17 00:00:00 2001 From: jendave Date: Sun, 7 Aug 2011 01:27:04 +0000 Subject: [PATCH] - Added Monstrous Hound. --- .gitattributes | 1 + res/cardsfolder/monstrous_hound.txt | 9 +++++++++ src/forge/GameActionUtil.java | 7 +++++++ 3 files changed, 17 insertions(+) create mode 100644 res/cardsfolder/monstrous_hound.txt diff --git a/.gitattributes b/.gitattributes index 0cc432e7ff9..a616f3cde4d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4609,6 +4609,7 @@ res/cardsfolder/monss_goblin_raiders.txt -text svneol=native#text/plain res/cardsfolder/monstrify.txt -text svneol=native#text/plain res/cardsfolder/monstrous_carabid.txt -text svneol=native#text/plain res/cardsfolder/monstrous_growth.txt -text svneol=native#text/plain +res/cardsfolder/monstrous_hound.txt -text svneol=native#text/plain res/cardsfolder/moon_sprite.txt -text svneol=native#text/plain res/cardsfolder/moonglove_changeling.txt -text svneol=native#text/plain res/cardsfolder/moonglove_extract.txt -text svneol=native#text/plain diff --git a/res/cardsfolder/monstrous_hound.txt b/res/cardsfolder/monstrous_hound.txt new file mode 100644 index 00000000000..9bb23afc18b --- /dev/null +++ b/res/cardsfolder/monstrous_hound.txt @@ -0,0 +1,9 @@ +Name:Monstrous Hound +ManaCost:3 R +Types:Creature Hound +Text:no text +PT:4/4 +K:stPumpSelf:Creature:0/0/CARDNAME can't attack. & CARDNAME can't block.:OppCtrlMoreLands:CARDNAME can't attack unless you control more lands than defending player. CARDNAME can't block unless you control more lands than attacking player. +SVar:Rarity:Rare +SVar:Picture:http://www.wizards.com/global/images/magic/general/monstrous_hound.jpg +End diff --git a/src/forge/GameActionUtil.java b/src/forge/GameActionUtil.java index 2a61c2359f8..d1eff802343 100644 --- a/src/forge/GameActionUtil.java +++ b/src/forge/GameActionUtil.java @@ -5358,6 +5358,13 @@ public class GameActionUtil { CardList CreaturesInPlayOpp = AllZoneUtil.getPlayerCardsInPlay(SourceCard.getController().getOpponent()); CreaturesInPlayOpp = CreaturesInPlayOpp.getType("Creature"); if (CreaturesInPlayYou.size() > CreaturesInPlayOpp.size()) return false; + } + if(SpecialConditions.contains("OppCtrlMoreLands")) { + CardList LandsInPlayYou = AllZoneUtil.getPlayerCardsInPlay(SourceCard.getController()); + LandsInPlayYou = LandsInPlayYou.getType("Land"); + CardList LandsInPlayOpp = AllZoneUtil.getPlayerCardsInPlay(SourceCard.getController().getOpponent()); + LandsInPlayOpp = LandsInPlayOpp.getType("Land"); + if (LandsInPlayYou.size() > LandsInPlayOpp.size()) return false; } if(SpecialConditions.contains("OppLifeLE")) { int life = SourceCard.getController().getOpponent().getLife();