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
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
Hide 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
...
@@ -57,7 +57,8 @@ namespace WindBot.Game.AI.Decks
...
@@ -57,7 +57,8 @@ namespace WindBot.Game.AI.Decks
public
GrenMajuThunderBoarderExecutor
(
GameAI
ai
,
Duel
duel
)
public
GrenMajuThunderBoarderExecutor
(
GameAI
ai
,
Duel
duel
)
:
base
(
ai
,
duel
)
:
base
(
ai
,
duel
)
{
{
AddExecutor
(
ExecutorType
.
GoToBattlePhase
,
EvenlyMatchedToBP
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
EvenlyMatched
,
EvenlyMatchedeff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
EvenlyMatched
,
EvenlyMatchedeff
);
//Sticker
//Sticker
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
MacroCosmos
,
MacroCosmoseff
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
MacroCosmos
,
MacroCosmoseff
);
...
@@ -102,19 +103,11 @@ namespace WindBot.Game.AI.Decks
...
@@ -102,19 +103,11 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
SpellSet
,
SpellSet
);
AddExecutor
(
ExecutorType
.
SpellSet
,
SpellSet
);
}
}
bool
CardOfDemiseeff_used
=
false
;
bool
CardOfDemiseeff_used
=
false
;
bool
plan_A
=
false
;
bool
eater_eff
=
false
;
bool
eater_eff
=
false
;
public
override
void
OnNewTurn
()
public
override
void
OnNewTurn
()
{
{
eater_eff
=
false
;
eater_eff
=
false
;
CardOfDemiseeff_used
=
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
()
public
override
void
OnNewPhase
()
...
@@ -182,15 +175,17 @@ namespace WindBot.Game.AI.Decks
...
@@ -182,15 +175,17 @@ namespace WindBot.Game.AI.Decks
return
Duel
.
Player
==
1
;
return
Duel
.
Player
==
1
;
}
}
private
bool
EvenlyMatchedToBP
()
{
return
Bot
.
HasInHand
(
CardId
.
EvenlyMatched
)
&&
Duel
.
Turn
>=
2
&&
Enemy
.
GetFieldCount
()
>=
2
;
}
private
bool
EvenlyMatchedeff
()
private
bool
EvenlyMatchedeff
()
{
{
// todo:Duel.Global.ToBattlePhase = false;
plan_A
=
false
;
return
true
;
return
true
;
}
}
private
bool
InfiniteImpermanenceeff
()
private
bool
InfiniteImpermanenceeff
()
{
{
if
(
plan_A
)
return
false
;
AI
.
SelectPlace
(
Zones
.
z2
);
AI
.
SelectPlace
(
Zones
.
z2
);
ClientCard
target
=
Enemy
.
MonsterZone
.
GetShouldBeDisabledBeforeItUseEffectMonster
();
ClientCard
target
=
Enemy
.
MonsterZone
.
GetShouldBeDisabledBeforeItUseEffectMonster
();
if
(
target
!=
null
)
if
(
target
!=
null
)
...
@@ -368,21 +363,18 @@ namespace WindBot.Game.AI.Decks
...
@@ -368,21 +363,18 @@ namespace WindBot.Game.AI.Decks
private
bool
InspectBoardersummon
()
private
bool
InspectBoardersummon
()
{
{
if
(
plan_A
)
return
false
;
AI
.
SelectPlace
(
Zones
.
z4
|
Zones
.
z0
);
AI
.
SelectPlace
(
Zones
.
z4
|
Zones
.
z0
);
return
true
;
return
true
;
}
}
private
bool
GrenMajuDaEizosummon
()
private
bool
GrenMajuDaEizosummon
()
{
{
if
(
Duel
.
Turn
==
1
)
return
false
;
if
(
Duel
.
Turn
==
1
)
return
false
;
if
(
plan_A
)
return
false
;
AI
.
SelectPlace
(
Zones
.
z4
|
Zones
.
z0
);
AI
.
SelectPlace
(
Zones
.
z4
|
Zones
.
z0
);
return
Bot
.
Banished
.
Count
>=
6
;
return
Bot
.
Banished
.
Count
>=
6
;
}
}
private
bool
ThunderKingRaiOhsummon
()
private
bool
ThunderKingRaiOhsummon
()
{
{
if
(
plan_A
)
return
false
;
AI
.
SelectPlace
(
Zones
.
z4
|
Zones
.
z0
);
AI
.
SelectPlace
(
Zones
.
z4
|
Zones
.
z0
);
return
true
;
return
true
;
}
}
...
@@ -440,7 +432,6 @@ namespace WindBot.Game.AI.Decks
...
@@ -440,7 +432,6 @@ namespace WindBot.Game.AI.Decks
private
bool
EaterOfMillionssp
()
private
bool
EaterOfMillionssp
()
{
{
if
(
Bot
.
HasInMonstersZone
(
CardId
.
InspectBoarder
)
&&
!
eater_eff
)
return
false
;
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
(
AI
.
Utils
.
GetProblematicEnemyMonster
()
==
null
&&
Bot
.
ExtraDeck
.
Count
<
5
)
return
false
;
if
(
Bot
.
GetMonstersInMainZone
().
Count
>=
5
)
return
false
;
if
(
Bot
.
GetMonstersInMainZone
().
Count
>=
5
)
return
false
;
if
(
AI
.
Utils
.
IsTurn1OrMain2
())
return
false
;
if
(
AI
.
Utils
.
IsTurn1OrMain2
())
return
false
;
...
@@ -547,7 +538,6 @@ namespace WindBot.Game.AI.Decks
...
@@ -547,7 +538,6 @@ namespace WindBot.Game.AI.Decks
private
bool
SpellSet
()
private
bool
SpellSet
()
{
{
if
(
plan_A
)
return
false
;
int
count
=
0
;
int
count
=
0
;
foreach
(
ClientCard
check
in
Bot
.
Hand
)
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