Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
windbot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
alstroemeria-silentlove
windbot
Commits
d8236839
Commit
d8236839
authored
Feb 19, 2019
by
Wind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Arbitrary Pick update
parent
8667065b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
Game/AI/Decks/PickExecutor.cs
Game/AI/Decks/PickExecutor.cs
+11
-13
No files found.
Game/AI/Decks/PickExecutor.cs
View file @
d8236839
...
...
@@ -25,25 +25,23 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
SpellSet
);
}
IList
<
ClientCard
>
lastpick
=
new
List
<
ClientCard
>();
IList
<
ClientCard
>
picked
=
new
List
<
ClientCard
>();
public
override
IList
<
ClientCard
>
OnSelectCard
(
IList
<
ClientCard
>
cards
,
int
min
,
int
max
,
int
hint
,
bool
cancelable
)
{
if
(
hint
==
507
)
if
(
hint
==
507
&&
Duel
.
Turn
==
1
)
{
Logger
.
DebugWriteLine
(
"Call SelectCard with hint 507"
);
if
(
ca
rds
.
Count
==
4
)
if
(
ca
ncelable
)
{
if
(
lastpick
.
Count
==
0
)
{
lastpick
=
cards
;
}
else
{
IList
<
ClientCard
>
now_select
=
lastpick
;
lastpick
.
Clear
();
return
now_select
;
}
IList
<
ClientCard
>
submit
=
picked
;
picked
.
Clear
();
return
submit
;
}
ClientCard
thispick
=
cards
[
Program
.
Rand
.
Next
(
cards
.
Count
)];
IList
<
ClientCard
>
group
=
new
List
<
ClientCard
>();
group
.
Add
(
thispick
);
picked
.
Add
(
thispick
);
return
group
;
}
if
(
Duel
.
Phase
==
DuelPhase
.
BattleStart
)
return
null
;
...
...
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