mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
*Hopefully fixed replacement effects getting stuck as "currently running" and thus never being run again.
This commit is contained in:
@@ -157,11 +157,13 @@ public class ReplacementHandler {
|
|||||||
buildQuestion.append(replacementEffect.toString());
|
buildQuestion.append(replacementEffect.toString());
|
||||||
buildQuestion.append(")");
|
buildQuestion.append(")");
|
||||||
if (!GameActionUtil.showYesNoDialog(replacementEffect.getHostCard(), buildQuestion.toString())) {
|
if (!GameActionUtil.showYesNoDialog(replacementEffect.getHostCard(), buildQuestion.toString())) {
|
||||||
|
replacementEffect.setHasRun(false);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// AI-logic
|
// AI-logic
|
||||||
if (!replacementEffect.aiShouldRun(effectSA)) {
|
if (!replacementEffect.aiShouldRun(effectSA)) {
|
||||||
|
replacementEffect.setHasRun(false);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user