Small functional improvement

This commit is contained in:
friarsol
2021-01-13 21:20:41 -05:00
parent 43229a0f27
commit c095651eaa

View File

@@ -76,7 +76,7 @@ public class PumpAi extends PumpAiBase {
} }
} else if (aiLogic.equals("SwitchPT")) { } else if (aiLogic.equals("SwitchPT")) {
// Some more AI would be even better, but this is a good start to prevent spamming // Some more AI would be even better, but this is a good start to prevent spamming
if (sa.isAbility() && sa.getActivationsThisTurn() > 0 && sa.getTargetRestrictions() == null) { if (sa.isAbility() && sa.getActivationsThisTurn() > 0 && !sa.usesTargeting()) {
// Will prevent flipping back and forth // Will prevent flipping back and forth
return false; return false;
} }