- Move a test outside the loop where it makes more sense

This commit is contained in:
Agetian
2019-09-02 10:28:50 +03:00
parent bbdc3c182f
commit a7ee697d0f

View File

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