- Added Nix

This commit is contained in:
swordshine
2014-05-31 08:48:35 +00:00
parent 76c6812355
commit d4f9badca0
7 changed files with 21 additions and 4 deletions

1
.gitattributes vendored
View File

@@ -9243,6 +9243,7 @@ forge-gui/res/cardsfolder/n/nivix_aerie_of_the_firemind.txt -text
forge-gui/res/cardsfolder/n/nivix_cyclops.txt -text forge-gui/res/cardsfolder/n/nivix_cyclops.txt -text
forge-gui/res/cardsfolder/n/nivix_guildmage.txt -text forge-gui/res/cardsfolder/n/nivix_guildmage.txt -text
forge-gui/res/cardsfolder/n/nivmagus_elemental.txt -text forge-gui/res/cardsfolder/n/nivmagus_elemental.txt -text
forge-gui/res/cardsfolder/n/nix.txt -text
forge-gui/res/cardsfolder/n/no_dachi.txt svneol=native#text/plain forge-gui/res/cardsfolder/n/no_dachi.txt svneol=native#text/plain
forge-gui/res/cardsfolder/n/no_mercy.txt svneol=native#text/plain forge-gui/res/cardsfolder/n/no_mercy.txt svneol=native#text/plain
forge-gui/res/cardsfolder/n/no_quarter.txt -text forge-gui/res/cardsfolder/n/no_quarter.txt -text

View File

@@ -39,7 +39,8 @@ public class CounterAi extends SpellAbilityAi {
if (tgt != null) { if (tgt != null) {
final SpellAbility topSA = game.getStack().peekAbility(); final SpellAbility topSA = game.getStack().peekAbility();
if (!CardFactoryUtil.isCounterableBy(topSA.getHostCard(), sa) || topSA.getActivatingPlayer() == ai) { if (!CardFactoryUtil.isCounterableBy(topSA.getHostCard(), sa) || topSA.getActivatingPlayer() == ai
|| ai.getAllies().contains(topSA.getActivatingPlayer())) {
// might as well check for player's friendliness // might as well check for player's friendliness
return false; return false;
} }
@@ -48,6 +49,10 @@ public class CounterAi extends SpellAbilityAi {
return false; return false;
} }
if (sa.hasParam("CounterNoManaSpell") && topSA.getTotalManaSpent() == 0) {
return false;
}
sa.resetTargets(); sa.resetTargets();
if (sa.canTargetSpellAbility(topSA)) { if (sa.canTargetSpellAbility(topSA)) {
sa.getTargets().add(topSA); sa.getTargets().add(topSA);

View File

@@ -104,6 +104,10 @@ public class CounterEffect extends SpellAbilityEffect {
continue; continue;
} }
if (sa.hasParam("CounterNoManaSpell") && tgtSA.getTotalManaSpent() != 0) {
continue;
}
if (sa.hasParam("RememberCounteredCMC")) { if (sa.hasParam("RememberCounteredCMC")) {
sa.getHostCard().addRemembered((Integer) tgtSACard.getCMC()); sa.getHostCard().addRemembered((Integer) tgtSACard.getCMC());
} }

View File

@@ -138,7 +138,7 @@ public class Phase implements java.io.Serializable {
} }
} }
public final void RegisterUntilEndCommand(final Player p) { public final void registerUntilEndCommand(final Player p) {
if (this.registerMap.containsKey(p)) { if (this.registerMap.containsKey(p)) {
this.untilEndMap.put(p, registerMap.get(p)); this.untilEndMap.put(p, registerMap.get(p));
registerMap.remove(p); registerMap.remove(p);

View File

@@ -425,7 +425,7 @@ public class PhaseHandler implements java.io.Serializable {
c.getDamageHistory().setNotBeenBlockedSinceLastUpkeepOf(this.getPlayerTurn()); c.getDamageHistory().setNotBeenBlockedSinceLastUpkeepOf(this.getPlayerTurn());
} }
game.getUpkeep().executeUntilEndOfPhase(this.getPlayerTurn()); game.getUpkeep().executeUntilEndOfPhase(this.getPlayerTurn());
game.getUpkeep().RegisterUntilEndCommand(this.getPlayerTurn()); game.getUpkeep().registerUntilEndCommand(this.getPlayerTurn());
break; break;
case COMBAT_END: case COMBAT_END:

View File

@@ -3,7 +3,7 @@ ManaCost:1 W U B
Types:Legendary Creature Shapeshifter Types:Legendary Creature Shapeshifter
PT:3/3 PT:3/3
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigAnimate | TriggerDescription$ At the beginning of your upkeep, CARDNAME's power and toughness become equal to the power and toughness of target creature other than CARDNAME until the end of your next upkeep. T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigAnimate | TriggerDescription$ At the beginning of your upkeep, CARDNAME's power and toughness become equal to the power and toughness of target creature other than CARDNAME until the end of your next upkeep.
SVar:TrigAnimate:AB$ Pump | Cost$ 0 | ValidTgts$ Creature.Other | TgtPrompt$ Select target another creature | AILogic$ HighestPower | SubAbility$ DBAnimate SVar:TrigAnimate:AB$ Pump | Cost$ 0 | ValidTgts$ Creature.Other | TgtPrompt$ Select target creature other than this creature | AILogic$ HighestPower | SubAbility$ DBAnimate
SVar:DBAnimate:DB$ Animate | Defined$ Self | Power$ X | Toughness$ Y | References$ X,Y | UntilTheEndOfYourNextUpkeep$ True SVar:DBAnimate:DB$ Animate | Defined$ Self | Power$ X | Toughness$ Y | References$ X,Y | UntilTheEndOfYourNextUpkeep$ True
SVar:X:Targeted$CardPower SVar:X:Targeted$CardPower
SVar:Y:Targeted$CardToughness SVar:Y:Targeted$CardToughness

View File

@@ -0,0 +1,7 @@
Name:Nix
ManaCost:U
Types:Instant
A:SP$ Counter | Cost$ U | TargetType$ Spell | ValidTgts$ Card | CounterNoManaSpell$ True | SpellDescription$ Counter target spell if no mana was spent to cast it.
SVar:RemRandomDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/nix.jpg
Oracle:Counter target spell if no mana was spent to cast it.