* AI: reworked computer choices for "target permanent" targets:

* Fixed that computer was able to target own permanents for bad effects and opponent permanents for good effect;
 * Improved target choices on card score (as example: boost most valuable, discard most weaker);
 * Tests: fixed false positive tests (AI depended);
 * Tests: fixed that test player can't find permanents for some filters/predicates;
This commit is contained in:
Oleg Agafonov 2019-12-20 20:20:16 +04:00
parent 813b258d4d
commit 8cce5a3648
4 changed files with 137 additions and 51 deletions

View file

@ -235,7 +235,7 @@ public class Battlefield implements Serializable {
/**
* Returns all {@link Permanent} on the battlefield that match the supplied
* filter. This method ignores the range of influence.
* filter. This method ignores the range of influence. It's ignore controllers preficate
*
* @param filter
* @param game