diff --git a/.gitattributes b/.gitattributes index f1a58def774..8d4d8dc7ab1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2927,6 +2927,7 @@ res/cardsfolder/goblin_gardener.txt svneol=native#text/plain res/cardsfolder/goblin_gaveleer.txt -text svneol=native#text/plain res/cardsfolder/goblin_general.txt -text svneol=native#text/plain res/cardsfolder/goblin_glider.txt -text svneol=native#text/plain +res/cardsfolder/goblin_goon.txt -text svneol=native#text/plain res/cardsfolder/goblin_grenade.txt -text svneol=native#text/plain res/cardsfolder/goblin_grenadiers.txt svneol=native#text/plain res/cardsfolder/goblin_guide.txt -text svneol=native#text/plain diff --git a/res/cardsfolder/goblin_goon.txt b/res/cardsfolder/goblin_goon.txt new file mode 100644 index 00000000000..cff3de186c0 --- /dev/null +++ b/res/cardsfolder/goblin_goon.txt @@ -0,0 +1,9 @@ +Name:Goblin Goon +ManaCost:3 R +Types:Creature Goblin Mutant +Text:no text +PT:6/6 +K:stPumpSelf:Creature:0/0/CARDNAME can't attack. & CARDNAME can't block.:YouCtrlMoreCreatures:CARDNAME can't attack unless you control more creatures than defending player. CARDNAME can't block unless you control more creatures than attacking player. +SVar:Rarity:Rare +SVar:Picture:http://www.wizards.com/global/images/magic/general/goblin_goon.jpg +End \ No newline at end of file diff --git a/src/forge/GameActionUtil.java b/src/forge/GameActionUtil.java index 5cac33d2034..5087d000519 100644 --- a/src/forge/GameActionUtil.java +++ b/src/forge/GameActionUtil.java @@ -5366,6 +5366,13 @@ public class GameActionUtil { String maxnumber = SpecialConditions.split("/") [1]; if (!(OppLandInPlay.size() <= Integer.valueOf(maxnumber))) return false; } + if(SpecialConditions.contains("YouCtrlMoreCreatures")) { + CardList CreaturesInPlayYou = AllZoneUtil.getPlayerCardsInPlay(SourceCard.getController()); + CreaturesInPlayYou = CreaturesInPlayYou.getType("Creature"); + CardList CreaturesInPlayOpp = AllZoneUtil.getPlayerCardsInPlay(SourceCard.getController().getOpponent()); + CreaturesInPlayOpp = CreaturesInPlayOpp.getType("Creature"); + if (CreaturesInPlayYou.size() > CreaturesInPlayOpp.size()) return false; + } if(SpecialConditions.contains("OppLifeLE")) { int life = SourceCard.getController().getOpponent().getLife(); String maxnumber = SpecialConditions.split("/")[1];