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
f4966efc
Commit
f4966efc
authored
Apr 28, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/IceYGO/windbot
parents
60252a31
61d40754
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
300 additions
and
78 deletions
+300
-78
Game/AI/Decks/OrcustExecutor.cs
Game/AI/Decks/OrcustExecutor.cs
+275
-72
Game/AI/Decks/Rank5Executor.cs
Game/AI/Decks/Rank5Executor.cs
+3
-2
Game/AI/Decks/ZexalWeaponsExecutor.cs
Game/AI/Decks/ZexalWeaponsExecutor.cs
+17
-4
Game/GameBehavior.cs
Game/GameBehavior.cs
+5
-0
No files found.
Game/AI/Decks/OrcustExecutor.cs
View file @
f4966efc
This diff is collapsed.
Click to expand it.
Game/AI/Decks/Rank5Executor.cs
View file @
f4966efc
...
@@ -220,8 +220,9 @@ namespace WindBot.Game.AI.Decks
...
@@ -220,8 +220,9 @@ namespace WindBot.Game.AI.Decks
{
{
CardId
.
WindUpSoldier
,
CardId
.
WindUpSoldier
,
CardId
.
StarDrawing
,
CardId
.
StarDrawing
,
CardId
.
ChronomalyGoldenJet
CardId
.
ChronomalyGoldenJet
,
})
||
(
Bot
.
HasInHand
(
CardId
.
MistArchfiend
)
&&
NeedLV5
()))
CardId
.
MistArchfiend
}))
{
{
NormalSummoned
=
false
;
NormalSummoned
=
false
;
DoubleSummonUsed
=
true
;
DoubleSummonUsed
=
true
;
...
...
Game/AI/Decks/ZexalWeaponsExecutor.cs
View file @
f4966efc
...
@@ -79,9 +79,9 @@ namespace WindBot.Game.AI.Decks
...
@@ -79,9 +79,9 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
Number61Volcasaurus
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
Number61Volcasaurus
);
// Weapons
// Weapons
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
ZwTornadoBringer
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
ZwTornadoBringer
,
ZwWeapon
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
ZwLightningBlade
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
ZwLightningBlade
,
ZwWeapon
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
ZwAsuraStrike
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
ZwAsuraStrike
,
ZwWeapon
);
// Special summons
// Special summons
...
@@ -122,6 +122,13 @@ namespace WindBot.Game.AI.Decks
...
@@ -122,6 +122,13 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
SolemnStrike
,
DefaultSolemnStrike
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
SolemnStrike
,
DefaultSolemnStrike
);
}
}
private
int
ZwCount
=
0
;
public
override
void
OnNewTurn
()
{
ZwCount
=
0
;
}
public
override
bool
OnSelectHand
()
public
override
bool
OnSelectHand
()
{
{
return
false
;
return
false
;
...
@@ -164,10 +171,16 @@ namespace WindBot.Game.AI.Decks
...
@@ -164,10 +171,16 @@ namespace WindBot.Game.AI.Decks
if
(
ActivateDescription
==
Util
.
GetStringId
(
CardId
.
ZwLionArms
,
0
))
if
(
ActivateDescription
==
Util
.
GetStringId
(
CardId
.
ZwLionArms
,
0
))
return
true
;
return
true
;
if
(
ActivateDescription
==
Util
.
GetStringId
(
CardId
.
ZwLionArms
,
1
))
if
(
ActivateDescription
==
Util
.
GetStringId
(
CardId
.
ZwLionArms
,
1
))
return
!
Card
.
IsDisabled
();
return
!
Card
.
IsDisabled
()
&&
ZwWeapon
()
;
return
false
;
return
false
;
}
}
private
bool
ZwWeapon
()
{
ZwCount
++;
return
ZwCount
<
10
;
}
private
bool
ReinforcementOfTheArmy
()
private
bool
ReinforcementOfTheArmy
()
{
{
AI
.
SelectCard
(
AI
.
SelectCard
(
...
...
Game/GameBehavior.cs
View file @
f4966efc
...
@@ -506,6 +506,11 @@ namespace WindBot.Game
...
@@ -506,6 +506,11 @@ namespace WindBot.Game
_duel
.
Fields
[
1
].
BattlingMonster
=
null
;
_duel
.
Fields
[
1
].
BattlingMonster
=
null
;
_duel
.
Fields
[
0
].
UnderAttack
=
false
;
_duel
.
Fields
[
0
].
UnderAttack
=
false
;
_duel
.
Fields
[
1
].
UnderAttack
=
false
;
_duel
.
Fields
[
1
].
UnderAttack
=
false
;
List
<
ClientCard
>
monsters
=
_duel
.
Fields
[
0
].
GetMonsters
();
foreach
(
ClientCard
monster
in
monsters
)
{
monster
.
Attacked
=
false
;
}
_select_hint
=
0
;
_select_hint
=
0
;
_ai
.
OnNewPhase
();
_ai
.
OnNewPhase
();
}
}
...
...
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