Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
Windbot-408
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
神之吹息
Windbot-408
Commits
0b580799
Commit
0b580799
authored
Jan 15, 2024
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/IceYGO/windbot
parents
1e836145
68276aa0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
30 deletions
+34
-30
Game/AI/Decks/LabrynthExecutor.cs
Game/AI/Decks/LabrynthExecutor.cs
+34
-30
No files found.
Game/AI/Decks/LabrynthExecutor.cs
View file @
0b580799
...
...
@@ -1713,39 +1713,42 @@ namespace WindBot.Game.AI.Decks
enemySetThisTurn
.
Add
(
card
);
}
}
if
(
previousControler
==
0
)
{
if
(
previousLocation
==
(
int
)
CardLocation
.
MonsterZone
&&
currentLocation
!=
(
int
)
CardLocation
.
MonsterZone
)
{
if
(
summonThisTurn
.
Contains
(
card
))
summonThisTurn
.
Remove
(
card
);
if
(
summonInChainList
.
Contains
(
card
))
summonInChainList
.
Remove
(
card
);
}
if
(
previousLocation
==
(
int
)
CardLocation
.
SpellZone
&&
currentLocation
!=
(
int
)
CardLocation
.
SpellZone
)
{
if
(
setTrapThisTurn
.
Contains
(
card
))
setTrapThisTurn
.
Remove
(
card
);
}
}
if
(
currentControler
==
0
)
if
(
card
!=
null
)
{
ClientCard
currentSolvingChain
=
Duel
.
GetCurrentSolvingChainCard
();
if
(
currentLocation
==
(
int
)
CardLocation
.
SpellZone
&&
(
currentSolvingChain
==
null
||
!
currentSolvingChain
.
IsCode
(
CardId
.
AriasTheLabrynthButler
))
&&
card
!=
null
&&
(
card
.
HasType
(
CardType
.
Trap
)
||
card
.
IsCode
(
CardId
.
WelcomeLabrynth
,
CardId
.
BigWelcomeLabrynth
))
)
{
Logger
.
DebugWriteLine
(
"[setTrapThisTurn]set "
+
card
.
Name
??
"UnknowCard"
);
setTrapThisTurn
.
Add
(
card
);
}
if
(
currentLocation
==
(
int
)
CardLocation
.
MonsterZone
)
if
(
previousControler
==
0
)
{
summonThisTurn
.
Add
(
card
);
if
(
currentSolvingChain
!=
null
)
summonInChainList
.
Add
(
card
);
if
(
previousLocation
==
(
int
)
CardLocation
.
MonsterZone
&&
currentLocation
!=
(
int
)
CardLocation
.
MonsterZone
)
{
if
(
summonThisTurn
.
Contains
(
card
))
summonThisTurn
.
Remove
(
card
);
if
(
summonInChainList
.
Contains
(
card
))
summonInChainList
.
Remove
(
card
);
}
if
(
previousLocation
==
(
int
)
CardLocation
.
SpellZone
&&
currentLocation
!=
(
int
)
CardLocation
.
SpellZone
)
{
if
(
setTrapThisTurn
.
Contains
(
card
))
setTrapThisTurn
.
Remove
(
card
);
}
}
if
(
previousLocation
==
(
int
)
CardLocation
.
Grave
&&
currentLocation
==
(
int
)
CardLocation
.
Removed
)
if
(
currentControler
==
0
)
{
if
(
currentSolvingChain
!=
null
&&
currentSolvingChain
.
Controller
==
1
&&
currentSolvingChain
.
IsCode
(
_CardId
.
CalledByTheGrave
))
ClientCard
currentSolvingChain
=
Duel
.
GetCurrentSolvingChainCard
();
if
(
currentLocation
==
(
int
)
CardLocation
.
SpellZone
&&
(
currentSolvingChain
==
null
||
!
currentSolvingChain
.
IsCode
(
CardId
.
AriasTheLabrynthButler
))
&&
(
card
.
HasType
(
CardType
.
Trap
)
||
card
.
IsCode
(
CardId
.
WelcomeLabrynth
,
CardId
.
BigWelcomeLabrynth
))
)
{
Logger
.
DebugWriteLine
(
"[setTrapThisTurn]set "
+
card
.
Name
??
"UnknowCard"
);
setTrapThisTurn
.
Add
(
card
);
}
if
(
currentLocation
==
(
int
)
CardLocation
.
MonsterZone
)
{
Logger
.
DebugWriteLine
(
"*** "
+
(
card
.
Name
??
"UnknowCard"
)
+
" is banished by CallByTheGrave"
);
calledbytheGraveCount
[
card
.
Id
]
=
2
;
summonThisTurn
.
Add
(
card
);
if
(
currentSolvingChain
!=
null
)
summonInChainList
.
Add
(
card
);
}
if
(
previousLocation
==
(
int
)
CardLocation
.
Grave
&&
currentLocation
==
(
int
)
CardLocation
.
Removed
)
{
if
(
currentSolvingChain
!=
null
&&
currentSolvingChain
.
Controller
==
1
&&
currentSolvingChain
.
IsCode
(
_CardId
.
CalledByTheGrave
))
{
Logger
.
DebugWriteLine
(
"*** "
+
(
card
.
Name
??
"UnknowCard"
)
+
" is banished by CallByTheGrave"
);
calledbytheGraveCount
[
card
.
Id
]
=
2
;
}
}
}
}
...
...
@@ -3444,10 +3447,11 @@ namespace WindBot.Game.AI.Decks
level2MonsterList
.
Sort
(
CompareUsableAttack
);
level4MonsterList
.
Sort
(
CompareUsableAttack
);
bool
checkFlag
=
GetProblematicEnemyCardList
(
true
,
selfType
:
CardType
.
Monster
).
Count
()
>
0
&&
!
CheckWhetherNegated
(
true
,
true
,
CardType
.
Monster
);
if
(
Util
.
GetBestPower
(
Bot
,
true
)
<=
Util
.
GetBestPower
(
Enemy
))
ClientCard
BestEnemyMonster
=
Util
.
GetBestEnemyMonster
();
if
(
BestEnemyMonster
!=
null
&&
Util
.
GetBestPower
(
Bot
,
true
)
<=
Util
.
GetBestPower
(
Enemy
))
{
checkFlag
|=
Util
.
GetBestPower
(
Enemy
)
<=
3500
;
checkFlag
|=
!
Util
.
GetBestEnemyMonster
().
IsShouldNotBeTarget
()
&&
!
Util
.
GetBestEnemyMonster
()
.
IsShouldNotBeMonsterTarget
();
checkFlag
|=
!
BestEnemyMonster
.
IsShouldNotBeTarget
()
&&
!
BestEnemyMonster
.
IsShouldNotBeMonsterTarget
();
}
// 2+4+4
if
(
level2MonsterList
.
Count
()
>=
1
&&
level4MonsterList
.
Count
()
>=
2
)
...
...
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