mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
[FRF] Minor changes to Renowned Weaponsmith and Temur Battle Rage.
This commit is contained in:
parent
de10554ec4
commit
5b04f40a66
2 changed files with 10 additions and 8 deletions
|
|
@ -72,7 +72,7 @@ public class RenownedWeaponsmith extends CardImpl {
|
||||||
// {t}: Add {2} to your mana pool. Spend this mana only to cast artifact spells or activate abilities of artifacts.
|
// {t}: Add {2} to your mana pool. Spend this mana only to cast artifact spells or activate abilities of artifacts.
|
||||||
this.addAbility(new ConditionalColorlessManaAbility(new TapSourceCost(), 2, new RenownedWeaponsmithManaBuilder()));
|
this.addAbility(new ConditionalColorlessManaAbility(new TapSourceCost(), 2, new RenownedWeaponsmithManaBuilder()));
|
||||||
|
|
||||||
// {U}, {t}: Search your library for a card named Heart-Piercer Bow or Vial of Dragonfire, reveal it, put it into your hand, then shuffle your library.
|
// {U}, {T}: Search your library for a card named Heart-Piercer Bow or Vial of Dragonfire, reveal it, put it into your hand, then shuffle your library.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RenownedWeaponsmithEffect(), new ManaCostsImpl("{U"));
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RenownedWeaponsmithEffect(), new ManaCostsImpl("{U"));
|
||||||
ability.addCost(new TapSourceCost());
|
ability.addCost(new TapSourceCost());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
@ -122,11 +122,11 @@ class RenownedWeaponsmithCondition implements Condition {
|
||||||
|
|
||||||
class RenownedWeaponsmithEffect extends OneShotEffect {
|
class RenownedWeaponsmithEffect extends OneShotEffect {
|
||||||
|
|
||||||
private static final FilterCard filter = new FilterCard("card named Heart-Piercer Bow or Heart-Piercer Bow");
|
private static final FilterCard filter = new FilterCard("card named Heart-Piercer Vial of Dragonfire");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(Predicates.or(new NamePredicate("Heart-Piercer Bow"),
|
filter.add(Predicates.or(new NamePredicate("Heart-Piercer Bow"),
|
||||||
new NamePredicate("Heart-Piercer Bow")));
|
new NamePredicate("Vial of Dragonfire")));
|
||||||
}
|
}
|
||||||
|
|
||||||
public RenownedWeaponsmithEffect() {
|
public RenownedWeaponsmithEffect() {
|
||||||
|
|
@ -141,18 +141,20 @@ class RenownedWeaponsmithEffect extends OneShotEffect {
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
Player controller = game.getPlayer(source.getControllerId());
|
Player controller = game.getPlayer(source.getControllerId());
|
||||||
if (controller != null) {
|
MageObject sourceObject = game.getObject(source.getSourceId());
|
||||||
|
if (sourceObject != null && controller != null) {
|
||||||
TargetCardInLibrary target = new TargetCardInLibrary(filter);
|
TargetCardInLibrary target = new TargetCardInLibrary(filter);
|
||||||
if (controller.searchLibrary(target, game)) {
|
if (controller.searchLibrary(target, game)) {
|
||||||
if (target.getTargets().size() > 0) {
|
if (target.getTargets().size() > 0) {
|
||||||
Card card = game.getCard(target.getFirstTarget());
|
Card card = game.getCard(target.getFirstTarget());
|
||||||
Cards revealed = new CardsImpl();
|
Cards revealed = new CardsImpl();
|
||||||
revealed.add(card);
|
revealed.add(card);
|
||||||
controller.revealCards("Renowned Weaponsmith", revealed, game);
|
controller.revealCards(sourceObject.getLogName(), revealed, game);
|
||||||
controller.moveCardToHandWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
|
controller.moveCardToHandWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
|
||||||
controller.shuffleLibrary(game);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
controller.shuffleLibrary(game);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ import mage.target.common.TargetCreaturePermanent;
|
||||||
*/
|
*/
|
||||||
public class TemurBattleRage extends CardImpl {
|
public class TemurBattleRage extends CardImpl {
|
||||||
|
|
||||||
private final static String rule = "<i>Ferocious</i> — That creature also gains trample until end of turn if you control a creature with power 4 or greater";
|
private final static String rule = "<br><i>Ferocious</i> — That creature also gains trample until end of turn if you control a creature with power 4 or greater";
|
||||||
|
|
||||||
public TemurBattleRage(UUID ownerId) {
|
public TemurBattleRage(UUID ownerId) {
|
||||||
super(ownerId, 116, "Temur Battle Rage", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{1}{R}");
|
super(ownerId, 116, "Temur Battle Rage", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{1}{R}");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue