mirror of
https://github.com/correl/mage.git
synced 2025-04-12 17:00:08 -09:00
- Fixed #6084
This commit is contained in:
parent
ca22a7750a
commit
dd68a1ba84
1 changed files with 10 additions and 6 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.cards.d;
|
||||
|
||||
import java.util.UUID;
|
||||
|
@ -29,7 +28,7 @@ public final class DeadRingers extends CardImpl {
|
|||
}
|
||||
|
||||
public DeadRingers(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{4}{B}");
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{B}");
|
||||
|
||||
// Destroy two target nonblack creatures unless either one is a color the other isn't. They can't be regenerated.
|
||||
this.getSpellAbility().addEffect(new DeadRingersEffect());
|
||||
|
@ -65,10 +64,15 @@ class DeadRingersEffect extends DestroyTargetEffect {
|
|||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Target target = source.getTargets().get(0);
|
||||
Permanent first = game.getPermanentOrLKIBattlefield(target.getTargets().get(0));
|
||||
Permanent second = game.getPermanentOrLKIBattlefield(target.getTargets().get(1));
|
||||
if(first != null && second != null && first.getColor(game).equals(second.getColor(game))) {
|
||||
return super.apply(game, source);
|
||||
if (target != null
|
||||
&& target.getTargets().size() > 1) {
|
||||
Permanent first = game.getPermanentOrLKIBattlefield(target.getTargets().get(0));
|
||||
Permanent second = game.getPermanentOrLKIBattlefield(target.getTargets().get(1));
|
||||
if (first != null
|
||||
&& second != null
|
||||
&& first.getColor(game).equals(second.getColor(game))) {
|
||||
return super.apply(game, source);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue