Skip to content

Commit

Permalink
Fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
tool4EvEr authored and tool4EvEr committed Oct 14, 2023
1 parent 97e84c9 commit 7e62540
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion forge-game/src/main/java/forge/game/GameAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,7 @@ private boolean stateBasedAction_Role(Card c, CardCollection removeList) {
continue;
}
// sort by game timestamp
rolesByPlayer.sort(CardPredicates.compareByTimestamp());
rolesByPlayer.sort(CardPredicates.compareByGameTimestamp());
removeList.addAll(rolesByPlayer.subList(0, rolesByPlayer.size() - 1));
checkAgain = true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void resolve(SpellAbility sa) {
card.addRemembered(tgtC);
}
if (sa.hasParam("TapperController")) {
tapper = c.getController();
tapper = tgtC.getController();
}
tgtC.tap(true, sa, tapper);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void resolve(SpellAbility sa) {
}
// If the effected card is controlled by the same controller of the SA, default to untap.
boolean tap = pc.chooseBinary(sa, Localizer.getInstance().getMessage("lblTapOrUntapTarget", CardTranslation.getTranslatedName(gameCard.getName())), PlayerController.BinaryChoiceType.TapOrUntap,
!gameCard.getController().equals(sa.getActivatingPlayer()));
!gameCard.getController().equals(activator));

if (tap) {
Player tapper = activator;
Expand Down
1 change: 0 additions & 1 deletion forge-game/src/main/java/forge/game/card/CardProperty.java
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,6 @@ else if (prop.isEmpty() && dmgSource.equalsWithGameTimestamp(source)) {
} else if (property.startsWith("Damaged")) {
boolean found = false;
for (Pair<Integer, Boolean> p : source.getDamageReceivedThisTurn()) {
boolean found = false;
if (game.getDamageLKI(p).getLeft().equalsWithGameTimestamp(card)) {
found = true;
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ protected List<Card> addTokens(String name, int amount, Player p) {
protected Card addToken(String name, Player p) {
Card c = createToken(name, p);
// card need a new Timestamp otherwise Static Abilities might collide
c.setTimestamp(p.getGame().getNextTimestamp());
c.setGameTimestamp(p.getGame().getNextTimestamp());
p.getZone(ZoneType.Battlefield).add(c);
return c;
}
Expand Down

0 comments on commit 7e62540

Please sign in to comment.