mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
add Ichneumon Druid (from Legends)
This commit is contained in:
@@ -127,6 +127,7 @@ public class GameActionUtil {
|
||||
playCard_Sigil_of_the_Empty_Throne(c);
|
||||
playCard_Curse_of_Wizardry(c);
|
||||
playCard_Venser_Emblem(c);
|
||||
playCard_Ichneumon_Druid(c);
|
||||
|
||||
}
|
||||
|
||||
@@ -376,6 +377,29 @@ public class GameActionUtil {
|
||||
}
|
||||
}//playCard_Vengevine()
|
||||
|
||||
public static void playCard_Ichneumon_Druid(Card c) {
|
||||
if (c.isInstant() && (Phase.PlayerInstantSpellCount >= 2 || Phase.ComputerInstantSpellCount >= 2)) {
|
||||
final Player player = c.getController();
|
||||
final Player opp = player.getOpponent();
|
||||
CardList list = AllZoneUtil.getPlayerCardsInPlay(opp, "Ichneumon Druid");
|
||||
for(int i = 0; i < list.size(); i++) {
|
||||
final Card card = list.get(i);
|
||||
Ability ability = new Ability(card, "0") {
|
||||
@Override
|
||||
public void resolve() {
|
||||
player.addDamage(4, card);
|
||||
}
|
||||
}; // ability
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(card).append(" - ").append("Whenever an opponent casts an instant spell other than the first instant spell that player casts each turn, Ichneumon Druid deals 4 damage to him or her.");
|
||||
ability.setStackDescription(sb.toString());
|
||||
|
||||
AllZone.Stack.addSimultaneousStackEntry(ability);
|
||||
}
|
||||
}
|
||||
}//playCard_Ichneumon_Druid()
|
||||
|
||||
public static void playCard_Venser_Emblem(Card c)
|
||||
{
|
||||
final Player controller = c.getController();
|
||||
|
||||
@@ -17,9 +17,11 @@ public class Phase extends MyObservable
|
||||
private static int GameBegins = 0;
|
||||
private static int StormCount;
|
||||
static int PlayerSpellCount;
|
||||
static int PlayerCreatureSpellCount;
|
||||
static int PlayerCreatureSpellCount;
|
||||
static int PlayerInstantSpellCount;
|
||||
static int ComputerSpellCount;
|
||||
static int ComputerCreatureSpellCount;
|
||||
static int ComputerInstantSpellCount;
|
||||
|
||||
private Stack<Player> extraTurns = new Stack<Player>();
|
||||
|
||||
@@ -145,9 +147,11 @@ public class Phase extends MyObservable
|
||||
public void turnReset(){
|
||||
setStormCount(0);
|
||||
PlayerSpellCount = 0;
|
||||
PlayerCreatureSpellCount = 0;
|
||||
PlayerCreatureSpellCount = 0;
|
||||
PlayerInstantSpellCount = 0;
|
||||
ComputerSpellCount = 0;
|
||||
ComputerCreatureSpellCount = 0;
|
||||
ComputerInstantSpellCount = 0;
|
||||
playerTurn.setNumLandsPlayed(0);
|
||||
}
|
||||
|
||||
@@ -585,6 +589,9 @@ public class Phase extends MyObservable
|
||||
if (sp instanceof Spell_Permanent && sp.getSourceCard().isCreature()) {
|
||||
PlayerCreatureSpellCount++;
|
||||
}
|
||||
if (sp.getSourceCard().isInstant()) {
|
||||
PlayerInstantSpellCount++;
|
||||
}
|
||||
}
|
||||
|
||||
else {
|
||||
@@ -592,6 +599,9 @@ public class Phase extends MyObservable
|
||||
if (sp instanceof Spell_Permanent && sp.getSourceCard().isCreature()) {
|
||||
Phase.ComputerCreatureSpellCount++;
|
||||
}
|
||||
if (sp.getSourceCard().isInstant()) {
|
||||
ComputerInstantSpellCount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user