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
20916c38
Commit
20916c38
authored
Sep 15, 2019
by
kiwi946
Committed by
mercury233
Sep 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dark magician fix (#115)
parent
3fc0fca5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
Game/AI/Decks/DarkMagicianExecutor.cs
Game/AI/Decks/DarkMagicianExecutor.cs
+5
-3
No files found.
Game/AI/Decks/DarkMagicianExecutor.cs
View file @
20916c38
...
@@ -367,18 +367,19 @@ namespace WindBot.Game.AI.Decks
...
@@ -367,18 +367,19 @@ namespace WindBot.Game.AI.Decks
private
bool
WindwitchSnowBellsp
()
private
bool
WindwitchSnowBellsp
()
{
{
if
(
maxxc_used
)
return
false
;
if
(
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchIceBell
)
&&
if
(
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchIceBell
)
&&
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchGlassBell
))
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchGlassBell
))
{
{
AI
.
SelectPosition
(
CardPosition
.
FaceUpDefence
);
AI
.
SelectPosition
(
CardPosition
.
FaceUpDefence
);
return
true
;
return
true
;
}
}
return
false
;
return
false
;
}
}
private
bool
WindwitchWinterBellsp
()
private
bool
WindwitchWinterBellsp
()
{
{
if
(
maxxc_used
)
return
false
;
if
(
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchIceBell
)
&&
if
(
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchIceBell
)
&&
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchGlassBell
)
&&
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchGlassBell
)
&&
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchSnowBell
))
Bot
.
HasInMonstersZone
(
CardId
.
WindwitchSnowBell
))
...
@@ -1622,7 +1623,8 @@ namespace WindBot.Game.AI.Decks
...
@@ -1622,7 +1623,8 @@ namespace WindBot.Game.AI.Decks
if (Bot.SpellZone[i] != null)
if (Bot.SpellZone[i] != null)
Logger.DebugWriteLine("++++++++SpellZone[" + i + "]= " + Bot.SpellZone[i].Id);
Logger.DebugWriteLine("++++++++SpellZone[" + i + "]= " + Bot.SpellZone[i].Id);
}*/
}*/
if
(
Util
.
ChainContainsCard
(
CardId
.
MaxxC
))
maxxc_used
=
true
;
if
((
Duel
.
CurrentChain
.
Count
>=
1
&&
Util
.
GetLastChainCard
().
Id
==
0
)
||
if
((
Duel
.
CurrentChain
.
Count
>=
1
&&
Util
.
GetLastChainCard
().
Id
==
0
)
||
(
Duel
.
CurrentChain
.
Count
==
2
&&
!
Util
.
ChainContainPlayer
(
0
)
&&
Duel
.
CurrentChain
[
0
].
Id
==
0
))
(
Duel
.
CurrentChain
.
Count
==
2
&&
!
Util
.
ChainContainPlayer
(
0
)
&&
Duel
.
CurrentChain
[
0
].
Id
==
0
))
{
{
...
@@ -1638,7 +1640,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -1638,7 +1640,7 @@ namespace WindBot.Game.AI.Decks
{
{
Logger
.
DebugWriteLine
(
"************************last chain card= "
+
Util
.
GetLastChainCard
().
Id
);
Logger
.
DebugWriteLine
(
"************************last chain card= "
+
Util
.
GetLastChainCard
().
Id
);
maxxc_used
=
true
;
maxxc_used
=
true
;
}
}
int
lockbird_count
=
0
;
int
lockbird_count
=
0
;
foreach
(
ClientCard
check
in
Enemy
.
Graveyard
)
foreach
(
ClientCard
check
in
Enemy
.
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