mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
1) add keyword: CARDNAME can't be blocked except by black creatures.
2) added Zulaport Enforcer using this keyword
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
Zulaport Enforcer
|
||||
B
|
||||
Creature Human Warrior
|
||||
LEVEL 1-2 3/3 LEVEL 3+ 5/5 CARDNAME can't be blocked except by black creatures.
|
||||
1/1
|
||||
Level up:4
|
||||
maxLevel:3
|
||||
|
||||
Melancholy
|
||||
2 B
|
||||
Enchantment Aura
|
||||
|
||||
@@ -217,6 +217,10 @@ public class CombatUtil {
|
||||
if(!CardUtil.getColors(blocker).contains(Constant.Color.Blue)) return false;
|
||||
}
|
||||
|
||||
if(attacker.getKeyword().contains("CARDNAME can't be blocked except by black creatures.")) {
|
||||
if(!CardUtil.getColors(blocker).contains(Constant.Color.Black))return false;
|
||||
}
|
||||
|
||||
// if(attacker.getName().equals("Goldmeadow Dodger")) return blocker.getNetAttack() < 4;
|
||||
|
||||
// if(attacker.getName().equals("Juggernaut") && blocker.getType().contains("Wall")) return false;
|
||||
|
||||
@@ -10454,6 +10454,36 @@ public class GameActionUtil {
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
* Level up 4
|
||||
* LEVEL 1-2 3/3
|
||||
* LEVEL 3+ 5/5 CARDNAME can't be blocked except by black creatures.
|
||||
*/
|
||||
public static Command Zulaport_Enforcer = new Command() {
|
||||
private static final long serialVersionUID = -679141054963080569L;
|
||||
|
||||
public void execute(){
|
||||
CardList list = AllZoneUtil.getCardsInPlay("Zulaport Enforcer");
|
||||
|
||||
for (Card c:list) {
|
||||
int lcs = c.getCounters(Counters.LEVEL);
|
||||
if ( lcs < 1) {
|
||||
c.setBaseAttack(1);
|
||||
c.setBaseDefense(1);
|
||||
}
|
||||
else if ( lcs >=1 && lcs < 3 ) { //levels 1-2
|
||||
c.setBaseAttack(3);
|
||||
c.setBaseDefense(3);
|
||||
}
|
||||
else {
|
||||
c.setBaseAttack(5);
|
||||
c.setBaseDefense(5);
|
||||
c.addNonStackingIntrinsicKeyword("CARDNAME can't be blocked except by black creatures.");
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
public static Command Student_of_Warfare = new Command() {
|
||||
private static final long serialVersionUID = 2627513737024865169L;
|
||||
|
||||
@@ -15990,6 +16020,7 @@ public class GameActionUtil {
|
||||
commands.put("Hada_Spy_Patrol", Hada_Spy_Patrol);
|
||||
commands.put("Halimar_Wavewatch", Halimar_Wavewatch);
|
||||
commands.put("Nirkana_Cutthroat", Nirkana_Cutthroat);
|
||||
commands.put("Zulaport_Enforcer", Zulaport_Enforcer);
|
||||
commands.put("Soulsurge_Elemental", Soulsurge_Elemental);
|
||||
commands.put("Champions_Drake", Champions_Drake);
|
||||
|
||||
|
||||
@@ -65,6 +65,7 @@ public class StaticEffects
|
||||
cardToEffectsList.put("Hada Spy Patrol", new String[] {"Hada_Spy_Patrol"});
|
||||
cardToEffectsList.put("Halimar Wavewatch", new String[] {"Halimar_Wavewatch"});
|
||||
cardToEffectsList.put("Nirkana Cutthroat", new String[] {"Nirkana_Cutthroat"});
|
||||
cardToEffectsList.put("Zulaport Enforcer", new String[] {"Zulaport_Enforcer"});
|
||||
|
||||
cardToEffectsList.put("Champion's Drake", new String[] {"Champions_Drake"});
|
||||
cardToEffectsList.put("Soulsurge Elemental", new String[] {"Soulsurge_Elemental"});
|
||||
|
||||
Reference in New Issue
Block a user