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
|
||||
// the AI can misplay
|
||||
String[] validTgtsSa = sa.getTargetRestrictions().getValidTgts();
|
||||
String[] validTgtsAb = ab.getTargetRestrictions().getValidTgts();
|
||||
String[] validTgtsSa = tgtSa.getValidTgts();
|
||||
String[] validTgtsAb = tgtAb.getValidTgts();
|
||||
if (!Arrays.asList(validTgtsSa).containsAll(Arrays.asList(validTgtsAb))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user