AI, combat: fixed that computer blocking an attacker by biggest creature instead optimal;

refactor: fixed that Defiant Vanguard depends on debug data;
This commit is contained in:
Oleg Agafonov 2024-12-25 18:23:43 +04:00
parent 138788659a
commit f4572faf8b
5 changed files with 48 additions and 30 deletions

View file

@ -21,7 +21,7 @@ import mage.constants.*;
import mage.counters.Counter;
import mage.counters.CounterType;
import mage.counters.Counters;
import mage.filter.*;
import mage.filter.FilterOpponent;
import mage.game.Game;
import mage.game.GameState;
import mage.game.ZoneChangeInfo;
@ -210,8 +210,11 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
+ ", " + getBasicMageObject().getClass().getSimpleName()
+ ", " + imageInfo
+ ", " + this.getPower() + "/" + this.getToughness()
+ (this.getDamage() > 0 ? ", damage " + this.getDamage() : "")
+ (this.isCopy() ? ", copy" : "")
+ (this.isTapped() ? ", tapped" : "");
+ (this.isTapped() ? ", tapped" : "")
+ (this.isAttacking() ? ", attacking" : "")
+ (this.getBlocking() > 0 ? ", blocking" : "");
}
@Override