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
HiiragiGuardians
windbot
Commits
157b7917
Commit
157b7917
authored
Feb 25, 2024
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'auto' of github.com:jwyxym/windbot
parents
eed94020
6d604610
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Game/AI/Decks/AutoChessExecutor.cs
Game/AI/Decks/AutoChessExecutor.cs
+5
-4
No files found.
Game/AI/Decks/AutoChessExecutor.cs
View file @
157b7917
using
YGOSharp.OCGWrapper.Enums
;
using
YGOSharp.OCGWrapper.Enums
;
using
System.Collections.Generic
;
using
System.Linq
;
using
WindBot
;
...
...
@@ -418,15 +418,16 @@ namespace WindBot.Game.AI.Decks
else
return
DefaultMonsterSummon
();
}
else
if
(
Bot
.
LifePoints
<=
1500
&&
GetZoneCards
(
CardLocation
.
MonsterZone
,
Enemy
).
Count
(
card
=>
card
!=
null
&&
card
.
Attack
<
Card
.
Attack
))
else
if
(
Bot
.
LifePoints
<=
1500
&&
GetZoneCards
(
CardLocation
.
MonsterZone
,
Enemy
).
Count
(
card
=>
card
!=
null
&&
card
.
Attack
<
Card
.
Attack
)
>
0
)
return
DefaultMonsterSummon
();
return
false
;
}
private
bool
MonsterSet
()
{
if
(
Card
.
HasType
(
CardType
.
Flip
))
return
DefaultMonsterSummon
();
if
(
c
ard
.
HasSetcode
(
0x40
))
return
false
;
if
(
C
ard
.
HasSetcode
(
0x40
))
return
false
;
return
DefaultMonsterSummon
()
&&
(
Bot
.
LifePoints
<=
1500
||
Card
.
HasType
(
CardType
.
Flip
)
||
GetZoneCards
(
CardLocation
.
MonsterZone
,
Bot
).
Count
()
==
0
||
GetZoneCards
(
CardLocation
.
MonsterZone
,
Bot
).
Count
()
<=
GetZoneCards
(
CardLocation
.
MonsterZone
,
Enemy
).
Count
());
}
}
}
\ No newline at end of file
}
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