- Attempt to fix the AI never playing Fight with Fire, kicked or unkicked.

This commit is contained in:
Agetian
2018-11-03 11:01:15 +03:00
parent faa49ccf70
commit 0f72f0db8a
2 changed files with 5 additions and 3 deletions

View File

@@ -494,7 +494,9 @@ public class DamageDealAi extends DamageAiBase {
return true;
}
if (tgt.getMaxTargets(source, sa) <= 0) {
// AssumeAtLeastOneTarget is used for cards with funky targeting implementation like Fight with Fire which would
// otherwise confuse the AI by returning 0 unexpectedly during SA "AI can play" tests.
if (tgt.getMaxTargets(source, sa) <= 0 && !logic.equals("AssumeAtLeastOneTarget")) {
return false;
}