mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18: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)) {
|
if (isUsefulAttachKeyword(keyword, c, sa, pow)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (c.hasKeyword(Keyword.INFECT) && pow >= 2) {
|
}
|
||||||
// consider +2 power a significant bonus on Infect creatures
|
if (c.hasKeyword(Keyword.INFECT) && pow >= 2) {
|
||||||
return true;
|
// consider +2 power a significant bonus on Infect creatures
|
||||||
}
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user