- Fixed a possible NPE in changeHiddenOriginCanPlayAI.

This commit is contained in:
Sloth
2011-10-14 21:00:57 +00:00
parent 017d2cfd9c
commit ba1e8f196a

View File

@@ -326,7 +326,8 @@ public final class AbilityFactory_ChangeZone {
// prevent run-away activations - first time will always return true // prevent run-away activations - first time will always return true
boolean chance = r.nextFloat() <= Math.pow(.6667, sa.getActivationsThisTurn()); boolean chance = r.nextFloat() <= Math.pow(.6667, sa.getActivationsThisTurn());
ArrayList<Player> pDefined; ArrayList<Player> pDefined = new ArrayList<Player>();
pDefined.add(source.getController());
Target tgt = af.getAbTgt(); Target tgt = af.getAbTgt();
if (tgt != null && tgt.canTgtPlayer()) { if (tgt != null && tgt.canTgtPlayer()) {
if (af.isCurse()) { if (af.isCurse()) {