mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Clean up
This commit is contained in:
@@ -15,7 +15,6 @@ import forge.card.MagicColor;
|
||||
import forge.card.mana.ManaAtom;
|
||||
import forge.game.Game;
|
||||
import forge.game.GameEntity;
|
||||
import forge.game.GameObject;
|
||||
import forge.game.ability.AbilityFactory;
|
||||
import forge.game.ability.effects.DetachedCardEffect;
|
||||
import forge.game.card.Card;
|
||||
@@ -862,9 +861,7 @@ public abstract class GameState {
|
||||
}
|
||||
|
||||
if (sa.hasParam("RememberTargets")) {
|
||||
for (final GameObject o : sa.getTargets()) {
|
||||
sa.getHostCard().addRemembered(o);
|
||||
}
|
||||
sa.getHostCard().addRemembered(sa.getTargets());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1245,6 +1245,8 @@ public class GameAction {
|
||||
c.updateAbilityTextForView(); // only update keywords and text for view to avoid flickering
|
||||
}
|
||||
|
||||
// TODO filter out old copies from zone change
|
||||
|
||||
if (runEvents && !affectedCards.isEmpty()) {
|
||||
game.fireEvent(new GameEventCardStatsChanged(affectedCards));
|
||||
}
|
||||
|
||||
@@ -503,7 +503,7 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
||||
if (game != null) {
|
||||
// update Type, color and keywords again if they have changed
|
||||
if (!changedCardTypes.isEmpty()) {
|
||||
currentState.getView().updateType(currentState);
|
||||
updateTypesForView();;
|
||||
}
|
||||
updateColorForView();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user