mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 12:19:59 -08:00
* Some fixes to tests and sacrifice cost.
This commit is contained in:
parent
e77817b67a
commit
88e744c04c
6 changed files with 28 additions and 25 deletions
|
|
@ -28,8 +28,6 @@
|
|||
package mage.sets.darkascension;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.constants.*;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
|
||||
|
|
@ -41,6 +39,7 @@ import mage.abilities.effects.common.ExileFromZoneTargetEffect;
|
|||
import mage.abilities.effects.common.RegenerateSourceEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.constants.*;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||
|
|
@ -56,7 +55,7 @@ public class FiendOfTheShadows extends CardImpl {
|
|||
|
||||
private UUID exileId = UUID.randomUUID();
|
||||
|
||||
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("a human");
|
||||
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("a Human");
|
||||
|
||||
static {
|
||||
filter.add(new SubtypePredicate("Human"));
|
||||
|
|
@ -118,12 +117,12 @@ class FiendOfTheShadowsEffect extends AsThoughEffectImpl {
|
|||
@Override
|
||||
public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) {
|
||||
if (affectedControllerId.equals(source.getControllerId())) {
|
||||
ExileZone zone = game.getExile().getExileZone(exileId);
|
||||
if (zone != null && zone.contains(objectId)) {
|
||||
return true;
|
||||
}
|
||||
ExileZone zone = game.getExile().getExileZone(exileId);
|
||||
if (zone != null && zone.contains(objectId)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,11 +56,10 @@ import mage.target.common.TargetCreaturePermanent;
|
|||
*/
|
||||
public class AmbushCommander extends CardImpl {
|
||||
|
||||
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("an Elf");
|
||||
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("Elf", "an Elf");
|
||||
private static final FilterControlledPermanent filter2 = new FilterControlledPermanent("Forests you control");
|
||||
|
||||
static {
|
||||
filter.add(new SubtypePredicate("Elf"));
|
||||
filter2.add(new SubtypePredicate("Forest"));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue