mirror of
https://github.com/correl/mage.git
synced 2025-03-16 17:00:13 -09: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
|
@Override
|
||||||
public boolean checkTrigger(GameEvent event, Game game) {
|
public boolean checkTrigger(GameEvent event, Game game) {
|
||||||
Permanent permanent = game.getPermanent(event.getTargetId());
|
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")) {
|
if (permanent.hasSubtype("Mountain")) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue