mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Fix New Blood not fully working
This commit is contained in:
@@ -70,7 +70,7 @@ public class ChangeTextEffect extends SpellAbilityEffect {
|
||||
kindOfType = "basic land";
|
||||
} else if (changedTypeWordsArray[0].equals("ChooseCreatureType")) {
|
||||
validTypes.addAll(CardType.Constant.CREATURE_TYPES);
|
||||
kindOfType = "creature";
|
||||
kindOfType = "Creature";
|
||||
}
|
||||
changedTypeWordOriginal = sa.getActivatingPlayer().getController().chooseSomeType(kindOfType, sa, validTypes, Lists.newArrayList());
|
||||
} else {
|
||||
@@ -86,7 +86,7 @@ public class ChangeTextEffect extends SpellAbilityEffect {
|
||||
kindOfType = "basic land";
|
||||
} else if (changedTypeWordsArray[1].equals("ChooseCreatureType")) {
|
||||
validTypes.addAll(CardType.Constant.CREATURE_TYPES);
|
||||
kindOfType = "creature";
|
||||
kindOfType = "Creature";
|
||||
}
|
||||
changedTypeWordNew = sa.getActivatingPlayer().getController().chooseSomeType(kindOfType, sa, validTypes, forbiddenTypes);
|
||||
} else {
|
||||
@@ -123,6 +123,8 @@ public class ChangeTextEffect extends SpellAbilityEffect {
|
||||
}
|
||||
|
||||
game.fireEvent(new GameEventCardStatsChanged(c));
|
||||
c.updateStateForView();
|
||||
c.updateTypesForView();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3533,7 +3533,7 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
||||
return getType(currentState);
|
||||
}
|
||||
public final CardTypeView getType(CardState state) {
|
||||
if (changedCardTypes.isEmpty() && changedCardTypesCharacterDefining.isEmpty()) {
|
||||
if (changedCardTypes.isEmpty() && changedCardTypesCharacterDefining.isEmpty() && changedTypeByText == null) {
|
||||
return state.getType();
|
||||
}
|
||||
// CR 506.4 attacked planeswalkers leave combat
|
||||
@@ -3548,14 +3548,12 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
||||
public final CardTypeView getOriginalType() {
|
||||
return getOriginalType(currentState);
|
||||
}
|
||||
|
||||
public final CardTypeView getOriginalType(CardState state) {
|
||||
return state.getType();
|
||||
}
|
||||
|
||||
// TODO add changed type by card text
|
||||
public Iterable<CardChangedType> getChangedCardTypes() {
|
||||
|
||||
Iterable<CardChangedType> byText = changedTypeByText == null ? ImmutableList.of() : ImmutableList.of(this.changedTypeByText);
|
||||
|
||||
return Iterables.unmodifiableIterable(Iterables.concat(
|
||||
|
||||
Reference in New Issue
Block a user