Some minor changes.

This commit is contained in:
LevelX2 2015-08-28 16:52:33 +02:00
parent ff3d262a9b
commit dfe1e2ef5a
4 changed files with 18 additions and 9 deletions

View file

@ -135,10 +135,10 @@ public class MageActionCallback implements ActionCallback {
ArrowUtil.drawArrowsForPairedCards(data, parentPoint); ArrowUtil.drawArrowsForPairedCards(data, parentPoint);
ArrowUtil.drawArrowsForEnchantPlayers(data, parentPoint); ArrowUtil.drawArrowsForEnchantPlayers(data, parentPoint);
showPopup(data, parentComponent, parentPoint); showTooltipPopup(data, parentComponent, parentPoint);
} }
private void showPopup(final TransferData data, final Component parentComponent, final Point parentPoint) { private void showTooltipPopup(final TransferData data, final Component parentComponent, final Point parentPoint) {
if (data.component != null) { if (data.component != null) {
String showTooltips = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_SHOW_TOOLTIPS_ANY_ZONE, "true"); String showTooltips = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_SHOW_TOOLTIPS_ANY_ZONE, "true");
if (showTooltips.equals("false")) { if (showTooltips.equals("false")) {

View file

@ -69,7 +69,7 @@ public class DwynensElite extends CardImpl {
this.addAbility(new ConditionalTriggeredAbility( this.addAbility(new ConditionalTriggeredAbility(
triggeredAbility, triggeredAbility,
new PermanentsOnTheBattlefieldCondition(filter, CountType.MORE_THAN, 0), new PermanentsOnTheBattlefieldCondition(filter, CountType.MORE_THAN, 0),
"When {this} enters the battlefield, if you control another Elf, put a 1/1 green Elf Warrior creature token onto the battlefield")); "When {this} enters the battlefield, if you control another Elf, put a 1/1 green Elf Warrior creature token onto the battlefield."));
} }
public DwynensElite(final DwynensElite card) { public DwynensElite(final DwynensElite card) {

View file

@ -46,7 +46,7 @@ import mage.filter.predicate.mageobject.AbilityPredicate;
*/ */
public class SeismicElemental extends CardImpl { public class SeismicElemental extends CardImpl {
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Creatures without flying"); private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("creatures without flying");
static { static {
filter.add(Predicates.not(new AbilityPredicate(FlyingAbility.class))); filter.add(Predicates.not(new AbilityPredicate(FlyingAbility.class)));

View file

@ -63,7 +63,7 @@ public class TargetsAreChosenTest extends CardTestPlayerBaseAI {
/** /**
* Check that the AI does not cast Rack and Ruin if it would destroy the * Check that the AI does not cast Rack and Ruin if it would destroy the
* owly creature on the battlefield owned by the AI * only creature on the battlefield owned by the AI
*/ */
@Test @Test
public void testRackAndRuin2() { public void testRackAndRuin2() {
@ -196,7 +196,7 @@ public class TargetsAreChosenTest extends CardTestPlayerBaseAI {
} }
/** /**
* Test that AI counters creatire spell * Test that AI counters creature spell
*/ */
@Test @Test
@Ignore // counter spells don't seem to be cast by AI @Ignore // counter spells don't seem to be cast by AI
@ -222,4 +222,13 @@ public class TargetsAreChosenTest extends CardTestPlayerBaseAI {
} }
/**
* Target selection from EntersTheBattlefield is not varied in the AI
* calculation, so value is only calculated for the one selected target set.
*
* E.g. If AI casts an Eyeblight Assassin and opponent has a 3/1 and a 2/2,
* the AI should target the 3/1.
*
* Add test to check such situations
*/
} }