mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
- null check on Illusionary Terrain
This commit is contained in:
parent
2b4c7eba13
commit
e6896fcca8
1 changed files with 3 additions and 1 deletions
|
@ -217,7 +217,9 @@ class ChooseTwoBasicLandTypesEffect extends OneShotEffect {
|
|||
game.informPlayers(mageObject.getName() + ": Second chosen basic land type is " + choices.getChoice());
|
||||
game.getState().setValue(mageObject.getId().toString() + "secondChoice", choices.getChoice());
|
||||
choiceTwo = SubType.byDescription((String) game.getState().getValue(source.getSourceId().toString() + "secondChoice")).getDescription();
|
||||
if (mageObject instanceof Permanent) {
|
||||
if (mageObject instanceof Permanent
|
||||
&& choiceOne != null
|
||||
&& choiceTwo != null) {
|
||||
((Permanent) mageObject).addInfo("Chosen Types", CardUtil.addToolTipMarkTags("First chosen basic land type: " + choiceOne
|
||||
+ "\n Second chosen basic land type: " + choiceTwo), game);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue