- Little safety fix for removeAllExtrinsicKeyword.

This commit is contained in:
Sloth
2013-04-24 14:09:19 +00:00
parent 0b4e1757de
commit 1c9a2da3a6

View File

@@ -4457,12 +4457,9 @@ public class Card extends GameEntity implements Comparable<Card> {
public void removeAllExtrinsicKeyword(final String s) { public void removeAllExtrinsicKeyword(final String s) {
final ArrayList<String> strings = new ArrayList<String>(); final ArrayList<String> strings = new ArrayList<String>();
strings.add(s); strings.add(s);
if (s.startsWith("HIDDEN")) {
this.hiddenExtrinsicKeyword.removeAll(strings); this.hiddenExtrinsicKeyword.removeAll(strings);
} else {
this.extrinsicKeyword.removeAll(strings); this.extrinsicKeyword.removeAll(strings);
} }
}
// Hidden Keywords will be returned without the indicator HIDDEN // Hidden Keywords will be returned without the indicator HIDDEN