mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28: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/hannas_custody.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/harabaz_druid.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_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/harmattan_efreet.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/harmonic_convergence.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
|
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
|
||||||
@@ -325,6 +325,14 @@ public class CombatUtil {
|
|||||||
if(temp.isEmpty()) return false;
|
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
|
if(c.isTapped() || c.hasSickness() || c.getKeyword().contains("Defender") || moatPrevented
|
||||||
|| oppControlsBlazingArchon(c) || c.getKeyword().contains("CARDNAME can't attack.")
|
|| oppControlsBlazingArchon(c) || c.getKeyword().contains("CARDNAME can't attack.")
|
||||||
|| c.getKeyword().contains("CARDNAME can't attack or block.")) return false;
|
|| c.getKeyword().contains("CARDNAME can't attack or block.")) return false;
|
||||||
@@ -336,7 +344,7 @@ public class CombatUtil {
|
|||||||
{
|
{
|
||||||
CardList all = new CardList();
|
CardList all = new CardList();
|
||||||
all.addAll(AllZone.getZone(Constant.Zone.Play, Constant.Player.Human).getCards());
|
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");
|
all = all.getName("Kulrath Knight");
|
||||||
for (int i=0; i<all.size(); i++)
|
for (int i=0; i<all.size(); i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user