mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
- null pointer Nahin, The Harbinger.
This commit is contained in:
parent
d07415e08c
commit
3b1a9388ac
1 changed files with 15 additions and 14 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
package mage.cards.n;
|
package mage.cards.n;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
@ -55,7 +54,7 @@ public final class NahiriTheHarbinger extends CardImpl {
|
||||||
}
|
}
|
||||||
|
|
||||||
public NahiriTheHarbinger(UUID ownerId, CardSetInfo setInfo) {
|
public NahiriTheHarbinger(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.PLANESWALKER},"{2}{R}{W}");
|
super(ownerId, setInfo, new CardType[]{CardType.PLANESWALKER}, "{2}{R}{W}");
|
||||||
this.addSuperType(SuperType.LEGENDARY);
|
this.addSuperType(SuperType.LEGENDARY);
|
||||||
this.subtype.add(SubType.NAHIRI);
|
this.subtype.add(SubType.NAHIRI);
|
||||||
|
|
||||||
|
@ -114,6 +113,7 @@ class NahiriTheHarbingerEffect extends SearchEffect {
|
||||||
if (controller.searchLibrary(target, game)) {
|
if (controller.searchLibrary(target, game)) {
|
||||||
if (!target.getTargets().isEmpty()) {
|
if (!target.getTargets().isEmpty()) {
|
||||||
Card card = controller.getLibrary().getCard(target.getFirstTarget(), game);
|
Card card = controller.getLibrary().getCard(target.getFirstTarget(), game);
|
||||||
|
if (card != null) {
|
||||||
controller.moveCards(card, Zone.BATTLEFIELD, source, game);
|
controller.moveCards(card, Zone.BATTLEFIELD, source, game);
|
||||||
Permanent permanent = game.getPermanent(card.getId());
|
Permanent permanent = game.getPermanent(card.getId());
|
||||||
if (permanent != null) {
|
if (permanent != null) {
|
||||||
|
@ -126,6 +126,7 @@ class NahiriTheHarbingerEffect extends SearchEffect {
|
||||||
game.addDelayedTriggeredAbility(delayedAbility, source);
|
game.addDelayedTriggeredAbility(delayedAbility, source);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
controller.shuffleLibrary(source, game);
|
controller.shuffleLibrary(source, game);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue