* Laboratory Maniac - Fixed check for win condition (you can now win together with Platinum Angel).

This commit is contained in:
LevelX2 2015-05-01 01:50:25 +02:00
parent 4206ea97ec
commit 9b3eff603c
6 changed files with 85 additions and 17 deletions

View file

@ -56,7 +56,6 @@ public class LaboratoryManiac extends CardImpl {
this.subtype.add("Human");
this.subtype.add("Wizard");
this.color.setBlue(true);
this.power = new MageInt(2);
this.toughness = new MageInt(2);
@ -107,7 +106,7 @@ class LaboratoryManiacEffect extends ReplacementEffectImpl {
@Override
public boolean checksEventType(GameEvent event, Game game) {
return event.getType() == EventType.LOSES;
return event.getType() == EventType.EMPTY_DRAW;
}
@Override

View file

@ -51,9 +51,7 @@ public class ThoughtReflection extends CardImpl {
public ThoughtReflection(UUID ownerId) {
super(ownerId, 53, "Thought Reflection", Rarity.RARE, new CardType[]{CardType.ENCHANTMENT}, "{4}{U}{U}{U}");
this.expansionSetCode = "SHM";
this.color.setBlue(true);
// If you would draw a card, draw two cards instead.
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ThoughtReflectionReplacementEffect()));
@ -90,6 +88,16 @@ class ThoughtReflectionReplacementEffect extends ReplacementEffectImpl {
return true;
}
@Override
public boolean checksEventType(GameEvent event, Game game) {
return event.getType() == GameEvent.EventType.DRAW_CARD;
}
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
return event.getPlayerId().equals(source.getControllerId());
}
@Override
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
Player you = game.getPlayer(event.getPlayerId());
@ -97,14 +105,5 @@ class ThoughtReflectionReplacementEffect extends ReplacementEffectImpl {
you.drawCards(2, game, event.getAppliedEffects());
}
return true;
}
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
if (event.getType() == GameEvent.EventType.DRAW_CARD
&& event.getPlayerId().equals(source.getControllerId())) {
return true;
}
return false;
}
}
}