mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* Valakut, the Molten Pinnacle - Fixed possible null pointer exception.
This commit is contained in:
parent
92f384364a
commit
b8f0c38101
1 changed files with 6 additions and 6 deletions
|
@ -106,7 +106,7 @@ class ValakutTheMoltenPinnacleTriggeredAbility extends TriggeredAbilityImpl {
|
|||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
Permanent permanent = game.getPermanent(event.getTargetId());
|
||||
if (permanent.getCardType().contains(CardType.LAND) && permanent.getControllerId().equals(this.getControllerId())) {
|
||||
if (permanent != null && permanent.getCardType().contains(CardType.LAND) && permanent.getControllerId().equals(this.getControllerId())) {
|
||||
if (permanent.hasSubtype("Mountain")) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue