Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
Forge
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Walter Adolph
Forge
Commits
e94cc348
Commit
e94cc348
authored
Jul 27, 2019
by
magicalblender
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When adding cards to library, insert "closest to top" card last
parent
0826f0c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
forge-game/src/main/java/forge/game/ability/effects/ChangeZoneAllEffect.java
.../java/forge/game/ability/effects/ChangeZoneAllEffect.java
+3
-0
No files found.
forge-game/src/main/java/forge/game/ability/effects/ChangeZoneAllEffect.java
View file @
e94cc348
...
...
@@ -134,6 +134,9 @@ public class ChangeZoneAllEffect extends SpellAbilityEffect {
&&
!
sa
.
hasParam
(
"Shuffle"
)
&&
cards
.
size
()
>=
2
&&
!
random
)
{
Player
p
=
AbilityUtils
.
getDefinedPlayers
(
source
,
sa
.
getParamOrDefault
(
"DefinedPlayer"
,
"You"
),
sa
).
get
(
0
);
cards
=
(
CardCollection
)
p
.
getController
().
orderMoveToZoneList
(
cards
,
destination
);
//the last card in this list will be the closest to the top, but we want the first card to be closest.
//so reverse it here before moving them to the library.
java
.
util
.
Collections
.
reverse
(
cards
);
}
if
(
destination
==
ZoneType
.
Graveyard
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment