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
a829ae8c
Commit
a829ae8c
authored
Aug 21, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix EvenlyMatchedToBP
parent
0ef3daf5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
Game/AI/Decks/GrenMajuThunderBoarderExecutor.cs
Game/AI/Decks/GrenMajuThunderBoarderExecutor.cs
+7
-17
No files found.
Game/AI/Decks/GrenMajuThunderBoarderExecutor.cs
View file @
a829ae8c
...
...
@@ -58,6 +58,7 @@ namespace WindBot.Game.AI.Decks
public
GrenMajuThunderBoarderExecutor
(
GameAI
ai
,
Duel
duel
)
:
base
(
ai
,
duel
)
{
AddExecutor
(
ExecutorType
.
GoToBattlePhase
,
EvenlyMatchedToBP
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
EvenlyMatched
,
EvenlyMatchedeff
);
//Sticker
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
MacroCosmos
,
MacroCosmoseff
);
...
...
@@ -102,19 +103,11 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
SpellSet
,
SpellSet
);
}
bool
CardOfDemiseeff_used
=
false
;
bool
plan_A
=
false
;
bool
eater_eff
=
false
;
public
override
void
OnNewTurn
()
{
eater_eff
=
false
;
CardOfDemiseeff_used
=
false
;
if
(
Bot
.
HasInHand
(
CardId
.
EvenlyMatched
)
&&
Duel
.
Turn
==
2
&&
Enemy
.
GetFieldCount
()>=
2
)
{
Logger
.
DebugWriteLine
(
"***********plan_A"
);
plan_A
=
true
;
//todo:Duel.Global.ToBattlePhase = true;
}
}
public
override
void
OnNewPhase
()
...
...
@@ -182,15 +175,17 @@ namespace WindBot.Game.AI.Decks
return
Duel
.
Player
==
1
;
}
private
bool
EvenlyMatchedToBP
()
{
return
Bot
.
HasInHand
(
CardId
.
EvenlyMatched
)
&&
Duel
.
Turn
>=
2
&&
Enemy
.
GetFieldCount
()
>=
2
;
}
private
bool
EvenlyMatchedeff
()
{
// todo:Duel.Global.ToBattlePhase = false;
plan_A
=
false
;
return
true
;
}
private
bool
InfiniteImpermanenceeff
()
{
if
(
plan_A
)
return
false
;
AI
.
SelectPlace
(
Zones
.
z2
);
ClientCard
target
=
Enemy
.
MonsterZone
.
GetShouldBeDisabledBeforeItUseEffectMonster
();
if
(
target
!=
null
)
...
...
@@ -368,21 +363,18 @@ namespace WindBot.Game.AI.Decks
private
bool
InspectBoardersummon
()
{
if
(
plan_A
)
return
false
;
AI
.
SelectPlace
(
Zones
.
z4
|
Zones
.
z0
);
return
true
;
}
private
bool
GrenMajuDaEizosummon
()
{
if
(
Duel
.
Turn
==
1
)
return
false
;
if
(
plan_A
)
return
false
;
AI
.
SelectPlace
(
Zones
.
z4
|
Zones
.
z0
);
return
Bot
.
Banished
.
Count
>=
6
;
}
private
bool
ThunderKingRaiOhsummon
()
{
if
(
plan_A
)
return
false
;
AI
.
SelectPlace
(
Zones
.
z4
|
Zones
.
z0
);
return
true
;
}
...
...
@@ -440,7 +432,6 @@ namespace WindBot.Game.AI.Decks
private
bool
EaterOfMillionssp
()
{
if
(
Bot
.
HasInMonstersZone
(
CardId
.
InspectBoarder
)
&&
!
eater_eff
)
return
false
;
if
(
plan_A
)
return
false
;
if
(
AI
.
Utils
.
GetProblematicEnemyMonster
()
==
null
&&
Bot
.
ExtraDeck
.
Count
<
5
)
return
false
;
if
(
Bot
.
GetMonstersInMainZone
().
Count
>=
5
)
return
false
;
if
(
AI
.
Utils
.
IsTurn1OrMain2
())
return
false
;
...
...
@@ -547,7 +538,6 @@ namespace WindBot.Game.AI.Decks
private
bool
SpellSet
()
{
if
(
plan_A
)
return
false
;
int
count
=
0
;
foreach
(
ClientCard
check
in
Bot
.
Hand
)
{
...
...
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