mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- Added Bazaar Trader.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -682,6 +682,7 @@ res/cardsfolder/b/bayou.txt svneol=native#text/plain
|
|||||||
res/cardsfolder/b/bayou_dragonfly.txt svneol=native#text/plain
|
res/cardsfolder/b/bayou_dragonfly.txt svneol=native#text/plain
|
||||||
res/cardsfolder/b/bazaar_of_baghdad.txt svneol=native#text/plain
|
res/cardsfolder/b/bazaar_of_baghdad.txt svneol=native#text/plain
|
||||||
res/cardsfolder/b/bazaar_of_wonders.txt svneol=native#text/plain
|
res/cardsfolder/b/bazaar_of_wonders.txt svneol=native#text/plain
|
||||||
|
res/cardsfolder/b/bazaar_trader.txt -text svneol=unset#text/plain
|
||||||
res/cardsfolder/b/beacon_behemoth.txt svneol=native#text/plain
|
res/cardsfolder/b/beacon_behemoth.txt svneol=native#text/plain
|
||||||
res/cardsfolder/b/beacon_hawk.txt svneol=native#text/plain
|
res/cardsfolder/b/beacon_hawk.txt svneol=native#text/plain
|
||||||
res/cardsfolder/b/beacon_of_creation.txt svneol=native#text/plain
|
res/cardsfolder/b/beacon_of_creation.txt svneol=native#text/plain
|
||||||
|
|||||||
9
res/cardsfolder/b/bazaar_trader.txt
Normal file
9
res/cardsfolder/b/bazaar_trader.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Name:Bazaar Trader
|
||||||
|
ManaCost:1 R
|
||||||
|
Types:Creature Goblin
|
||||||
|
Text:T:Target player gains control of target artifact, creature, or land you control.
|
||||||
|
PT:1/1
|
||||||
|
SVar:RemAIDeck:True
|
||||||
|
SVar:Rarity:Rare
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/bazaar_trader.jpg
|
||||||
|
End
|
||||||
@@ -2610,6 +2610,55 @@ public class CardFactoryCreatures {
|
|||||||
card.addSpellAbility(ability);
|
card.addSpellAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// *************** START *********** START **************************
|
||||||
|
|
||||||
|
else if (cardName.equals("Bazaar Trader")) {
|
||||||
|
|
||||||
|
final Target player = new Target(card, "Select target player", "Player".split(","));
|
||||||
|
final AbilitySub sub = new AbilitySub(card, player) {
|
||||||
|
private static final long serialVersionUID = -8926222902424944054L;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean chkAIDrawback() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void resolve() {
|
||||||
|
final Card permanent = this.getParent().getTargetCard();
|
||||||
|
final Player player = this.getTargetPlayer();
|
||||||
|
permanent.addController(player);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean doTrigger(final boolean b) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
final Cost abCost = new Cost("T", cardName, true);
|
||||||
|
final Target permanent = new Target(card, "Select target artifact, creature, or land you control", "Artifact.YouCtrl,Creature.YouCtrl,Land.YouCtrl".split(","));
|
||||||
|
final AbilityActivated ability = new AbilityActivated(card, abCost, permanent) {
|
||||||
|
private static final long serialVersionUID = 3818522482440103914L;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canPlayAI() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void resolve() {
|
||||||
|
sub.resolve();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
ability.setSubAbility(sub);
|
||||||
|
final StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append(cardName);
|
||||||
|
sb.append(" Target player gains control of target artifact, creature, or land you control.");
|
||||||
|
ability.setStackDescription(sb.toString());
|
||||||
|
card.addSpellAbility(ability);
|
||||||
|
}
|
||||||
|
|
||||||
// ***************************************************
|
// ***************************************************
|
||||||
// end of card specific code
|
// end of card specific code
|
||||||
// ***************************************************
|
// ***************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user