NullPointerException fix

This commit is contained in:
Zzooouhh 2017-12-07 01:01:52 +01:00 committed by GitHub
parent 1955dc6d18
commit d6a08fbdd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -578,6 +578,9 @@ public class Combat implements Serializable, Copyable<Combat> {
* @param game
*/
private void retrieveMustBlockAttackerRequirements(Player attackingPlayer, Game game) {
if (attackingPlayer == null) {
return;
}
if (!game.getContinuousEffects().existRequirementEffects()) {
return;
}