Update code

This commit is contained in:
Anthony Calosa
2019-09-27 18:56:52 +08:00
parent 8ee9d3ff13
commit 454e0e2c48

View File

@@ -5463,17 +5463,12 @@ public class Card extends GameEntity implements Comparable<Card> {
public String getKeywordKey() { public String getKeywordKey() {
String sorted = ""; String sorted = "";
List<String> ability = new ArrayList<>(); List<String> ability = new ArrayList<>();
ability.clear();
for (final KeywordInterface inst : getKeywords()) { for (final KeywordInterface inst : getKeywords()) {
String kw = inst.getOriginal(); String kw = inst.getOriginal();
ability.add(kw); ability.add(kw);
} }
if (ability != null) { Collections.sort(ability);
Collections.sort(ability); sorted = String.join(",", ability);
for (final String s : ability){
sorted += s + ",";
}
}
return sorted; return sorted;
} }
public Zone getZone() { public Zone getZone() {