mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
Restore accidentally removed null check in text changes.
This commit is contained in:
@@ -98,8 +98,12 @@ public class ChangeTextEffect extends SpellAbilityEffect {
|
||||
|
||||
final List<Card> tgts = getTargetCards(sa);
|
||||
for (final Card c : tgts) {
|
||||
if (changedColorWordOriginal != null && changedColorWordNew != null) {
|
||||
c.addChangedTextColorWord(changedColorWordOriginal, changedColorWordNew, timestamp);
|
||||
}
|
||||
if (changedTypeWordOriginal != null && changedTypeWordNew != null ) {
|
||||
c.addChangedTextTypeWord(changedTypeWordOriginal, changedTypeWordNew, timestamp);
|
||||
}
|
||||
|
||||
if (!permanent) {
|
||||
final GameCommand revert = new GameCommand() {
|
||||
|
||||
Reference in New Issue
Block a user