mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Move a test outside the loop where it makes more sense
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user