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);
|
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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user