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
09c63923
Commit
09c63923
authored
1 year ago
by
jwyxym
Committed by
GitHub
1 year ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update AutoChessExecutor.cs
parent
e8546412
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
2 deletions
+39
-2
Game/AI/Decks/AutoChessExecutor.cs
Game/AI/Decks/AutoChessExecutor.cs
+39
-2
No files found.
Game/AI/Decks/AutoChessExecutor.cs
View file @
09c63923
...
...
@@ -515,6 +515,7 @@ namespace WindBot.Game.AI.Decks
||
(
card
.
Id
==
75147529
&&
ActivateDescription
==
Util
.
GetStringId
(
75147529
,
0
))
||
(
card
.
Id
==
53184342
&&
ActivateDescription
==
Util
.
GetStringId
(
53184342
,
1
))
||
(
card
.
Id
==
21250202
&&
card
.
Location
==
CardLocation
.
MonsterZone
)
||
(
card
.
Id
==
93713837
&&
card
.
Location
==
CardLocation
.
MonsterZone
)
||
(
card
.
Id
==
50275295
&&
card
.
Location
==
CardLocation
.
SpellZone
)
||
(
card
.
Id
==
55623480
&&
card
.
Location
==
CardLocation
.
Grave
)
)
...
...
@@ -566,6 +567,44 @@ namespace WindBot.Game.AI.Decks
return
false
;
}
private
bool
EnemyCardUnTargetMonster
(
ClientCard
card
)
{
int
[]
cardsname
=
new
[]
{
10000090
,
41685633
,
17494901
,
32180819
,
44009443
,
44424095
,
50501121
,
52875873
,
58873391
,
62188962
,
66789970
,
76203291
,
85893201
};
foreach
(
int
cardname
in
cardsname
)
{
if
(
card
.
Id
==
cardname
)
return
true
;
}
if
((
card
.
Id
==
67725394
&&
ActivateDescription
==
Util
.
GetStringId
(
67725394
,
2
))
||
(
card
.
Id
==
83414006
&&
ActivateDescription
==
Util
.
GetStringId
(
83414006
,
2
))
||
(
card
.
Id
==
75775867
&&
ActivateDescription
==
Util
.
GetStringId
(
75775867
,
0
))
||
(
card
.
Id
==
77656797
&&
ActivateDescription
==
Util
.
GetStringId
(
77656797
,
0
))
||
(
card
.
Id
==
51316684
&&
ActivateDescription
==
Util
.
GetStringId
(
51316684
,
0
))
||
(
card
.
Id
==
83550869
&&
ActivateDescription
==
Util
.
GetStringId
(
83550869
,
0
))
||
(
card
.
Id
==
99726621
&&
ActivateDescription
==
Util
.
GetStringId
(
99726621
,
0
))
||
(
card
.
Id
==
20665527
&&
ActivateDescription
==
Util
.
GetStringId
(
20665527
,
1
))
||
(
card
.
Id
==
24070330
&&
ActivateDescription
==
Util
.
GetStringId
(
24070330
,
1
))
||
(
card
.
Id
==
40221691
&&
ActivateDescription
==
Util
.
GetStringId
(
40221691
,
1
))
||
(
card
.
Id
==
84425220
&&
ActivateDescription
==
Util
.
GetStringId
(
84425220
,
1
))
||
(
card
.
Id
==
34446231
&&
ActivateDescription
==
Util
.
GetStringId
(
34446231
,
1
))
||
(
card
.
Id
==
70636044
&&
ActivateDescription
==
Util
.
GetStringId
(
70636044
,
2
))
||
(
card
.
Id
==
92650749
&&
ActivateDescription
==
Util
.
GetStringId
(
92650749
,
3
))
||
(
card
.
Id
==
50687050
&&
ActivateDescription
==
Util
.
GetStringId
(
50687050
,
4
))
||
(
card
.
Id
==
26655293
&&
card
.
Location
==
CardLocation
.
MonsterZone
)
||
(
card
.
Id
==
44146295
&&
card
.
Location
==
CardLocation
.
MonsterZone
)
||
(
card
.
Id
==
84941194
&&
card
.
Location
==
CardLocation
.
MonsterZone
)
||
(
card
.
Id
==
99307040
&&
card
.
Location
==
CardLocation
.
MonsterZone
)
||
(
card
.
Id
==
47132793
&&
card
.
Location
==
CardLocation
.
MonsterZone
)
||
(
card
.
Id
==
66947913
&&
!
card
.
Location
==
CardLocation
.
Hand
)
||
(
card
.
Id
==
99414629
&&
!
card
.
Location
==
CardLocation
.
Grave
)
||
(
card
.
Id
==
42620460
&&
card
.
Location
==
CardLocation
.
Grave
)
||
(
card
.
Id
==
86509711
&&
card
.
Location
==
CardLocation
.
Grave
)
)
return
true
;
return
false
;
}
private
List
<
ClientCard
>
GetZoneCards
(
CardLocation
loc
,
ClientField
player
)
{
List
<
ClientCard
>
res
=
new
List
<
ClientCard
>();
...
...
@@ -827,9 +866,7 @@ namespace WindBot.Game.AI.Decks
else
if
(
Card
.
Id
==
60461804
)
{
if
(
Card
.
Location
==
CardLocation
.
Grave
)
{
return
true
;
}
ClientCard
target
=
Util
.
GetProblematicEnemyCard
(
2500
);
if
(
target
!=
null
&&
!
Util
.
ChainContainPlayer
(
0
))
...
...
This diff is collapsed.
Click to expand it.
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