Added Harbor Serpent.

This commit is contained in:
jendave
2011-08-06 07:17:49 +00:00
parent 04caf69169
commit 99c2ef50bc
3 changed files with 19 additions and 1 deletions

1
.gitattributes vendored
View File

@@ -1566,6 +1566,7 @@ res/cardsfolder/hanna_ships_navigator.txt -text svneol=native#text/plain
res/cardsfolder/hannas_custody.txt -text svneol=native#text/plain
res/cardsfolder/harabaz_druid.txt -text svneol=native#text/plain
res/cardsfolder/harbor_guardian.txt -text svneol=native#text/plain
res/cardsfolder/harbor_serpent.txt -text svneol=native#text/plain
res/cardsfolder/harmattan_efreet.txt -text svneol=native#text/plain
res/cardsfolder/harmonic_convergence.txt -text svneol=native#text/plain
res/cardsfolder/harmonize.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,9 @@
Name:Harbor Serpent
ManaCost:4 U U
Types:Creature Serpent
Text:Harbor Serpent can't attack unless there are five or more Islands on the battlefield.
PT:5/5
K:Islandwalk
K:SVar:Rarity:Common
K:SVar:Picture:http://www.wizards.com/global/images/magic/general/harbor_serpent.jpg
End

View File

@@ -324,6 +324,14 @@ public class CombatUtil {
temp = list.getType("Island");
if(temp.isEmpty()) return false;
}
if(c.getName().equals("Harbor Serpent")) {
CardList allislands = new CardList();
allislands.addAll(AllZone.getZone(Constant.Zone.Play, Constant.Player.Human).getCards());
allislands.addAll(AllZone.getZone(Constant.Zone.Play, Constant.Player.Computer).getCards());
allislands = allislands.getType("Island");
if(allislands.size() < 5) return false;
}
if(c.isTapped() || c.hasSickness() || c.getKeyword().contains("Defender") || moatPrevented
|| oppControlsBlazingArchon(c) || c.getKeyword().contains("CARDNAME can't attack.")
@@ -336,7 +344,7 @@ public class CombatUtil {
{
CardList all = new CardList();
all.addAll(AllZone.getZone(Constant.Zone.Play, Constant.Player.Human).getCards());
all.addAll(AllZone.getZone(Constant.Zone.Play, Constant.Player.Computer). getCards());
all.addAll(AllZone.getZone(Constant.Zone.Play, Constant.Player.Computer).getCards());
all = all.getName("Kulrath Knight");
for (int i=0; i<all.size(); i++)