- A NPE guard in the experimental pump code.

This commit is contained in:
Agetian
2017-09-04 09:59:07 +00:00
parent 86c5ef363e
commit bbc3a75e4a

View File

@@ -1240,7 +1240,8 @@ public class ComputerUtilCard {
// First Strike, or Double Strike, otherwise the AI is unlikely to cast it or it's too late to // First Strike, or Double Strike, otherwise the AI is unlikely to cast it or it's too late to
// cast it during Declare Blockers, thus ruining its attacker // cast it during Declare Blockers, thus ruining its attacker
if (holdCombatTricks && sa.getApi() == ApiType.Pump if (holdCombatTricks && sa.getApi() == ApiType.Pump
&& sa.hasParam("NumAtt") && sa.getHostCard() != null && sa.getHostCard().getZone().is(ZoneType.Hand)) { && sa.hasParam("NumAtt") && sa.getHostCard() != null
&& sa.getHostCard().getZone() != null && sa.getHostCard().getZone().is(ZoneType.Hand)) {
combatTrick = true; combatTrick = true;
final List<String> kws = sa.hasParam("KW") ? Arrays.asList(sa.getParam("KW").split(" & ")) final List<String> kws = sa.hasParam("KW") ? Arrays.asList(sa.getParam("KW").split(" & "))