*Hopefully fixed replacement effects getting stuck as "currently running" and thus never being run again.

This commit is contained in:
Hellfish
2012-05-29 18:53:20 +00:00
parent 738aba9e87
commit acedd6ea74

View File

@@ -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;
} }
} }