Fixed bugs of Runner's Bane and Notion Thief.

This commit is contained in:
LevelX2 2013-05-11 15:39:57 +02:00
parent 9eb3e8f308
commit 8d135fafbb
2 changed files with 4 additions and 1 deletions

View file

@ -152,7 +152,9 @@ class NotionThiefDrawWatcher extends WatcherImpl<NotionThiefDrawWatcher> {
if (event.getType() == GameEvent.EventType.UNTAP_STEP_PRE) { if (event.getType() == GameEvent.EventType.UNTAP_STEP_PRE) {
reset(); reset();
} }
if (event.getType() == GameEvent.EventType.DREW_CARD && game.getPhase().getStep().getType().equals(PhaseStep.DRAW)) { if (event.getType() == GameEvent.EventType.DREW_CARD
&& game.getPhase() != null
&& game.getPhase().getStep().getType().equals(PhaseStep.DRAW)) {
UUID playerId = event.getPlayerId(); UUID playerId = event.getPlayerId();
if (playerId != null) { if (playerId != null) {
Integer amount = amountOfCardsDrawnThisTurn.get(playerId); Integer amount = amountOfCardsDrawnThisTurn.get(playerId);

View file

@ -63,6 +63,7 @@ public class RunnersBane extends CardImpl<RunnersBane> {
public RunnersBane(UUID ownerId) { public RunnersBane(UUID ownerId) {
super(ownerId, 17, "Runner's Bane", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{1}{U}"); super(ownerId, 17, "Runner's Bane", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{1}{U}");
this.expansionSetCode = "DGM"; this.expansionSetCode = "DGM";
this.subtype.add("Aura");
this.color.setBlue(true); this.color.setBlue(true);
// Enchant creature with power 3 or less // Enchant creature with power 3 or less