- Added Mogg Assassin

This commit is contained in:
swordshine
2014-03-11 04:42:18 +00:00
parent 62868732c2
commit b6e1c02f07
3 changed files with 19 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -8027,6 +8027,7 @@ forge-gui/res/cardsfolder/m/mobile_fort.txt svneol=native#text/plain
forge-gui/res/cardsfolder/m/mobilization.txt svneol=native#text/plain forge-gui/res/cardsfolder/m/mobilization.txt svneol=native#text/plain
forge-gui/res/cardsfolder/m/mobilize.txt svneol=native#text/plain forge-gui/res/cardsfolder/m/mobilize.txt svneol=native#text/plain
forge-gui/res/cardsfolder/m/mogg_alarm.txt svneol=native#text/plain forge-gui/res/cardsfolder/m/mogg_alarm.txt svneol=native#text/plain
forge-gui/res/cardsfolder/m/mogg_assassin.txt -text
forge-gui/res/cardsfolder/m/mogg_bombers.txt svneol=native#text/plain forge-gui/res/cardsfolder/m/mogg_bombers.txt svneol=native#text/plain
forge-gui/res/cardsfolder/m/mogg_cannon.txt -text forge-gui/res/cardsfolder/m/mogg_cannon.txt -text
forge-gui/res/cardsfolder/m/mogg_conscripts.txt -text forge-gui/res/cardsfolder/m/mogg_conscripts.txt -text

View File

@@ -191,6 +191,12 @@ public class PumpAi extends PumpAiBase {
final Player opp = ai.getOpponent(); final Player opp = ai.getOpponent();
final TargetRestrictions tgt = sa.getTargetRestrictions(); final TargetRestrictions tgt = sa.getTargetRestrictions();
sa.resetTargets(); sa.resetTargets();
if (sa.hasParam("TargetingPlayer") && sa.getActivatingPlayer().equals(ai)) {
Player targetingPlayer = AbilityUtils.getDefinedPlayers(source, sa.getParam("TargetingPlayer"), sa).get(0);
sa.setTargetingPlayer(targetingPlayer);
return targetingPlayer.getController().chooseTargetsFor(sa);
}
List<Card> list = new ArrayList<Card>(); List<Card> list = new ArrayList<Card>();
if (sa.hasParam("AILogic")) { if (sa.hasParam("AILogic")) {
if (sa.getParam("AILogic").equals("HighestPower")) { if (sa.getParam("AILogic").equals("HighestPower")) {

View File

@@ -0,0 +1,12 @@
Name:Mogg Assassin
ManaCost:2 R
Types:Creature Goblin Assassin
PT:2/1
A:AB$ Pump | Cost$ T | ValidTgts$ Creature.OppCtrl | TgtPrompt$ Select target creature an opponent controls | RememberObjects$ ThisTargetedCard | IsCurse$ True | SubAbility$ DBPump | StackDescription$ You choose {c:ThisTargetedCard} | SpellDescription$ You choose target creature an opponent controls, and that opponent chooses target creature. Flip a coin. If you win the flip, destroy the creature you chose. If you lose the flip, destroy the creature your opponent chose.
SVar:DBPump:DB$ Pump | ValidTgts$ Creature | TargetingPlayer$ Player.Opponent | IsCurse$ True | ImprintCards$ ThisTargetedCard | SubAbility$ DBFlip | StackDescription$ That player chooses {c:ThisTargetedCard}
SVar:DBFlip:DB$ FlipACoin | WinSubAbility$ DestroyRemembered | LoseSubAbility$ DestroyImprinted | SubAbility$ DBCleanup
SVar:DestroyRemembered:DB$ Destroy | Defined$ Remembered
SVar:DestroyImprinted:DB$ Destroy | Defined$ Imprinted
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True | ClearImprinted$ True
SVar:Picture:http://www.wizards.com/global/images/magic/general/mogg_assassin.jpg
Oracle:{T}: You choose target creature an opponent controls, and that opponent chooses target creature. Flip a coin. If you win the flip, destroy the creature you chose. If you lose the flip, destroy the creature your opponent chose.