mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
- Fixed cleanup of phased out cards.
This commit is contained in:
@@ -372,7 +372,7 @@ public class PhaseHandler implements java.io.Serializable {
|
||||
|
||||
// Rule 514.2
|
||||
// Reset Damage received map
|
||||
for (final Card c : game.getCardsIn(ZoneType.Battlefield)) {
|
||||
for (final Card c : game.getCardsIncludePhasingIn(ZoneType.Battlefield)) {
|
||||
c.onCleanupPhase(playerTurn);
|
||||
}
|
||||
|
||||
|
||||
@@ -1411,7 +1411,7 @@ public class Player extends GameEntity implements Comparable<Player> {
|
||||
* the zone
|
||||
* @return a List<Card> with all the cards currently in requested zone
|
||||
*/
|
||||
public final List<Card> getCardsIn(final ZoneType zoneType, boolean includePhasedOut) {
|
||||
public final List<Card> getCardsIn(final ZoneType zoneType, boolean filterOutPhasedOut) {
|
||||
List<Card> result;
|
||||
if (zoneType == ZoneType.Stack) {
|
||||
result = new ArrayList<Card>();
|
||||
@@ -1422,7 +1422,7 @@ public class Player extends GameEntity implements Comparable<Player> {
|
||||
}
|
||||
} else {
|
||||
PlayerZone zone = this.getZone(zoneType);
|
||||
result = zone == null ? null : zone.getCards(includePhasedOut);
|
||||
result = zone == null ? null : zone.getCards(filterOutPhasedOut);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user