mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
fix card bugs for Star Wars set
This commit is contained in:
parent
88c049f44a
commit
d7c1b8b9c9
7 changed files with 27 additions and 32 deletions
|
@ -360,7 +360,7 @@ public enum GrabbagImageSource implements CardImageSource {
|
|||
singleLinks.put("SWS/Astromech Droid", "v0TpHMh.jpg");
|
||||
singleLinks.put("SWS/Buried Ruin", "QkmIWYg.png");
|
||||
singleLinks.put("SWS/Flame Trooper", "RkY7KFJ.jpg");
|
||||
singleLinks.put("SWS/Force Statis", "FavLrcY.jpg");
|
||||
singleLinks.put("SWS/Force Stasis", "FavLrcY.jpg");
|
||||
singleLinks.put("SWS/Salvage Trader", "qGwk7Bn.jpg");
|
||||
singleLinks.put("SWS/Outer Rim Gang", "kEjKQGy.png");
|
||||
singleLinks.put("SWS/Rathtar", "CYhHRqF.png");
|
||||
|
@ -431,6 +431,7 @@ public enum GrabbagImageSource implements CardImageSource {
|
|||
singleLinks.put("SWS/Aurra Sing", "BLWbVJC.png");
|
||||
singleLinks.put("SWS/Yoda", "zH0sYxg.png");
|
||||
singleLinks.put("SWS/Emblem Luke Skywalker", "kHELZDJ.jpg");
|
||||
|
||||
// Tokens
|
||||
singleLinks.put("SWS/Ewok", "N2MvJyr.png");
|
||||
singleLinks.put("SWS/B-Wing", "oH62AUD.png");
|
||||
|
|
|
@ -218,6 +218,7 @@ public final class CardImageUtils {
|
|||
if (cardName.isEmpty()) {
|
||||
cardName = prepareCardNameForFile(card.getName());
|
||||
}
|
||||
cardName = cardName.replaceAll("[\\\\/:*?\"<>|]", "");
|
||||
|
||||
String finalFileName = "";
|
||||
if (card.getUsesVariousArt()) {
|
||||
|
|
|
@ -31,9 +31,9 @@ import mage.target.common.TargetCreaturePermanent;
|
|||
*
|
||||
* @author Styxo
|
||||
*/
|
||||
public final class DarthTyranus extends CardImpl {
|
||||
public final class DarthTyranusCountOfSerenno extends CardImpl {
|
||||
|
||||
public DarthTyranus(UUID ownerId, CardSetInfo setInfo) {
|
||||
public DarthTyranusCountOfSerenno(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId,setInfo,new CardType[]{CardType.PLANESWALKER},"{1}{W}{U}{B}");
|
||||
this.subtype.add(SubType.DOOKU);
|
||||
|
||||
|
@ -55,13 +55,13 @@ public final class DarthTyranus extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
public DarthTyranus(final DarthTyranus card) {
|
||||
public DarthTyranusCountOfSerenno(final DarthTyranusCountOfSerenno card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DarthTyranus copy() {
|
||||
return new DarthTyranus(this);
|
||||
public DarthTyranusCountOfSerenno copy() {
|
||||
return new DarthTyranusCountOfSerenno(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -8,6 +8,7 @@ import mage.abilities.common.SimpleActivatedAbility;
|
|||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.continuous.BoostSourceEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||
import mage.constants.*;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -41,9 +42,12 @@ public final class GeneralHux extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// Whenever General Hux or another nontoken creature enters the battlefield under your control, until end of turn, target creature gains "{B}: This creature gets +1/+1 until end of turn."
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl("{B}"));
|
||||
Effect effect = new GainAbilityTargetEffect(ability, Duration.EndOfTurn);
|
||||
effect.setText("until end of turn, target creature gains \"{B}: This creature gets +1/+1 until end of turn.\"");
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new BoostSourceEffect(1, 1, Duration.EndOfTurn)
|
||||
.setText("This creature gets +1/+1 until end of turn"),
|
||||
new ManaCostsImpl("{B}"));
|
||||
Effect effect = new GainAbilitySourceEffect(ability, Duration.EndOfTurn);
|
||||
effect.setText("until end of turn, target creature gains");
|
||||
this.addAbility(new EntersBattlefieldControlledTriggeredAbility(Zone.BATTLEFIELD, effect, filter, false));
|
||||
}
|
||||
|
||||
|
|
|
@ -2,10 +2,7 @@ package mage.cards.h;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.DelayedTriggeredAbilities;
|
||||
import mage.abilities.DelayedTriggeredAbility;
|
||||
import mage.abilities.TriggeredAbility;
|
||||
import mage.abilities.*;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.condition.common.MyTurnCondition;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
|
@ -68,10 +65,10 @@ public final class HanSoloScrumrat extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class HanSoloScrumratTriggeredAbility extends DelayedTriggeredAbility {
|
||||
class HanSoloScrumratTriggeredAbility extends TriggeredAbilityImpl {
|
||||
|
||||
public HanSoloScrumratTriggeredAbility() {
|
||||
super(new AddCountersTargetEffect(CounterType.P1P1.createInstance()), Duration.EndOfTurn, false);
|
||||
super(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.P1P1.createInstance()), false);
|
||||
}
|
||||
|
||||
public HanSoloScrumratTriggeredAbility(final HanSoloScrumratTriggeredAbility ability) {
|
||||
|
@ -85,25 +82,17 @@ class HanSoloScrumratTriggeredAbility extends DelayedTriggeredAbility {
|
|||
|
||||
@Override
|
||||
public boolean checkEventType(GameEvent event, Game game) {
|
||||
switch(event.getType()) {
|
||||
case DAMAGED_CREATURE:
|
||||
case DAMAGED_PLAYER:
|
||||
case DAMAGED_PLANESWALKER:
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return event.getType() == GameEvent.EventType.DAMAGED_CREATURE
|
||||
|| event.getType() == GameEvent.EventType.DAMAGED_PLAYER
|
||||
|| event.getType() == GameEvent.EventType.DAMAGED_PLANESWALKER;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
Permanent target = game.getPermanent(this.getFirstTarget());
|
||||
if (target != null && event.getSourceId().equals(target.getId()) && MyTurnCondition.instance.apply(game, this)) {
|
||||
for (Effect effect : this.getEffects()) {
|
||||
effect.setValue("damage", event.getAmount());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
Permanent source = game.getPermanent(this.getSourceId());
|
||||
return source != null
|
||||
&& game.isActivePlayer(source.getControllerId())
|
||||
&& event.getSourceId().equals(this.getSourceId());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -66,7 +66,7 @@ public final class SupremeLeaderSnoke extends CardImpl {
|
|||
ability3.addEffect(new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.WhileOnBattlefield).setText("It gains haste"));
|
||||
ability3.addEffect(new GainAbilityTargetEffect(new AtTheBeginOfNextEndStepDelayedTriggeredAbility(new SacrificeSourceEffect()), Duration.WhileOnBattlefield)
|
||||
.setText("Sacrifice that creature at the beginning of the next end step"));
|
||||
ability3Id = ability2.getOriginalId();
|
||||
ability3Id = ability3.getOriginalId();
|
||||
ability3.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability3);
|
||||
}
|
||||
|
|
|
@ -87,7 +87,7 @@ public final class StarWars extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Dark Trooper", 231, Rarity.UNCOMMON, mage.cards.d.DarkTrooper.class));
|
||||
cards.add(new SetCardInfo("Darth Maul", 178, Rarity.RARE, mage.cards.d.DarthMaul.class));
|
||||
cards.add(new SetCardInfo("Darth Sidious, Sith Lord", 179, Rarity.MYTHIC, mage.cards.d.DarthSidiousSithLord.class));
|
||||
cards.add(new SetCardInfo("Darth Tyranus", 180, Rarity.MYTHIC, mage.cards.d.DarthTyranus.class));
|
||||
cards.add(new SetCardInfo("Darth Tyranus, Count of Serenno", 180, Rarity.MYTHIC, mage.cards.d.DarthTyranusCountOfSerenno.class));
|
||||
cards.add(new SetCardInfo("Darth Vader", 140, Rarity.MYTHIC, mage.cards.d.DarthVader.class));
|
||||
cards.add(new SetCardInfo("Death Trooper", 71, Rarity.UNCOMMON, mage.cards.d.DeathTrooper.class));
|
||||
cards.add(new SetCardInfo("Delay Tactic", 504, Rarity.COMMON, mage.cards.d.DelayTactic.class));
|
||||
|
|
Loading…
Reference in a new issue