Restore accidentally removed null check in text changes.

This commit is contained in:
elcnesh
2014-08-12 19:52:20 +00:00
parent 331016cef7
commit 0f5697d1fa

View File

@@ -98,8 +98,12 @@ public class ChangeTextEffect extends SpellAbilityEffect {
final List<Card> tgts = getTargetCards(sa); final List<Card> tgts = getTargetCards(sa);
for (final Card c : tgts) { for (final Card c : tgts) {
c.addChangedTextColorWord(changedColorWordOriginal, changedColorWordNew, timestamp); if (changedColorWordOriginal != null && changedColorWordNew != null) {
c.addChangedTextTypeWord(changedTypeWordOriginal, changedTypeWordNew, timestamp); c.addChangedTextColorWord(changedColorWordOriginal, changedColorWordNew, timestamp);
}
if (changedTypeWordOriginal != null && changedTypeWordNew != null ) {
c.addChangedTextTypeWord(changedTypeWordOriginal, changedTypeWordNew, timestamp);
}
if (!permanent) { if (!permanent) {
final GameCommand revert = new GameCommand() { final GameCommand revert = new GameCommand() {