mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Added Harbor Serpent.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||
|
||||
9
res/cardsfolder/harbor_serpent.txt
Normal file
9
res/cardsfolder/harbor_serpent.txt
Normal 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
|
||||
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user