Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
Windbot-408
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
神之吹息
Windbot-408
Commits
0ef27ba1
Commit
0ef27ba1
authored
Apr 26, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix CanDealWithUsedAlternativeWhiteDragon
parent
3b9984e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
Game/AI/Decks/BlueEyesExecutor.cs
Game/AI/Decks/BlueEyesExecutor.cs
+9
-13
No files found.
Game/AI/Decks/BlueEyesExecutor.cs
View file @
0ef27ba1
...
@@ -266,7 +266,15 @@ namespace WindBot.Game.AI.Decks
...
@@ -266,7 +266,15 @@ namespace WindBot.Game.AI.Decks
UsedAlternativeWhiteDragon
.
Add
(
Card
);
UsedAlternativeWhiteDragon
.
Add
(
Card
);
return
true
;
return
true
;
}
}
if
(
CanDealWithUsedAlternativeWhiteDragon
())
if
(
Util
.
GetBotAvailZonesFromExtraDeck
(
Card
)
>
0
&&
(
Bot
.
HasInMonstersZone
(
new
[]
{
CardId
.
SageWithEyesOfBlue
,
CardId
.
WhiteStoneOfAncients
,
CardId
.
WhiteStoneOfLegend
,
CardId
.
WhiteDragon
,
CardId
.
DragonSpiritOfWhite
})
||
Bot
.
GetCountCardInZone
(
Bot
.
MonsterZone
,
CardId
.
AlternativeWhiteDragon
)
>=
2
))
{
{
target
=
Util
.
GetBestEnemyMonster
(
false
,
true
);
target
=
Util
.
GetBestEnemyMonster
(
false
,
true
);
AI
.
SelectCard
(
target
);
AI
.
SelectCard
(
target
);
...
@@ -887,18 +895,6 @@ namespace WindBot.Game.AI.Decks
...
@@ -887,18 +895,6 @@ namespace WindBot.Game.AI.Decks
return
num
>=
2
;
return
num
>=
2
;
}
}
private
bool
CanDealWithUsedAlternativeWhiteDragon
()
{
return
Bot
.
HasInMonstersZone
(
new
[]
{
CardId
.
SageWithEyesOfBlue
,
CardId
.
WhiteStoneOfAncients
,
CardId
.
WhiteStoneOfLegend
,
CardId
.
WhiteDragon
,
CardId
.
DragonSpiritOfWhite
})
||
Bot
.
GetCountCardInZone
(
Bot
.
MonsterZone
,
CardId
.
AlternativeWhiteDragon
)>=
2
;
}
private
bool
HaveEnoughWhiteDragonInHand
()
private
bool
HaveEnoughWhiteDragonInHand
()
{
{
return
HasTwoInHand
(
CardId
.
WhiteDragon
)
||
(
return
HasTwoInHand
(
CardId
.
WhiteDragon
)
||
(
...
...
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