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
nanahira
windbot
Commits
756d5028
Commit
756d5028
authored
Feb 29, 2024
by
jwyxym
Committed by
GitHub
Feb 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update AutoChessExecutor.cs
parent
f934aea4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
Game/AI/Decks/AutoChessExecutor.cs
Game/AI/Decks/AutoChessExecutor.cs
+11
-11
No files found.
Game/AI/Decks/AutoChessExecutor.cs
View file @
756d5028
...
...
@@ -606,16 +606,16 @@ namespace WindBot.Game.AI.Decks
if
(
Card
.
HasType
(
CardType
.
Equip
)
||
(
Card
.
HasType
(
CardType
.
Pendulum
)
&&
Card
.
Location
==
CardLocation
.
Hand
&&
ActivateDescription
==
1160
))
return
false
;
if
(
EnemyCardTarget
(
Card
,
true
,
CardLocation
.
Onfield
,
new
[]
{
CardType
.
Spell
,
CardType
.
Trap
},
new
[]{
CardPosition
.
FaceUp
}))
return
GetZoneCards
(
CardLocation
.
Onfield
,
Enemy
).
Any
(
card
=>
card
!=
null
&&
(
card
.
HasType
(
CardType
.
Spell
)
||
card
.
HasType
(
CardType
.
Trap
))
&&
card
.
IsFaceup
())
if
(
EnemyCardTarget
(
Card
,
true
,
CardLocation
.
Onfield
,
new
[]
{
CardType
.
Spell
,
CardType
.
Trap
},
new
[]{
CardPosition
.
FaceDown
}))
return
GetZoneCards
(
CardLocation
.
Onfield
,
Enemy
).
Any
(
card
=>
card
!=
null
&&
(
card
.
HasType
(
CardType
.
Spell
)
||
card
.
HasType
(
CardType
.
Trap
))
&&
card
.
IsFacedown
())
if
(
EnemyCardTarget
(
Card
,
true
,
CardLocation
.
Onfield
,
new
[]
{
CardType
.
Spell
,
CardType
.
Trap
,
CardType
.
Monster
},
new
[]{
CardPosition
.
FaceUp
}))
return
GetZoneCards
(
CardLocation
.
Onfield
,
Enemy
).
Any
(
card
=>
card
!=
null
&&
card
.
IsFaceup
())
if
(
EnemyCardTarget
(
Card
,
true
,
CardLocation
.
Onfield
,
new
[]
{
CardType
.
Spell
,
CardType
.
Trap
,
CardType
.
Monster
},
new
[]{
CardPosition
.
FaceDown
}))
return
GetZoneCards
(
CardLocation
.
Onfield
,
Enemy
).
Any
(
card
=>
card
!=
null
&&
card
.
IsFacedown
())
if
(
EnemyCardTarget
(
Card
,
true
,
CardLocation
.
Onfield
,
new
[]
{
CardType
.
Spell
,
CardType
.
Trap
,
CardType
.
Monster
},
new
[]{
CardPosition
.
FaceUp
,
CardPosition
.
FaceDown
}))
return
GetZoneCards
(
CardLocation
.
Onfield
,
Enemy
).
Any
(
card
=>
card
!=
null
&&
card
.
IsFacedown
())
if
(
EnemyCardTarget
(
Card
,
true
,
CardLocation
.
Onfield
,
new
[]
{
CardType
.
Spell
,
CardType
.
Trap
},
new
[]
{
CardPosition
.
FaceUp
}))
return
GetZoneCards
(
CardLocation
.
Onfield
,
Enemy
).
Any
(
card
=>
card
!=
null
&&
(
card
.
HasType
(
CardType
.
Spell
)
||
card
.
HasType
(
CardType
.
Trap
))
&&
card
.
IsFaceup
())
;
if
(
EnemyCardTarget
(
Card
,
true
,
CardLocation
.
Onfield
,
new
[]
{
CardType
.
Spell
,
CardType
.
Trap
},
new
[]
{
CardPosition
.
FaceDown
}))
return
GetZoneCards
(
CardLocation
.
Onfield
,
Enemy
).
Any
(
card
=>
card
!=
null
&&
(
card
.
HasType
(
CardType
.
Spell
)
||
card
.
HasType
(
CardType
.
Trap
))
&&
card
.
IsFacedown
())
;
if
(
EnemyCardTarget
(
Card
,
true
,
CardLocation
.
Onfield
,
new
[]
{
CardType
.
Spell
,
CardType
.
Trap
,
CardType
.
Monster
},
new
[]
{
CardPosition
.
FaceUp
}))
return
GetZoneCards
(
CardLocation
.
Onfield
,
Enemy
).
Any
(
card
=>
card
!=
null
&&
card
.
IsFaceup
())
;
if
(
EnemyCardTarget
(
Card
,
true
,
CardLocation
.
Onfield
,
new
[]
{
CardType
.
Spell
,
CardType
.
Trap
,
CardType
.
Monster
},
new
[]
{
CardPosition
.
FaceDown
}))
return
GetZoneCards
(
CardLocation
.
Onfield
,
Enemy
).
Any
(
card
=>
card
!=
null
&&
card
.
IsFacedown
())
;
if
(
EnemyCardTarget
(
Card
,
true
,
CardLocation
.
Onfield
,
new
[]
{
CardType
.
Spell
,
CardType
.
Trap
,
CardType
.
Monster
},
new
[]
{
CardPosition
.
FaceUp
,
CardPosition
.
FaceDown
}))
return
GetZoneCards
(
CardLocation
.
Onfield
,
Enemy
).
Any
(
card
=>
card
!=
null
&&
card
.
IsFacedown
())
;
//优化单卡是怎么想的啊喂(#`O′)
if
(
Card
.
Id
==
60461804
)
...
...
@@ -639,7 +639,7 @@ namespace WindBot.Game.AI.Decks
{
if
(
ActivateDescription
==
Util
.
GetStringId
(
84815190
,
0
))
{
List
<
ClientCard
>
cards
=
GetZoneCards
(
CardLocation
.
Onfield
,
Enemy
);
cards
=
GetZoneCards
(
CardLocation
.
Onfield
,
Enemy
);
cards
=
cards
.
Where
(
tcard
=>
tcard
!=
null
&&
!
tcard
.
IsShouldNotBeTarget
()).
ToList
();
if
(
cards
.
Count
<=
0
)
return
false
;
//AI.SelectCard(cards);
...
...
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