mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
minor fixes
This commit is contained in:
parent
9c7caf3c0e
commit
d46678f95f
2 changed files with 15 additions and 13 deletions
|
@ -63,7 +63,7 @@ public class DivineReckoning extends CardImpl<DivineReckoning> {
|
|||
this.getSpellAbility().addEffect(new DivineReckoningEffect());
|
||||
|
||||
// Flashback {5}{W}{W}
|
||||
this.addAbility(new FlashbackAbility(new ManaCostsImpl("{5}{W}{W}"), Constants.TimingRule.INSTANT));
|
||||
this.addAbility(new FlashbackAbility(new ManaCostsImpl("{5}{W}{W}"), Constants.TimingRule.SORCERY));
|
||||
}
|
||||
|
||||
public DivineReckoning(final DivineReckoning card) {
|
||||
|
|
|
@ -41,9 +41,9 @@ import mage.abilities.effects.OneShotEffect;
|
|||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.permanent.ControllerIdPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.players.Player;
|
||||
import mage.target.TargetPlayer;
|
||||
|
||||
/**
|
||||
|
@ -84,7 +84,7 @@ class DawnglareInvokerEffect extends OneShotEffect<DawnglareInvokerEffect> {
|
|||
|
||||
public DawnglareInvokerEffect() {
|
||||
super(Outcome.Tap);
|
||||
staticText = "Tap all creatures target player controls.";
|
||||
staticText = "Tap all creatures target player controls";
|
||||
}
|
||||
|
||||
public DawnglareInvokerEffect(final DawnglareInvokerEffect effect) {
|
||||
|
@ -93,20 +93,22 @@ class DawnglareInvokerEffect extends OneShotEffect<DawnglareInvokerEffect> {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getFirstTarget());
|
||||
if (player != null) {
|
||||
List<Permanent> allCreatures = game.getBattlefield().getAllActivePermanents(new FilterCreaturePermanent(), player.getId(), game);
|
||||
for (Permanent creature : allCreatures) {
|
||||
creature.tap(game);
|
||||
}
|
||||
return true;
|
||||
if (source.getFirstTarget() == null) {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
|
||||
FilterCreaturePermanent filter = new FilterCreaturePermanent();
|
||||
filter.add(new ControllerIdPredicate(source.getFirstTarget()));
|
||||
|
||||
List<Permanent> creatures = game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game);
|
||||
for (Permanent creature : creatures) {
|
||||
creature.tap(game);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DawnglareInvokerEffect copy() {
|
||||
return new DawnglareInvokerEffect(this);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue