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
xiaoye
windbot
Commits
468b477f
Commit
468b477f
authored
Jan 04, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Dragun deck
parent
b2453980
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
Game/AI/Decks/DragunExecutor.cs
Game/AI/Decks/DragunExecutor.cs
+14
-5
No files found.
Game/AI/Decks/DragunExecutor.cs
View file @
468b477f
...
@@ -184,7 +184,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -184,7 +184,7 @@ namespace WindBot.Game.AI.Decks
private
bool
RedEyesFusionEffect
()
private
bool
RedEyesFusionEffect
()
{
{
if
(
Bot
.
HasInMonstersZone
(
CardId
.
DragunofRedEyes
))
if
(
Bot
.
HasInMonstersZone
(
new
[]
{
CardId
.
DragunofRedEyes
,
CardId
.
RedEyesBDragon
}
))
{
// you don't want to use DragunofRedEyes which is treated as RedEyesBDragon as fusion material
{
// you don't want to use DragunofRedEyes which is treated as RedEyesBDragon as fusion material
if
(
Util
.
GetBotAvailZonesFromExtraDeck
()
==
0
)
if
(
Util
.
GetBotAvailZonesFromExtraDeck
()
==
0
)
return
false
;
return
false
;
...
@@ -319,7 +319,15 @@ namespace WindBot.Game.AI.Decks
...
@@ -319,7 +319,15 @@ namespace WindBot.Game.AI.Decks
}
}
else
else
{
{
// TODO
int
[]
costs
=
new
[]
{
CardId
.
RedEyesInsight
,
CardId
.
RedEyesFusion
};
if
(
Bot
.
HasInHand
(
costs
))
{
AI
.
SelectCard
(
costs
);
return
true
;
}
return
false
;
return
false
;
}
}
}
}
...
@@ -354,7 +362,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -354,7 +362,7 @@ namespace WindBot.Game.AI.Decks
private
bool
MagicalizedFusionEffect
()
private
bool
MagicalizedFusionEffect
()
{
{
if
(
Bot
.
HasInMonstersZone
(
CardId
.
DragunofRedEyes
))
if
(
Bot
.
HasInMonstersZone
(
new
[]
{
CardId
.
DragunofRedEyes
,
CardId
.
RedEyesBDragon
}
))
{
// you don't want to use DragunofRedEyes which is treated as RedEyesBDragon as fusion material
{
// you don't want to use DragunofRedEyes which is treated as RedEyesBDragon as fusion material
if
(
Util
.
GetBotAvailZonesFromExtraDeck
()
==
0
)
if
(
Util
.
GetBotAvailZonesFromExtraDeck
()
==
0
)
return
false
;
return
false
;
...
@@ -367,6 +375,8 @@ namespace WindBot.Game.AI.Decks
...
@@ -367,6 +375,8 @@ namespace WindBot.Game.AI.Decks
private
bool
PredaplantVerteAnacondaEffect
()
private
bool
PredaplantVerteAnacondaEffect
()
{
{
if
(
ActivateDescription
==
Util
.
GetStringId
(
CardId
.
PredaplantVerteAnaconda
,
0
))
return
false
;
AI
.
SelectCard
(
CardId
.
RedEyesFusion
);
AI
.
SelectCard
(
CardId
.
RedEyesFusion
);
AI
.
SelectMaterials
(
CardLocation
.
Deck
);
AI
.
SelectMaterials
(
CardLocation
.
Deck
);
return
true
;
return
true
;
...
@@ -450,7 +460,6 @@ namespace WindBot.Game.AI.Decks
...
@@ -450,7 +460,6 @@ namespace WindBot.Game.AI.Decks
CardId
.
AshBlossomJoyousSpring
,
CardId
.
AshBlossomJoyousSpring
,
CardId
.
SeaMonsterofTheseus
,
CardId
.
SeaMonsterofTheseus
,
CardId
.
MechaPhantomBeastOLionToken
,
CardId
.
MechaPhantomBeastOLionToken
,
CardId
.
RedEyesBDragon
,
CardId
.
DarkMagician
,
CardId
.
DarkMagician
,
CardId
.
ImdukTheWorldChaliceDragon
,
CardId
.
ImdukTheWorldChaliceDragon
,
CardId
.
Sangan
,
CardId
.
Sangan
,
...
@@ -486,7 +495,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -486,7 +495,7 @@ namespace WindBot.Game.AI.Decks
private
bool
TrapSet
()
private
bool
TrapSet
()
{
{
if
(
Bot
.
HasInMonstersZone
(
CardId
.
DragunofRedEyes
)
&&
Bot
.
GetHandCount
()
==
1
)
if
(
Bot
.
HasInMonstersZone
(
new
[]
{
CardId
.
DragunofRedEyes
,
CardId
.
RedEyesBDragon
}
)
&&
Bot
.
GetHandCount
()
==
1
)
return
false
;
return
false
;
AI
.
SelectPlace
(
Zones
.
z0
+
Zones
.
z1
+
Zones
.
z3
+
Zones
.
z4
);
AI
.
SelectPlace
(
Zones
.
z0
+
Zones
.
z1
+
Zones
.
z3
+
Zones
.
z4
);
return
true
;
return
true
;
...
...
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