Fix so both sides of split card have text displayed when card not on stack

Fix so only the cast half of a split card has its mana cost displayed when it's on the stack
This commit is contained in:
drdev
2014-10-18 22:23:05 +00:00
parent b6a35d4993
commit 72d6b1ba97
3 changed files with 11 additions and 3 deletions

View File

@@ -520,6 +520,11 @@ public class CardView extends GameEntityView {
}
sb.append(state.getAbilityText());
if (state.getState() == CardStateName.LeftSplit && getZone() != ZoneType.Stack) {
//ensure ability text for right half of split card is included unless spell is on stack
sb.append("\r\n\r\n").append(getAlternateState().getAbilityText());
}
String nonAbilityText = get(TrackableProperty.NonAbilityText);
int blockAdditional = state.getBlockAdditional();
if (blockAdditional > 1) {