mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +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),
|
GenericChoice (ChooseGenericEffect.class, CannotPlayAi.class),
|
||||||
LoseLife (LifeLoseEffect.class, LifeLoseAi.class),
|
LoseLife (LifeLoseEffect.class, LifeLoseAi.class),
|
||||||
LosesGame (GameLossEffect.class, GameLossAi.class),
|
LosesGame (GameLossEffect.class, GameLossAi.class),
|
||||||
Mana (ManaEffect.class, CannotPlayAi.class),
|
Mana (ManaEffect.class, CanPlayAsDrawbackAi.class),
|
||||||
ManaReflected (ManaReflectedEffect.class, CannotPlayAi.class),
|
ManaReflected (ManaReflectedEffect.class, CannotPlayAi.class),
|
||||||
Mill (MillEffect.class, MillAi.class),
|
Mill (MillEffect.class, MillAi.class),
|
||||||
MoveCounter (CountersMoveEffect.class, CountersMoveAi.class),
|
MoveCounter (CountersMoveEffect.class, CountersMoveAi.class),
|
||||||
|
|||||||
@@ -71,13 +71,19 @@ public class StaticAbilityPreventDamage {
|
|||||||
return restDamage;
|
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
|
||||||
final String logic = params.containsKey("AILogic") ? params.get("AILogic") : "";
|
if (!isTest) {
|
||||||
final String message = "Apply the effect of " + hostCard + "? (Affected: " + target + ")";
|
final String logic = params.containsKey("AILogic") ? params.get("AILogic") : "";
|
||||||
boolean confirmed = hostCard.getController().getController().confirmStaticApplication(hostCard, target, logic, message);
|
final String message = "Apply the effect of " + hostCard + "? (Affected: " + target + ")";
|
||||||
|
boolean confirmed = hostCard.getController().getController().confirmStaticApplication(hostCard, target, logic, message);
|
||||||
|
|
||||||
if (!confirmed) {
|
if (!confirmed) {
|
||||||
return restDamage;
|
return restDamage;
|
||||||
|
}
|
||||||
|
} else { //test
|
||||||
|
if (!hostCard.getController().equals(target)) {
|
||||||
|
return restDamage;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user