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
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
MyCard
windbot
Commits
940b6eb0
Commit
940b6eb0
authored
Dec 12, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update
parent
77243358
Pipeline
#31751
passed with stage
in 1 minute and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
Game/AI/Decks/RyzealExecutor.cs
Game/AI/Decks/RyzealExecutor.cs
+10
-5
No files found.
Game/AI/Decks/RyzealExecutor.cs
View file @
940b6eb0
...
...
@@ -676,6 +676,7 @@ namespace WindBot.Game.AI.Decks
if
(
flag
)
level4Count
++;
}
hasNode
&=
!
CheckWhetherWillbeRemoved
()
&&
!
activatedCardIdList
.
Contains
(
CardId
.
NodeRyzeal
)
&&
!
DefaultCheckWhetherCardIdIsNegated
(
CardId
.
NodeRyzeal
);
hasNode
&=
Bot
.
Graveyard
.
Any
(
c
=>
c
!=
null
&&
c
.
IsMonster
()
&&
c
.
HasSetcode
(
SetcodeRyzeal
)
&&
!
c
.
IsCode
(
CardId
.
NodeRyzeal
)
&&
c
.
Level
==
4
);
if
(
hasNode
)
{
bool
flag
=
Bot
.
Graveyard
.
Any
(
c
=>
c
!=
null
&&
c
.
IsFaceup
()
&&
c
.
HasSetcode
(
SetcodeRyzeal
)
&&
!
c
.
HasType
(
CardType
.
Xyz
)
&&
c
.
Level
==
4
&&
!
c
.
IsCode
(
CardId
.
NodeRyzeal
));
...
...
@@ -703,7 +704,7 @@ namespace WindBot.Game.AI.Decks
public
List
<
ClientCard
>
GetCostFromHandAndFieldFirst
(
ClientCard
exceptCard
)
{
return
Bot
.
MonsterZone
.
Where
(
c
=>
c
!=
null
&&
!
c
.
IsDisabled
()
&&
c
.
IsCode
(
NeedIceToSolveIdList
)
&&
c
!=
exceptCard
).
ToList
();
return
Bot
.
MonsterZone
.
Where
(
c
=>
c
!=
null
&&
!
c
.
IsDisabled
()
&&
c
.
IsCode
(
NeedIceToSolveIdList
)
&&
c
!=
exceptCard
&&
!
c
.
HasType
(
CardType
.
Token
)
).
ToList
();
}
public
List
<
ClientCard
>
GetCostFromHandAndField
(
ClientCard
exceptCard
,
bool
sendNotNecessary
)
...
...
@@ -770,9 +771,13 @@ namespace WindBot.Game.AI.Decks
// sending monsters in spell zone
List
<
ClientCard
>
monstersInSpellZone
=
Bot
.
SpellZone
.
Where
(
c
=>
c
!=
null
&&
c
.
Data
!=
null
&&
c
.
Data
.
HasType
(
CardType
.
Monster
)
&&
!
c
.
Data
.
HasType
(
CardType
.
Pendulum
)
&&
!
resultList
.
Contains
(
c
)).
ToList
();
&&
c
.
Data
.
HasType
(
CardType
.
Monster
)
&&
!
c
.
Data
.
HasType
(
CardType
.
Pendulum
|
CardType
.
Token
)
&&
!
resultList
.
Contains
(
c
)).
ToList
();
resultList
.
AddRange
(
monstersInSpellZone
);
// send enemy monsters
List
<
ClientCard
>
enemyMonsters
=
Bot
.
MonsterZone
.
Where
(
c
=>
c
!=
null
&&
!
resultList
.
Contains
(
c
)
&&
c
.
Owner
==
1
).
ToList
();
resultList
.
AddRange
(
enemyMonsters
);
if
(
sendNotNecessary
)
{
// send xyz monster with no material
...
...
@@ -1278,7 +1283,7 @@ namespace WindBot.Game.AI.Decks
// gain material by plugin
if
(
currentSolvingChain
.
IsCode
(
CardId
.
RyzealPlugIn
)
&&
cards
.
All
(
c
=>
c
.
Location
==
CardLocation
.
MonsterZone
))
{
ClientCard
abyssDweller
=
cards
.
FirstOrDefault
(
c
=>
c
!=
null
&&
!
c
.
IsDisabled
()
&&
c
.
IsCode
(
CardId
.
AbyssDweller
));
ClientCard
abyssDweller
=
cards
.
FirstOrDefault
(
c
=>
c
!=
null
&&
!
c
.
IsDisabled
()
&&
c
.
IsCode
(
CardId
.
AbyssDweller
)
&&
c
.
Overlays
.
Count
()
<
2
);
if
(
abyssDweller
!=
null
&&
AbyssDwellerSummonCheck
())
{
return
Util
.
CheckSelectCount
(
new
List
<
ClientCard
>
{
abyssDweller
},
cards
,
min
,
max
);
...
...
@@ -1305,7 +1310,7 @@ namespace WindBot.Game.AI.Decks
}
}
ClientCard
tornadoDragon
=
cards
.
FirstOrDefault
(
c
=>
c
!=
null
&&
!
c
.
IsDisabled
()
&&
c
.
IsCode
(
CardId
.
TornadoDragon
));
ClientCard
tornadoDragon
=
cards
.
FirstOrDefault
(
c
=>
c
!=
null
&&
!
c
.
IsDisabled
()
&&
c
.
IsCode
(
CardId
.
TornadoDragon
)
&&
c
.
Overlays
.
Count
()
==
1
);
if
(
tornadoDragon
!=
null
&&
TornadoDragonSummonCheck
())
{
return
Util
.
CheckSelectCount
(
new
List
<
ClientCard
>
{
tornadoDragon
},
cards
,
min
,
max
);
...
...
@@ -3550,7 +3555,7 @@ namespace WindBot.Game.AI.Decks
}
}
List
<
ClientCard
>
targetList
=
GetNormalEnemyTargetList
(
true
,
false
,
CardType
.
Monster
,
true
).
Where
(
c
=>
c
.
IsFaceup
()).
ToList
();
List
<
ClientCard
>
targetList
=
GetNormalEnemyTargetList
(
true
,
false
,
CardType
.
Monster
,
true
).
Where
(
c
=>
c
.
IsFaceup
()
&&
!
c
.
IsDisabled
()
).
ToList
();
if
(
targetList
.
Count
()
>
0
)
{
currentNegateCardList
.
Add
(
targetList
[
0
]);
...
...
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