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
c439a017
Commit
c439a017
authored
Dec 14, 2024
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Earth_408Executor.cs
parent
9058ec2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
Game/AI/Decks/Earth_408Executor.cs
Game/AI/Decks/Earth_408Executor.cs
+7
-8
No files found.
Game/AI/Decks/Earth_408Executor.cs
View file @
c439a017
...
...
@@ -19,6 +19,7 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
Activate
,
19613556
,
OnSelectActivate
);
AddExecutor
(
ExecutorType
.
Activate
,
45986603
,
OnSelectActivate
);
AddExecutor
(
ExecutorType
.
Activate
,
71044499
,
OnSelectActivate
);
AddExecutor
(
ExecutorType
.
Activate
,
OnSelectActivate
);
AddExecutor
(
ExecutorType
.
Summon
,
79575620
,
OnSelectSummon
);
...
...
@@ -147,9 +148,9 @@ namespace WindBot.Game.AI.Decks
}
public
override
IList
<
ClientCard
>
OnSelectCard
(
IList
<
ClientCard
>
cards
,
int
min
,
int
max
,
int
hint
,
bool
cancelable
)
{
if
(
AI
.
HaveSelectedCards
())
return
null
;
if
(
max
>
cards
.
Count
())
max
=
cards
.
Count
();
ClientCard
currentSolvingChain
=
Duel
.
GetCurrentSolvingChainCard
();
// ClientCard currentSolvingChain = Duel.GetCurrentSolvingChainCard();
ClientCard
currentSolvingChain
=
Card
;
if
(
currentSolvingChain
!=
null
)
{
if
(
currentSolvingChain
.
IsCode
(
new
[]
{
97077563
,
70828912
}))
...
...
@@ -159,11 +160,11 @@ namespace WindBot.Game.AI.Decks
}
if
(
currentSolvingChain
.
IsCode
(
32807846
))
{
if
(
(
cards
.
Any
(
c
=>
c
!=
null
&&
c
.
IsCode
(
new
[]
{
37043180
,
70074904
}))
&&
Bot
.
GetMonsterCount
()
>=
Enemy
.
GetMonsterCount
())
||
GetZoneCards
(
CardLocation
.
MonsterZone
,
Enemy
).
Any
(
c
=>
c
!=
null
&&
c
.
IsCode
(
new
[]
{
23205979
,
31305911
}
)))
return
Util
.
CheckSelectCount
(
cards
.
Where
(
card
=>
card
!=
null
&&
card
.
IsCode
(
new
[]
{
37043180
,
70074904
})
&&
!
cards
.
Any
(
c
=>
c
!=
null
&&
!
c
.
IsCode
(
card
.
Id
)
&&
c
.
Attack
>
card
.
Attack
)).
ToList
(),
cards
,
min
,
max
);
if
(
cards
.
Any
(
c
=>
c
!=
null
&&
c
.
IsCode
(
new
[]
{
37043180
,
70074904
}))
&&
(
Bot
.
GetMonsterCount
()
>
Enemy
.
GetMonsterCount
()
||
GetZoneCards
(
CardLocation
.
MonsterZone
,
Enemy
).
Any
(
c
=>
c
!=
null
&&
c
.
IsCode
(
new
[]
{
23205979
,
31305911
})
)))
return
Util
.
CheckSelectCount
(
cards
.
Where
(
card
=>
card
!=
null
&&
card
.
IsCode
(
new
[]
{
37043180
,
70074904
})
&&
!
cards
.
Any
(
c
=>
c
!=
null
&&
!
c
.
IsCode
(
card
.
Id
)
&&
c
.
Attack
<
card
.
Attack
)).
ToList
(),
cards
,
min
,
max
);
if
(
cards
.
Any
(
c
=>
c
!=
null
&&
c
.
IsCode
(
74131780
)
&&
!
GetZoneCards
(
CardLocation
.
MonsterZone
,
Enemy
).
Any
(
card
=>
card
!=
null
&&
card
.
GetDefensePower
()
<
1000
))
&&
GetZoneCards
(
CardLocation
.
MonsterZone
,
Enemy
).
Any
(
card
=>
card
!=
null
&&
!
card
.
IsShouldNotBeTarget
()))
return
Util
.
CheckSelectCount
(
cards
.
Where
(
c
=>
c
!=
null
&&
c
.
IsCode
(
74131780
)).
ToList
(),
cards
,
min
,
max
);
return
Util
.
CheckSelectCount
(
cards
.
Where
(
card
=>
card
!=
null
&&
!
cards
.
Any
(
c
=>
c
!=
null
&&
!
c
.
IsCode
(
card
.
Id
)
&&
c
.
Attack
>
card
.
Attack
)).
ToList
(),
cards
,
min
,
max
);
return
Util
.
CheckSelectCount
(
cards
.
Where
(
card
=>
card
!=
null
&&
!
cards
.
Any
(
c
=>
c
!=
null
&&
!
c
.
IsCode
(
card
.
Id
)
&&
c
.
Attack
<
card
.
Attack
)).
ToList
(),
cards
,
min
,
max
);
}
switch
(
currentSolvingChain
.
Id
)
{
...
...
@@ -171,8 +172,6 @@ namespace WindBot.Game.AI.Decks
{
if
(
cards
.
Any
(
card
=>
card
!=
null
&&
card
.
Controller
==
1
))
return
Util
.
CheckSelectCount
(
cards
.
Where
(
card
=>
card
!=
null
&&
card
.
Controller
==
1
).
ToList
(),
cards
,
min
,
max
);
if
(
cards
.
Any
(
card
=>
card
!=
null
&&
card
.
IsFacedown
()))
return
Util
.
CheckSelectCount
(
cards
.
Where
(
card
=>
card
!=
null
&&
card
.
IsFacedown
()).
ToList
(),
cards
,
min
,
max
);
if
(
cards
.
Any
(
card
=>
card
!=
null
&&
card
.
IsCode
(
new
[]
{
70828912
,
97077563
})))
return
Util
.
CheckSelectCount
(
cards
.
Where
(
card
=>
card
!=
null
&&
card
.
IsCode
(
new
[]
{
70828912
,
97077563
})).
ToList
(),
cards
,
min
,
max
);
break
;
...
...
@@ -368,7 +367,7 @@ namespace WindBot.Game.AI.Decks
private
bool
OnSelectActivate
()
{
if
(
Card
.
IsDisabled
())
return
false
;
IList
<
int
>
activate_return_true
=
new
[]
{
97017120
,
32807846
,
79571449
,
29401950
,
44095762
,
70828912
,
97077563
};
IList
<
int
>
activate_return_true
=
new
[]
{
97017120
,
32807846
,
79571449
,
29401950
,
44095762
,
70828912
,
97077563
,
42386471
,
45986603
};
switch
(
Card
.
Id
)
{
case
74131780
:
...
...
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