mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
* Deadbridge Chant - fixed a cause of NPE.
This commit is contained in:
parent
f27bb19d5c
commit
e7cb9d567d
1 changed files with 1 additions and 2 deletions
|
@ -98,7 +98,6 @@ class DeadbridgeChantEffect extends OneShotEffect<DeadbridgeChantEffect> {
|
|||
if (player != null && !player.getGraveyard().isEmpty()) {
|
||||
Card card = player.getGraveyard().getRandom(game);
|
||||
if (card != null) {
|
||||
Card sourceCard = game.getCard(source.getId());
|
||||
Zone targetZone = Zone.HAND;
|
||||
String text = " put into hand of ";
|
||||
if (card.getCardType().contains(CardType.CREATURE)) {
|
||||
|
@ -106,7 +105,7 @@ class DeadbridgeChantEffect extends OneShotEffect<DeadbridgeChantEffect> {
|
|||
text = " put onto battlefield for ";
|
||||
}
|
||||
card.moveToZone(targetZone, source.getId(), game, false);
|
||||
game.informPlayers(new StringBuilder(sourceCard.getName()).append(": ").append(card.getName()).append(text).append(player.getName()).toString());
|
||||
game.informPlayers(new StringBuilder("Deadbridge Chant: ").append(card.getName()).append(text).append(player.getName()).toString());
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue