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
e3728df6
Commit
e3728df6
authored
Apr 26, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Rank5 NeedLV5
parent
80710541
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
Game/AI/Decks/Rank5Executor.cs
Game/AI/Decks/Rank5Executor.cs
+5
-3
No files found.
Game/AI/Decks/Rank5Executor.cs
View file @
e3728df6
...
@@ -181,6 +181,8 @@ namespace WindBot.Game.AI.Decks
...
@@ -181,6 +181,8 @@ namespace WindBot.Game.AI.Decks
{
{
if
(
HaveOtherLV5OnField
())
if
(
HaveOtherLV5OnField
())
return
true
;
return
true
;
if
(
Util
.
GetBotAvailZonesFromExtraDeck
()
==
0
)
return
false
;
int
lv5Count
=
0
;
int
lv5Count
=
0
;
foreach
(
ClientCard
card
in
Bot
.
Hand
)
foreach
(
ClientCard
card
in
Bot
.
Hand
)
{
{
...
@@ -216,11 +218,10 @@ namespace WindBot.Game.AI.Decks
...
@@ -216,11 +218,10 @@ namespace WindBot.Game.AI.Decks
return
false
;
return
false
;
if
(
Bot
.
HasInHand
(
new
[]
if
(
Bot
.
HasInHand
(
new
[]
{
{
CardId
.
MistArchfiend
,
CardId
.
WindUpSoldier
,
CardId
.
WindUpSoldier
,
CardId
.
StarDrawing
,
CardId
.
StarDrawing
,
CardId
.
ChronomalyGoldenJet
CardId
.
ChronomalyGoldenJet
}))
})
||
(
Bot
.
HasInHand
(
CardId
.
MistArchfiend
)
&&
NeedLV5
())
)
{
{
NormalSummoned
=
false
;
NormalSummoned
=
false
;
DoubleSummonUsed
=
true
;
DoubleSummonUsed
=
true
;
...
@@ -384,9 +385,10 @@ namespace WindBot.Game.AI.Decks
...
@@ -384,9 +385,10 @@ namespace WindBot.Game.AI.Decks
{
{
if
(
monster
.
HasType
(
CardType
.
Monster
)
&&
if
(
monster
.
HasType
(
CardType
.
Monster
)
&&
!
monster
.
HasType
(
CardType
.
Xyz
)
&&
!
monster
.
HasType
(
CardType
.
Xyz
)
&&
Util
.
GetBotAvailZonesFromExtraDeck
(
monster
)
>
0
&&
(
monster
.
Level
==
5
(
monster
.
Level
==
5
||
monster
.
IsCode
(
CardId
.
StarDrawing
)
||
monster
.
IsCode
(
CardId
.
StarDrawing
)
||
(
monster
.
IsCode
(
CardId
.
WindUpSoldier
)
)
&&
!
monster
.
Equals
(
Card
)))
||
monster
.
IsCode
(
CardId
.
WindUpSoldier
)
&&
!
monster
.
Equals
(
Card
)))
return
true
;
return
true
;
}
}
return
false
;
return
false
;
...
...
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