mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Fix so cards like Courser of Kruphix allow viewing the top card or your library
This commit is contained in:
@@ -2970,10 +2970,15 @@ public class Card extends GameEntity implements Comparable<Card>, IIdentifiable
|
||||
public void removeAllExtrinsicKeyword(final String s) {
|
||||
final ArrayList<String> strings = new ArrayList<String>();
|
||||
strings.add(s);
|
||||
boolean needKeywordUpdate = false;
|
||||
if (hiddenExtrinsicKeyword.removeAll(strings)) {
|
||||
view.updateNonAbilityText(this);
|
||||
needKeywordUpdate = true;
|
||||
}
|
||||
if (extrinsicKeyword.removeAll(strings)) {
|
||||
needKeywordUpdate = true;
|
||||
}
|
||||
if (needKeywordUpdate) {
|
||||
currentState.getView().updateKeywords(this, currentState);
|
||||
}
|
||||
}
|
||||
@@ -3002,12 +3007,14 @@ public class Card extends GameEntity implements Comparable<Card>, IIdentifiable
|
||||
public final void addHiddenExtrinsicKeyword(final String s) {
|
||||
if (hiddenExtrinsicKeyword.add(s)) {
|
||||
view.updateNonAbilityText(this);
|
||||
currentState.getView().updateKeywords(this, currentState);
|
||||
}
|
||||
}
|
||||
|
||||
public final void removeHiddenExtrinsicKeyword(final String s) {
|
||||
if (hiddenExtrinsicKeyword.remove(s)) {
|
||||
view.updateNonAbilityText(this);
|
||||
currentState.getView().updateKeywords(this, currentState);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user