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
Tang Xinwei
windbot
Commits
b5cabb3d
Commit
b5cabb3d
authored
Jun 30, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Zoodiac deck
parent
86066c75
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
4 deletions
+31
-4
Game/AI/Decks/ZoodiacExecutor.cs
Game/AI/Decks/ZoodiacExecutor.cs
+31
-4
No files found.
Game/AI/Decks/ZoodiacExecutor.cs
View file @
b5cabb3d
...
...
@@ -49,6 +49,7 @@ namespace MycardBot.Game.AI.Decks
bool
已特殊召唤虎炮
=
false
;
bool
已特殊召唤狗环
=
false
;
bool
已特殊召唤牛犄
=
false
;
int
蛇笞发动次数
=
0
;
public
ZoodiacExecutor
(
GameAI
ai
,
Duel
duel
)
:
base
(
ai
,
duel
)
...
...
@@ -129,6 +130,7 @@ namespace MycardBot.Game.AI.Decks
已特殊召唤虎炮
=
false
;
已特殊召唤狗环
=
false
;
已特殊召唤牛犄
=
false
;
蛇笞发动次数
=
0
;
}
public
override
bool
OnPreBattleBetween
(
ClientCard
attacker
,
ClientCard
defender
)
...
...
@@ -519,12 +521,37 @@ namespace MycardBot.Game.AI.Decks
{
if
(
Duel
.
Phase
==
DuelPhase
.
Main1
||
Duel
.
Phase
==
DuelPhase
.
Main2
)
return
false
;
if
(
Card
.
IsDisabled
())
if
(
Card
.
IsDisabled
()
||
蛇笞发动次数
>=
3
)
return
false
;
ClientCard
target
=
null
;
List
<
ClientCard
>
monsters
=
Duel
.
Fields
[
0
].
GetMonsters
();
foreach
(
ClientCard
monster
in
monsters
)
{
if
(
monster
.
IsFaceup
()
&&
monster
.
Id
==
(
int
)
CardId
.
十二兽龙枪
&&
!
monster
.
HasXyzMaterial
())
{
target
=
monster
;
break
;
}
}
/*if (target == null)
{
foreach (ClientCard monster in monsters)
{
if (monster.IsFaceup() && monster.Type == (int)CardType.Xyz && monster.Id != (int)CardId.大薰风骑士翠玉 && !monster.HasXyzMaterial())
{
target = monster;
break;
}
}
}*/
if
(
target
==
null
)
{
AI
.
SelectCard
(
new
[]
{
(
int
)
CardId
.
十二兽龙枪
});
}
蛇笞发动次数
++;
return
true
;
}
...
...
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