mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Small functional improvement
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user