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
69846aef
Commit
69846aef
authored
Feb 25, 2026
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix usage
parent
0c914f52
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
18 deletions
+23
-18
Game/AI/Decks/ApophisExecutor.cs
Game/AI/Decks/ApophisExecutor.cs
+16
-16
Game/AI/DefaultExecutor.cs
Game/AI/DefaultExecutor.cs
+7
-2
No files found.
Game/AI/Decks/ApophisExecutor.cs
View file @
69846aef
...
...
@@ -332,7 +332,7 @@ namespace WindBot.Game.AI.Decks
public
bool
CheckShouldNoMoreSpSummon
()
{
if
(
CheckAtAdvantage
()
&&
enemyResolvedEffectIdList
.
Contains
(
_CardId
.
MaxxC
)
&&
!
DefaultCheckWhetherBotCanSearch
()
&&
(
Duel
.
Turn
==
1
||
Duel
.
Phase
>=
DuelPhase
.
Main2
))
if
(
CheckAtAdvantage
()
&&
enemyResolvedEffectIdList
.
Contains
(
_CardId
.
MaxxC
)
&&
DefaultCheckWhetherEnemyCanDraw
()
&&
(
Duel
.
Turn
==
1
||
Duel
.
Phase
>=
DuelPhase
.
Main2
))
{
return
true
;
}
...
...
@@ -342,7 +342,7 @@ namespace WindBot.Game.AI.Decks
public
bool
CheckShouldNoMoreSpSummon
(
CardLocation
loc
)
{
if
(
CheckShouldNoMoreSpSummon
())
return
true
;
if
(
DefaultCheckWhetherBotCanSearch
()
||
(
Duel
.
Turn
>
1
&&
Duel
.
Phase
<
DuelPhase
.
Main2
))
return
false
;
if
(
!
DefaultCheckWhetherEnemyCanDraw
()
||
(
Duel
.
Turn
>
1
&&
Duel
.
Phase
<
DuelPhase
.
Main2
))
return
false
;
if
(
enemyResolvedEffectIdList
.
Contains
(
_CardId
.
MulcharmyPurulia
)
&&
(
loc
&
CardLocation
.
Hand
)
!=
0
)
return
true
;
if
(
enemyResolvedEffectIdList
.
Contains
(
_CardId
.
MulcharmyFuwalos
)
&&
(
loc
&
(
CardLocation
.
Deck
|
CardLocation
.
Extra
))
!=
0
)
return
true
;
if
(
enemyResolvedEffectIdList
.
Contains
(
_CardId
.
MulcharmyNyalus
)
&&
(
loc
&
(
CardLocation
.
Grave
|
CardLocation
.
Removed
))
!=
0
)
return
true
;
...
...
@@ -572,7 +572,7 @@ namespace WindBot.Game.AI.Decks
public
int
GetSpecialSummonDrawCount
(
CardLocation
loc
)
{
int
res
=
0
;
if
(
DefaultCheckWhetherBotCanSearch
())
if
(
!
DefaultCheckWhetherEnemyCanDraw
())
{
return
0
;
}
...
...
@@ -960,7 +960,7 @@ namespace WindBot.Game.AI.Decks
if
(
hint
==
HintMsg
.
Set
)
{
int
targetId
=
CardId
.
PrimiteLordlyLode
;
if
(
activatedCardIdList
.
Contains
(
CardId
.
PrimiteLordlyLode
)
||
DefaultCheckWhetherBotCanSearch
()
||
Bot
.
HasInSpellZone
(
CardId
.
PrimiteLordlyLode
))
if
(
activatedCardIdList
.
Contains
(
CardId
.
PrimiteLordlyLode
)
||
!
DefaultCheckWhetherBotCanSearch
()
||
Bot
.
HasInSpellZone
(
CardId
.
PrimiteLordlyLode
))
{
targetId
=
CardId
.
PrimiteDrillbeam
;
}
...
...
@@ -1683,7 +1683,7 @@ namespace WindBot.Game.AI.Decks
public
bool
TheManWithTheMarkActivate
()
{
return
!
CheckWhetherNegated
()
&&
!
DefaultCheckWhetherBotCanSearch
();
return
!
CheckWhetherNegated
()
&&
DefaultCheckWhetherBotCanSearch
();
}
public
bool
Level4MonsterSummon
()
...
...
@@ -1694,7 +1694,7 @@ namespace WindBot.Game.AI.Decks
}
bool
canSummonDragon
=
Bot
.
HasInHand
(
CardId
.
PrimiteDragonEtherBeryl
);
if
(!
activatedCardIdList
.
Contains
(
CardId
.
PrimiteLordlyLode
)
&&
!
DefaultCheckWhetherBotCanSearch
())
if
(!
activatedCardIdList
.
Contains
(
CardId
.
PrimiteLordlyLode
)
&&
DefaultCheckWhetherBotCanSearch
())
{
canSummonDragon
|=
Bot
.
HasInHand
(
CardId
.
PrimiteLordlyLode
)
&&
Bot
.
GetSpellCountWithoutField
()
<
5
;
canSummonDragon
|=
Bot
.
GetSpells
().
Any
(
c
=>
c
.
IsCode
(
CardId
.
PrimiteLordlyLode
)
&&
c
.
IsFacedown
());
...
...
@@ -1724,8 +1724,8 @@ namespace WindBot.Game.AI.Decks
}
bool
canSummonMan
=
Bot
.
HasInHand
(
CardId
.
TheManWithTheMark
);
canSummonMan
|=
Bot
.
HasInHand
(
CardId
.
AnubisTheLastJudge
)
&&
!
DefaultCheckWhetherBotCanSearch
()
&&
CheckRemainInDeck
(
CardId
.
TheManWithTheMark
)
>
0
&&
!
activatedCardIdList
.
Contains
(
CardId
.
AnubisTheLastJudge
);
if
(
Bot
.
HasInHandOrInSpellZone
(
CardId
.
TreasuresOfTheKings
)
&&
!
activatedCardIdList
.
Contains
(
CardId
.
TreasuresOfTheKings
+
1
)
&&
!
DefaultCheckWhetherBotCanSearch
()
&&
CheckRemainInDeck
(
CardId
.
TheManWithTheMark
)
>
0
)
canSummonMan
|=
Bot
.
HasInHand
(
CardId
.
AnubisTheLastJudge
)
&&
DefaultCheckWhetherBotCanSearch
()
&&
CheckRemainInDeck
(
CardId
.
TheManWithTheMark
)
>
0
&&
!
activatedCardIdList
.
Contains
(
CardId
.
AnubisTheLastJudge
);
if
(
Bot
.
HasInHandOrInSpellZone
(
CardId
.
TreasuresOfTheKings
)
&&
!
activatedCardIdList
.
Contains
(
CardId
.
TreasuresOfTheKings
+
1
)
&&
DefaultCheckWhetherBotCanSearch
()
&&
CheckRemainInDeck
(
CardId
.
TheManWithTheMark
)
>
0
)
{
canSummonMan
|=
Bot
.
Graveyard
.
Any
(
c
=>
c
.
IsTrap
());
int
facedownCardCount
=
Bot
.
GetSpells
().
Count
(
c
=>
c
.
IsFacedown
());
...
...
@@ -1875,13 +1875,13 @@ namespace WindBot.Game.AI.Decks
{
if
(
CheckWhetherNegated
(
true
,
true
,
CardType
.
Spell
))
return
false
;
bool
activateFlag
=
false
;
if
(
Bot
.
HasInHandOrHasInMonstersZone
(
CardId
.
PrimiteDragonEtherBeryl
))
if
(
Bot
.
HasInHandOrHasInMonstersZone
(
CardId
.
PrimiteDragonEtherBeryl
)
&&
DefaultCheckWhetherBotCanSearch
()
)
{
// for search drillbeam
activateFlag
|=
CheckRemainInDeck
(
CardId
.
PrimiteDrillbeam
)
>
0
&&
!
DefaultCheckWhetherBotCanSearch
()
;
activateFlag
|=
summonCount
<=
0
&&
!
DefaultCheckWhetherBotCanSearch
()
&&
Card
.
Location
==
CardLocation
.
SpellZone
&&
Card
.
IsFacedown
();
activateFlag
|=
CheckRemainInDeck
(
CardId
.
PrimiteDrillbeam
)
>
0
;
activateFlag
|=
summonCount
<=
0
&&
Card
.
Location
==
CardLocation
.
SpellZone
&&
Card
.
IsFacedown
();
}
if
(
summonCount
>
0
&&
!
Bot
.
HasInHand
(
CardId
.
PrimiteDragonEtherBeryl
)
&&
CheckRemainInDeck
(
CardId
.
PrimiteDragonEtherBeryl
)
>
0
&&
!
DefaultCheckWhetherBotCanSearch
())
if
(
summonCount
>
0
&&
!
Bot
.
HasInHand
(
CardId
.
PrimiteDragonEtherBeryl
)
&&
CheckRemainInDeck
(
CardId
.
PrimiteDragonEtherBeryl
)
>
0
&&
DefaultCheckWhetherBotCanSearch
())
{
// for search ether beryl
activateFlag
|=
Bot
.
HasInGraveyard
(
CardId
.
PrimiteDrillbeam
);
...
...
@@ -1890,7 +1890,7 @@ namespace WindBot.Game.AI.Decks
if
(!
Bot
.
HasInSpellZone
(
CardId
.
PrimiteLordlyLode
,
true
,
true
))
{
// for activate it
activateFlag
|=
!
DefaultCheckWhetherBotCanSearch
();
activateFlag
|=
DefaultCheckWhetherBotCanSearch
();
// for special summon
CardLocation
loc
;
...
...
@@ -1917,7 +1917,7 @@ namespace WindBot.Game.AI.Decks
}
if
(
Card
.
Location
==
CardLocation
.
SpellZone
&&
Card
.
IsFacedown
())
{
activateFlag
|=
!
DefaultCheckWhetherBotCanSearch
();
activateFlag
|=
DefaultCheckWhetherBotCanSearch
();
}
return
activateFlag
;
}
...
...
@@ -1975,7 +1975,7 @@ namespace WindBot.Game.AI.Decks
if
(
Bot
.
GetSpellCountWithoutField
()
==
5
)
{
// for search
if
(
DefaultCheckWhetherBotCanSearch
()
||
CheckRemainInDeck
(
CardId
.
TheManWithTheMark
,
CardId
.
AnubisTheLastJudge
)
==
0
)
if
(
!
DefaultCheckWhetherBotCanSearch
()
||
CheckRemainInDeck
(
CardId
.
TheManWithTheMark
,
CardId
.
AnubisTheLastJudge
)
==
0
)
{
activateFlag
=
false
;
}
...
...
@@ -2923,7 +2923,7 @@ namespace WindBot.Game.AI.Decks
switch
(
Card
.
Id
)
{
case
CardId
.
Terraforming
:
setFlag
|=
CheckRemainInDeck
(
CardId
.
TreasuresOfTheKings
)
>
0
&&
!
DefaultCheckWhetherBotCanSearch
();
setFlag
|=
CheckRemainInDeck
(
CardId
.
TreasuresOfTheKings
)
>
0
&&
DefaultCheckWhetherBotCanSearch
();
break
;
case
CardId
.
PrimiteLordlyLode
:
setFlag
|=
PrimiteLordlyLodeActivateCheck
()
&&
!
canSetSpells
.
Any
(
c
=>
c
.
IsCode
(
CardId
.
PrimiteLordlyLode
));
...
...
Game/AI/DefaultExecutor.cs
View file @
69846aef
...
...
@@ -148,6 +148,7 @@ namespace WindBot.Game.AI
public
const
int
ThunderDragonColossus
=
15291624
;
public
const
int
DeckLockdown
=
1149109
;
public
const
int
DoomZDestruction
=
80320877
;
public
const
int
Mistake
=
59305593
;
public
const
int
BelialMarquisOfDarkness
=
33655493
;
public
const
int
Chirubim
é
PrincessOfAutumnLeaves
=
87294988
;
...
...
@@ -1798,11 +1799,15 @@ namespace WindBot.Game.AI
return
false
;
if
(
mistakenArrestAffectedCount
>
0
)
return
false
;
if
(
Bot
.
HasInMonstersZone
(
_CardId
.
ThunderKingRaiOh
,
notDisabled
:
true
,
faceUp
:
true
)
||
Enemy
.
HasInMonstersZone
(
_CardId
.
ThunderKingRaiOh
,
notDisabled
:
true
,
faceUp
:
true
))
if
(
Bot
.
HasInMonstersZone
(
_CardId
.
ThunderKingRaiOh
,
notDisabled
:
true
,
faceUp
:
true
)
||
Enemy
.
HasInMonstersZone
(
_CardId
.
ThunderKingRaiOh
,
notDisabled
:
true
,
faceUp
:
true
))
return
false
;
if
(
Enemy
.
HasInMonstersZone
(
_CardId
.
ThunderDragonColossus
))
return
false
;
if
(
Bot
.
HasInSpellZone
(
_CardId
.
DeckLockdown
,
notDisabled
:
true
,
faceUp
:
true
)
||
Enemy
.
HasInSpellZone
(
_CardId
.
DeckLockdown
,
notDisabled
:
true
,
faceUp
:
true
))
if
(
Bot
.
HasInSpellZone
(
_CardId
.
DeckLockdown
,
notDisabled
:
true
,
faceUp
:
true
)
||
Enemy
.
HasInSpellZone
(
_CardId
.
DeckLockdown
,
notDisabled
:
true
,
faceUp
:
true
)
||
Bot
.
HasInSpellZone
(
_CardId
.
Mistake
,
notDisabled
:
true
,
faceUp
:
true
)
||
Enemy
.
HasInSpellZone
(
_CardId
.
Mistake
,
notDisabled
:
true
,
faceUp
:
true
))
return
false
;
if
(
Enemy
.
HasInSpellZone
(
_CardId
.
DoomZDestruction
,
notDisabled
:
true
,
faceUp
:
true
))
return
false
;
...
...
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