From e11a2c30e23070e51ad8b7f11a95bc13272637ba Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Wed, 15 May 2013 00:43:29 +0200 Subject: [PATCH 1/7] Fixed Augur of Bolas returning cards not to bottom of library, --- Mage.Sets/src/mage/sets/magic2013/AugurOfBolas.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/sets/magic2013/AugurOfBolas.java b/Mage.Sets/src/mage/sets/magic2013/AugurOfBolas.java index 97b28aea78..78196ba3ed 100644 --- a/Mage.Sets/src/mage/sets/magic2013/AugurOfBolas.java +++ b/Mage.Sets/src/mage/sets/magic2013/AugurOfBolas.java @@ -32,6 +32,7 @@ import mage.Constants.CardType; import mage.Constants.Rarity; import mage.MageInt; import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.dynamicvalue.common.StaticValue; import mage.abilities.effects.common.LookLibraryAndPickControllerEffect; import mage.cards.CardImpl; import mage.filter.FilterCard; @@ -60,7 +61,7 @@ public class AugurOfBolas extends CardImpl { this.toughness = new MageInt(3); // When Augur of Bolas enters the battlefield, look at the top three cards of your library. You may reveal an instant or sorcery card from among them and put it into your hand. Put the rest on the bottom of your library in any order. - this.addAbility(new EntersBattlefieldTriggeredAbility(new LookLibraryAndPickControllerEffect(3, 1, filter, false))); + this.addAbility(new EntersBattlefieldTriggeredAbility(new LookLibraryAndPickControllerEffect(new StaticValue(3), false, new StaticValue(1), filter, false, true))); } public AugurOfBolas(final AugurOfBolas card) { From 562bcb5dc8ad06a3b113eed2e933026f84fa2545 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Wed, 15 May 2013 00:44:48 +0200 Subject: [PATCH 2/7] Fixed bug of Debt to the Deathless only dealing 1 * X damage instead of 2 * X. --- Mage.Sets/src/mage/sets/dragonsmaze/DebtToTheDeathless.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/sets/dragonsmaze/DebtToTheDeathless.java b/Mage.Sets/src/mage/sets/dragonsmaze/DebtToTheDeathless.java index f620395a6c..92d82b8bfa 100644 --- a/Mage.Sets/src/mage/sets/dragonsmaze/DebtToTheDeathless.java +++ b/Mage.Sets/src/mage/sets/dragonsmaze/DebtToTheDeathless.java @@ -86,7 +86,7 @@ class DebtToTheDeathlessEffect extends OneShotEffect { int damage = 0; int xValue = source.getManaCostsToPay().getX(); for (UUID opponentId: game.getOpponents(source.getControllerId())) { - damage += game.getPlayer(opponentId).damage(xValue, source.getSourceId(), game, false, true); + damage += game.getPlayer(opponentId).damage(xValue * 2, source.getSourceId(), game, false, true); } game.getPlayer(source.getControllerId()).gainLife(damage, game); return true; From 514a57904fdf75a9e3f92f6fd69a223cff819e19 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Wed, 15 May 2013 00:45:38 +0200 Subject: [PATCH 3/7] Fixed bug of Zhur-Taa Druid dealing 2 damage to opponents instead of the correct 1 damage. --- Mage.Sets/src/mage/sets/dragonsmaze/ZhurTaaDruid.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/sets/dragonsmaze/ZhurTaaDruid.java b/Mage.Sets/src/mage/sets/dragonsmaze/ZhurTaaDruid.java index a43bd49270..debc491cf7 100644 --- a/Mage.Sets/src/mage/sets/dragonsmaze/ZhurTaaDruid.java +++ b/Mage.Sets/src/mage/sets/dragonsmaze/ZhurTaaDruid.java @@ -77,7 +77,7 @@ public class ZhurTaaDruid extends CardImpl { class ZhurTaaDruidAbility extends TriggeredAbilityImpl { public ZhurTaaDruidAbility() { - super(Zone.BATTLEFIELD, new DamagePlayersEffect(2, TargetController.OPPONENT)); + super(Zone.BATTLEFIELD, new DamagePlayersEffect(1, TargetController.OPPONENT)); } public ZhurTaaDruidAbility(final ZhurTaaDruidAbility ability) { From 579951ee369067c00d1adde9490584bc37d1cdac Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Wed, 15 May 2013 00:46:38 +0200 Subject: [PATCH 4/7] Fixed bug of Council of the Absolute allowing to select all card nymes instead the correct not land and not creature names. --- Mage/src/mage/cards/repository/CardRepository.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mage/src/mage/cards/repository/CardRepository.java b/Mage/src/mage/cards/repository/CardRepository.java index 5697ca16fa..03663557a6 100644 --- a/Mage/src/mage/cards/repository/CardRepository.java +++ b/Mage/src/mage/cards/repository/CardRepository.java @@ -32,6 +32,7 @@ import com.j256.ormlite.dao.DaoManager; import com.j256.ormlite.jdbc.JdbcConnectionSource; import com.j256.ormlite.stmt.QueryBuilder; import com.j256.ormlite.stmt.SelectArg; +import com.j256.ormlite.stmt.Where; import com.j256.ormlite.support.ConnectionSource; import com.j256.ormlite.table.TableUtils; import java.io.File; @@ -170,7 +171,8 @@ public enum CardRepository { try { QueryBuilder qb = cardDao.queryBuilder(); qb.distinct().selectColumns("name"); - qb.where().not().in("types", CardType.LAND.name(), CardType.CREATURE.name()); + Where where = qb.where(); + where.and(where.not().like("types", '%' + CardType.CREATURE.name() +'%'),where.not().like("types", '%' + CardType.LAND.name() + '%')); List results = cardDao.query(qb.prepare()); for (CardInfo card : results) { names.add(card.getName()); From df569d01e0aaca267ad726d3c04704fb24d85659 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Wed, 15 May 2013 10:54:57 +0200 Subject: [PATCH 5/7] Fixed bug of Melek, Izzet Paragon allowing to cast sorceries that shouldn't be castable with Melek. --- .../src/mage/sets/dragonsmaze/BloodBaronOfVizkopa.java | 6 ++++-- Mage.Sets/src/mage/sets/dragonsmaze/MelekIzzetParagon.java | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Mage.Sets/src/mage/sets/dragonsmaze/BloodBaronOfVizkopa.java b/Mage.Sets/src/mage/sets/dragonsmaze/BloodBaronOfVizkopa.java index 09b0438bc2..3bf86b84f1 100644 --- a/Mage.Sets/src/mage/sets/dragonsmaze/BloodBaronOfVizkopa.java +++ b/Mage.Sets/src/mage/sets/dragonsmaze/BloodBaronOfVizkopa.java @@ -97,7 +97,7 @@ public class BloodBaronOfVizkopa extends CardImpl { } class BloodBaronOfVizkopaEffect extends ContinuousEffectImpl { - + public BloodBaronOfVizkopaEffect() { super(Duration.WhileOnBattlefield, Outcome.BoostCreature); staticText = "As long as you have 30 or more life and an opponent has 10 or less life, {this} gets +6/+6 and has flying"; @@ -129,6 +129,7 @@ class BloodBaronOfVizkopaEffect extends ContinuousEffectImpl Date: Fri, 17 May 2013 08:26:33 +0200 Subject: [PATCH 6/7] Fixed bug of Warped Physique, giving +x/+x instead of +x/-x. --- Mage.Sets/src/mage/sets/dragonsmaze/WarpedPhysique.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/sets/dragonsmaze/WarpedPhysique.java b/Mage.Sets/src/mage/sets/dragonsmaze/WarpedPhysique.java index 003440cf9f..d659899bc8 100644 --- a/Mage.Sets/src/mage/sets/dragonsmaze/WarpedPhysique.java +++ b/Mage.Sets/src/mage/sets/dragonsmaze/WarpedPhysique.java @@ -34,6 +34,7 @@ import mage.Constants.Duration; import mage.Constants.Rarity; import mage.abilities.dynamicvalue.DynamicValue; import mage.abilities.dynamicvalue.common.CardsInControllerHandCount; +import mage.abilities.dynamicvalue.common.SignInversionDynamicValue; import mage.abilities.effects.common.continious.BoostTargetEffect; import mage.cards.CardImpl; import mage.target.common.TargetCreaturePermanent; @@ -55,7 +56,7 @@ public class WarpedPhysique extends CardImpl { // Target creature gets +X/-X until end of turn, where X is the number of cards in your hand. DynamicValue xValue = new CardsInControllerHandCount(); - this.getSpellAbility().addEffect(new BoostTargetEffect(xValue, xValue, Duration.EndOfTurn, true)); + this.getSpellAbility().addEffect(new BoostTargetEffect(xValue, new SignInversionDynamicValue(xValue), Duration.EndOfTurn, true)); this.getSpellAbility().addTarget(new TargetCreaturePermanent()); } From 6636d441cc1851b962aa0367a34432d8f53a6933 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Fri, 17 May 2013 08:41:44 +0200 Subject: [PATCH 7/7] Fixed bug of Species Gorger where the target was not set ro required. --- Mage.Sets/src/mage/sets/dragonsmaze/SpeciesGorger.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Mage.Sets/src/mage/sets/dragonsmaze/SpeciesGorger.java b/Mage.Sets/src/mage/sets/dragonsmaze/SpeciesGorger.java index 0f42bb315d..723670b31a 100644 --- a/Mage.Sets/src/mage/sets/dragonsmaze/SpeciesGorger.java +++ b/Mage.Sets/src/mage/sets/dragonsmaze/SpeciesGorger.java @@ -95,6 +95,7 @@ class ReturnToHandChooseEffect extends OneShotEffect { Player player = game.getPlayer(source.getControllerId()); if (player != null) { TargetControlledCreaturePermanent target = new TargetControlledCreaturePermanent(); + target.setRequired(true); if (player.choose(this.outcome, target, source.getSourceId(), game)) { Permanent permanent = game.getPermanent(target.getFirstTarget()); if (permanent != null) {