From a7ee697d0f3c6cdd6af0f765d48c9e856a63e346 Mon Sep 17 00:00:00 2001 From: Agetian Date: Mon, 2 Sep 2019 10:28:50 +0300 Subject: [PATCH] - Move a test outside the loop where it makes more sense --- forge-ai/src/main/java/forge/ai/ability/AttachAi.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/forge-ai/src/main/java/forge/ai/ability/AttachAi.java b/forge-ai/src/main/java/forge/ai/ability/AttachAi.java index ae728a26dc7..91041b9767a 100644 --- a/forge-ai/src/main/java/forge/ai/ability/AttachAi.java +++ b/forge-ai/src/main/java/forge/ai/ability/AttachAi.java @@ -1218,10 +1218,10 @@ public class AttachAi extends SpellAbilityAi { if (isUsefulAttachKeyword(keyword, c, sa, pow)) { return true; } - if (c.hasKeyword(Keyword.INFECT) && pow >= 2) { - // consider +2 power a significant bonus on Infect creatures - return true; - } + } + if (c.hasKeyword(Keyword.INFECT) && pow >= 2) { + // consider +2 power a significant bonus on Infect creatures + return true; } return false; }