* Fixed that Morph put face up ability was shown twice in the tooltip rule text (fixes #6663).

This commit is contained in:
LevelX2 2020-06-26 12:22:35 +02:00
parent 50c46e39a3
commit 99a651876a

View file

@ -95,10 +95,9 @@ public class PermanentView extends CardView {
if (controlled) {
// must be a morphed or manifested card
for (Ability permanentAbility : permanent.getAbilities()) {
if (permanentAbility instanceof TurnFaceUpAbility && !permanentAbility.getRuleVisible()) {
this.rules.add(permanentAbility.getRule(true));
}
if (permanentAbility.getWorksFaceDown()) {
this.rules.add(permanentAbility.getRule(true));
} else if (permanentAbility instanceof TurnFaceUpAbility && !permanentAbility.getRuleVisible()) {
this.rules.add(permanentAbility.getRule());
}
}