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,11 +1218,11 @@ 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) {
|
if (c.hasKeyword(Keyword.INFECT) && pow >= 2) {
|
||||||
// consider +2 power a significant bonus on Infect creatures
|
// consider +2 power a significant bonus on Infect creatures
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user