mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Fixed AI predicting Battletide Alchemist wrongly.
This commit is contained in:
@@ -155,7 +155,7 @@ public enum ApiType {
|
||||
GenericChoice (ChooseGenericEffect.class, CannotPlayAi.class),
|
||||
LoseLife (LifeLoseEffect.class, LifeLoseAi.class),
|
||||
LosesGame (GameLossEffect.class, GameLossAi.class),
|
||||
Mana (ManaEffect.class, CannotPlayAi.class),
|
||||
Mana (ManaEffect.class, CanPlayAsDrawbackAi.class),
|
||||
ManaReflected (ManaReflectedEffect.class, CannotPlayAi.class),
|
||||
Mill (MillEffect.class, MillAi.class),
|
||||
MoveCounter (CountersMoveEffect.class, CountersMoveAi.class),
|
||||
|
||||
@@ -71,7 +71,8 @@ public class StaticAbilityPreventDamage {
|
||||
return restDamage;
|
||||
}
|
||||
|
||||
if (!isTest && params.containsKey("Optional")) { //Assume if param is present it should be optional
|
||||
if (params.containsKey("Optional")) { //Assume if param is present it should be optional
|
||||
if (!isTest) {
|
||||
final String logic = params.containsKey("AILogic") ? params.get("AILogic") : "";
|
||||
final String message = "Apply the effect of " + hostCard + "? (Affected: " + target + ")";
|
||||
boolean confirmed = hostCard.getController().getController().confirmStaticApplication(hostCard, target, logic, message);
|
||||
@@ -79,6 +80,11 @@ public class StaticAbilityPreventDamage {
|
||||
if (!confirmed) {
|
||||
return restDamage;
|
||||
}
|
||||
} else { //test
|
||||
if (!hostCard.getController().equals(target)) {
|
||||
return restDamage;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// no amount means all
|
||||
|
||||
Reference in New Issue
Block a user