mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Code cleanup.
This commit is contained in:
@@ -1075,8 +1075,8 @@ public class DamageDealAi extends DamageAiBase {
|
|||||||
|
|
||||||
// Check that "ab" has a ValidTgts specification that includes everything "sa" includes, or
|
// Check that "ab" has a ValidTgts specification that includes everything "sa" includes, or
|
||||||
// the AI can misplay
|
// the AI can misplay
|
||||||
String[] validTgtsSa = sa.getTargetRestrictions().getValidTgts();
|
String[] validTgtsSa = tgtSa.getValidTgts();
|
||||||
String[] validTgtsAb = ab.getTargetRestrictions().getValidTgts();
|
String[] validTgtsAb = tgtAb.getValidTgts();
|
||||||
if (!Arrays.asList(validTgtsSa).containsAll(Arrays.asList(validTgtsAb))) {
|
if (!Arrays.asList(validTgtsSa).containsAll(Arrays.asList(validTgtsAb))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user