mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Better fix for granted abilities (more in line with drdevs changes).
- Also Fixed Border color of detail panel.
This commit is contained in:
@@ -766,9 +766,6 @@ public class GameAction {
|
||||
TrackableObject.unfreeze();
|
||||
|
||||
if (runEvents && !affectedCards.isEmpty()) {
|
||||
for (Card c : affectedCards) {
|
||||
c.updateKeywords();
|
||||
}
|
||||
game.fireEvent(new GameEventCardStatsChanged(affectedCards));
|
||||
}
|
||||
|
||||
|
||||
@@ -1034,6 +1034,7 @@ public class Card extends GameEntity implements Comparable<Card>, IIdentifiable
|
||||
CardColor.increaseTimestamp();
|
||||
}
|
||||
currentState.getCardColor().add(new CardColor(s, addToColors));
|
||||
currentState.getView().updateColors(this);
|
||||
return CardColor.getTimestamp();
|
||||
}
|
||||
|
||||
@@ -1047,11 +1048,13 @@ public class Card extends GameEntity implements Comparable<Card>, IIdentifiable
|
||||
|
||||
if (removeCol != null) {
|
||||
currentState.getCardColor().remove(removeCol);
|
||||
currentState.getView().updateColors(this);
|
||||
}
|
||||
}
|
||||
|
||||
public final void setColor(final Iterable<CardColor> colors) {
|
||||
currentState.setCardColor(colors);
|
||||
currentState.getView().updateColors(this);
|
||||
}
|
||||
|
||||
public final Iterable<CardColor> getColor() {
|
||||
@@ -1867,10 +1870,12 @@ public class Card extends GameEntity implements Comparable<Card>, IIdentifiable
|
||||
public final void addSpellAbility(final SpellAbility a) {
|
||||
a.setHostCard(this);
|
||||
currentState.addSpellAbility(a);
|
||||
currentState.getView().updateAbilityText(this, currentState);
|
||||
}
|
||||
|
||||
public final void removeSpellAbility(final SpellAbility a) {
|
||||
currentState.removeSpellAbility(a);
|
||||
currentState.getView().updateAbilityText(this, currentState);
|
||||
}
|
||||
|
||||
public final FCollectionView<SpellAbility> getSpellAbilities() {
|
||||
|
||||
@@ -873,9 +873,6 @@ public class PhaseHandler implements java.io.Serializable {
|
||||
} while (game.getStack().addAllTriggeredAbilitiesToStack()); //loop so long as something was added to stack
|
||||
|
||||
if (!allAffectedCards.isEmpty()) {
|
||||
for (Card c : allAffectedCards) {
|
||||
c.updateKeywords();
|
||||
}
|
||||
game.fireEvent(new GameEventCardStatsChanged(allAffectedCards));
|
||||
allAffectedCards.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user