mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
[minor] Fixed npe check of Ensnaring Bridge.
This commit is contained in:
parent
a3411f2486
commit
b600b03e65
1 changed files with 4 additions and 6 deletions
|
@ -100,13 +100,11 @@ class EnsnaringBridgeEffect extends ReplacementEffectImpl<EnsnaringBridgeEffect>
|
|||
Permanent permanent = game.getPermanent(event.getSourceId());
|
||||
if (permanent != null) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
if (player.getInRange().contains(permanent.getControllerId())) {
|
||||
if (player != null && player.getInRange().contains(permanent.getControllerId())) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if(player != null){
|
||||
int cardInHand = controller.getHand().size();
|
||||
if (permanent.getPower().getValue() > cardInHand){
|
||||
return true;
|
||||
}
|
||||
int cardInHand = controller.getHand().size();
|
||||
if (permanent.getPower().getValue() > cardInHand){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue