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
5861eea2
Commit
5861eea2
authored
Mar 02, 2024
by
jwyxym
Committed by
GitHub
Mar 02, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update AutoChessExecutor.cs
parent
17f99885
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
15 deletions
+24
-15
Game/AI/Decks/AutoChessExecutor.cs
Game/AI/Decks/AutoChessExecutor.cs
+24
-15
No files found.
Game/AI/Decks/AutoChessExecutor.cs
View file @
5861eea2
...
...
@@ -662,8 +662,18 @@ namespace WindBot.Game.AI.Decks
}
private
bool
EquipEffectActivateFunction
()
{
IList
<
ClientCard
>
cards
=
new
List
<
ClientCard
>();
if
(
Card
.
Location
==
CardLocation
.
SpellZone
&&
Card
.
Id
==
43527730
)
return
!
Card
.
EquipTarget
.
HasSetcode
(
0x18d
);
if
(
Card
.
Location
==
CardLocation
.
SpellZone
&&
Card
.
Id
==
57736667
)
{
cards
=
GetZoneCards
(
CardLocation
.
Onfield
,
Enemy
).
Where
(
card
=>
card
!=
null
&&
!
card
.
IsShouldNotBeTarget
()
&&
(
card
.
HasType
(
CardType
.
Field
)
||
card
.
HasType
(
CardType
.
Continuous
)
||
card
.
HasType
(
CardType
.
Equip
)
||
(
card
.
HasType
(
CardType
.
Pendulum
)
&&
card
.
Location
==
CardLocation
.
SpellZone
)
||
(
card
.
IsFacedown
()
&&
card
.
Location
==
CardLocation
.
SpellZone
)
||
card
.
Location
==
CardLocation
.
MonsterZone
)).
ToList
();
if
(
cards
.
Count
()
>
0
)
{
AI
.
SelectCard
(
cards
);
return
true
;
}
}
return
false
;
}
...
...
@@ -671,7 +681,7 @@ namespace WindBot.Game.AI.Decks
{
if
((
Card
.
HasType
(
CardType
.
Pendulum
)
&&
Card
.
Location
==
CardLocation
.
Hand
&&
ActivateDescription
==
1160
)
||
(
Card
.
HasType
(
CardType
.
Equip
)
&&
Card
.
Location
==
CardLocation
.
Hand
)
||
(
Card
.
Id
==
43527730
&&
Card
.
Location
==
CardLocation
.
SpellZone
)
||
(
(
Card
.
Id
==
43527730
||
Card
.
Id
==
57736667
)
&&
Card
.
Location
==
CardLocation
.
SpellZone
)
)
return
false
;
...
...
@@ -754,21 +764,13 @@ namespace WindBot.Game.AI.Decks
return
false
;
}
else
if
(
Card
.
Id
==
84815190
)
else
if
(
ActivateDescription
==
Util
.
GetStringId
(
84815190
,
1
)
)
{
if
(
ActivateDescription
==
Util
.
GetStringId
(
84815190
,
0
))
{
cards
=
GetZoneCards
(
CardLocation
.
Onfield
,
Enemy
);
cards
=
cards
.
Where
(
tcard
=>
tcard
!=
null
&&
!
tcard
.
IsShouldNotBeTarget
()).
ToList
();
if
(
cards
.
Count
<=
0
)
return
false
;
//AI.SelectCard(cards);
return
true
;
}
else
if
(
ActivateDescription
==
Util
.
GetStringId
(
84815190
,
1
))
{
return
Duel
.
LastChainPlayer
==
1
;
}
return
false
;
return
Duel
.
LastChainPlayer
==
1
;
}
else
if
(
ActivateDescription
==
Util
.
GetStringId
(
63014935
,
0
))
{
return
Enemy
.
LifePoints
<=
1000
;
}
return
DefaultDontChainMyself
();
}
...
...
@@ -853,6 +855,12 @@ namespace WindBot.Game.AI.Decks
return
true
;
}
public
override
bool
OnSelectYesNo
(
int
desc
)
{
if
(
desc
==
Util
.
GetStringId
(
63014935
,
2
))
return
Bot
.
LifePoints
<=
1000
;
return
true
;
}
public
override
IList
<
ClientCard
>
OnSelectCard
(
IList
<
ClientCard
>
_cards
,
int
min
,
int
max
,
int
hint
,
bool
cancelable
)
{
if
(
Duel
.
Phase
==
DuelPhase
.
BattleStart
)
...
...
@@ -910,6 +918,7 @@ namespace WindBot.Game.AI.Decks
}
if
(
scards
.
Count
()
>=
min
)
return
Util
.
CheckSelectCount
(
scards
,
cards
,
min
,
max
);
return
scards
;
}
if
((
hint
==
503
||
hint
==
507
)
&&
cards
.
Any
(
card
=>
card
!=
null
&&
card
.
Controller
==
1
)
&&
cards
.
Any
(
card
=>
card
!=
null
&&
card
.
Controller
==
0
)
&&
cards
.
Count
(
card
=>
card
!=
null
&&
(
card
.
Location
==
CardLocation
.
Grave
||
card
.
Location
==
CardLocation
.
Onfield
))
==
cards
.
Count
())
...
...
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