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
6f3dc34a
Commit
6f3dc34a
authored
Nov 29, 2018
by
wind2009
Committed by
mercury233
Nov 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bot update (#107)
parent
bd858159
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
Game/AI/Decks/DragunityExecutor.cs
Game/AI/Decks/DragunityExecutor.cs
+9
-1
Game/AI/Decks/SkyStrikerExecutor.cs
Game/AI/Decks/SkyStrikerExecutor.cs
+3
-3
No files found.
Game/AI/Decks/DragunityExecutor.cs
View file @
6f3dc34a
...
...
@@ -430,7 +430,15 @@ namespace WindBot.Game.AI.Decks
&&
Bot
.
HasInGraveyard
(
CardId
.
DragunityPhalanx
))
||
Bot
.
HasInMonstersZone
(
CardId
.
DragunityPhalanx
)
||
Bot
.
HasInHand
(
CardId
.
DragunitySpearOfDestiny
))
return
true
;
{
List
<
ClientCard
>
monster_sorted
=
Bot
.
GetMonsters
();
monster_sorted
.
Sort
(
AIFunctions
.
CompareCardAttack
);
foreach
(
ClientCard
monster
in
monster_sorted
)
{
AI
.
SelectMaterials
(
monster
);
return
true
;
}
}
return
false
;
}
...
...
Game/AI/Decks/SkyStrikerExecutor.cs
View file @
6f3dc34a
...
...
@@ -261,7 +261,7 @@ namespace WindBot.Game.AI.Decks
private
bool
AfterburnersEffect
()
{
ClientCard
target
=
AI
.
Utils
.
GetBestEnemyMonster
(
true
);
ClientCard
target
=
AI
.
Utils
.
GetBestEnemyMonster
(
true
,
true
);
if
(
target
!=
null
)
{
AI
.
SelectCard
(
target
);
...
...
@@ -293,7 +293,7 @@ namespace WindBot.Game.AI.Decks
{
if
(
AI
.
Utils
.
ChainContainsCard
(
CardId
.
WidowAnchor
))
return
false
;
ClientCard
target
=
AI
.
Utils
.
GetProblematicEnemyMonster
();
ClientCard
target
=
AI
.
Utils
.
GetProblematicEnemyMonster
(
0
,
true
);
if
(
target
!=
null
)
{
WidowAnchorTarget
=
target
;
...
...
@@ -382,7 +382,7 @@ namespace WindBot.Game.AI.Decks
if
(!
HaveThreeSpellsInGrave
()
||
Duel
.
Player
==
1
||
Duel
.
Phase
<
DuelPhase
.
Main1
||
Duel
.
Phase
>=
DuelPhase
.
Main2
||
AI
.
Utils
.
ChainContainsCard
(
CardId
.
WidowAnchor
))
return
false
;
ClientCard
target
=
AI
.
Utils
.
GetBestEnemyMonster
(
true
);
ClientCard
target
=
AI
.
Utils
.
GetBestEnemyMonster
(
true
,
true
);
if
(
target
!=
null
&&
!
target
.
IsDisabled
()
&&
!
target
.
HasType
(
CardType
.
Normal
))
{
WidowAnchorTarget
=
target
;
...
...
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