Fix Effect Logic

Both players must not be null in order for the hand size check to
succeed
This commit is contained in:
Kenny Wottrich 2016-04-23 19:31:36 -05:00
parent a6c5e83c51
commit 412c395494

View file

@ -85,7 +85,7 @@ class BalanceOfPowerEffect extends OneShotEffect {
Player player = game.getPlayer(source.getControllerId()); Player player = game.getPlayer(source.getControllerId());
Player opponent = game.getPlayer(source.getFirstTarget()); Player opponent = game.getPlayer(source.getFirstTarget());
if (opponent != null || player != null && opponent.getHand().size() > player.getHand().size()) { if (opponent != null && player != null && opponent.getHand().size() > player.getHand().size()) {
player.drawCards(opponent.getHand().size() - player.getHand().size(), game); player.drawCards(opponent.getHand().size() - player.getHand().size(), game);
return true; return true;
} }