mirror of
https://github.com/correl/mage.git
synced 2024-12-24 03:00:14 +00:00
Some minor changes.
This commit is contained in:
parent
ff3d262a9b
commit
dfe1e2ef5a
4 changed files with 18 additions and 9 deletions
|
@ -135,10 +135,10 @@ public class MageActionCallback implements ActionCallback {
|
|||
ArrowUtil.drawArrowsForPairedCards(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) {
|
||||
String showTooltips = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_SHOW_TOOLTIPS_ANY_ZONE, "true");
|
||||
if (showTooltips.equals("false")) {
|
||||
|
|
|
@ -48,7 +48,7 @@ import mage.game.permanent.token.ElfToken;
|
|||
* @author fireshoes
|
||||
*/
|
||||
public class DwynensElite extends CardImpl {
|
||||
|
||||
|
||||
private static final FilterControlledPermanent filter = new FilterControlledPermanent("another Elf");
|
||||
|
||||
static {
|
||||
|
@ -69,7 +69,7 @@ public class DwynensElite extends CardImpl {
|
|||
this.addAbility(new ConditionalTriggeredAbility(
|
||||
triggeredAbility,
|
||||
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) {
|
||||
|
|
|
@ -45,13 +45,13 @@ import mage.filter.predicate.mageobject.AbilityPredicate;
|
|||
* @author LevelX2
|
||||
*/
|
||||
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 {
|
||||
filter.add(Predicates.not(new AbilityPredicate(FlyingAbility.class)));
|
||||
}
|
||||
|
||||
|
||||
public SeismicElemental(UUID ownerId) {
|
||||
super(ownerId, 161, "Seismic Elemental", Rarity.UNCOMMON, new CardType[]{CardType.CREATURE}, "{3}{R}{R}");
|
||||
this.expansionSetCode = "ORI";
|
||||
|
|
|
@ -63,7 +63,7 @@ public class TargetsAreChosenTest extends CardTestPlayerBaseAI {
|
|||
|
||||
/**
|
||||
* 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
|
||||
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
|
||||
@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
|
||||
*/
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue