mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Fix Effect Logic
Both players must not be null in order for the hand size check to succeed
This commit is contained in:
parent
a6c5e83c51
commit
412c395494
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ class BalanceOfPowerEffect extends OneShotEffect {
|
|||
Player player = game.getPlayer(source.getControllerId());
|
||||
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);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue