mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Fixed possible null pointer exception.
This commit is contained in:
parent
6a973f1f7b
commit
7750bc2cd9
1 changed files with 5 additions and 5 deletions
|
@ -689,7 +689,7 @@ public class HumanPlayer extends PlayerImpl {
|
||||||
result = true;
|
result = true;
|
||||||
} else {
|
} else {
|
||||||
Player actingPlayer = null;
|
Player actingPlayer = null;
|
||||||
if (game.getPriorityPlayerId().equals(playerId)) {
|
if (playerId.equals(game.getPriorityPlayerId())) {
|
||||||
actingPlayer = this;
|
actingPlayer = this;
|
||||||
} else if (getPlayersUnderYourControl().contains(game.getPriorityPlayerId())) {
|
} else if (getPlayersUnderYourControl().contains(game.getPriorityPlayerId())) {
|
||||||
actingPlayer = game.getPlayer(game.getPriorityPlayerId());
|
actingPlayer = game.getPlayer(game.getPriorityPlayerId());
|
||||||
|
@ -1241,7 +1241,7 @@ public class HumanPlayer extends PlayerImpl {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (userData.isUseFirstManaAbility() && object instanceof Permanent && object.getCardType().contains(CardType.LAND)){
|
if (userData.isUseFirstManaAbility() && object instanceof Permanent && object.getCardType().contains(CardType.LAND)) {
|
||||||
ActivatedAbility ability = abilities.values().iterator().next();
|
ActivatedAbility ability = abilities.values().iterator().next();
|
||||||
if (ability instanceof ManaAbility) {
|
if (ability instanceof ManaAbility) {
|
||||||
activateAbility(ability, game);
|
activateAbility(ability, game);
|
||||||
|
|
Loading…
Reference in a new issue