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
alstroemeria-silentlove
windbot
Commits
85b9b0ce
Commit
85b9b0ce
authored
Mar 07, 2019
by
wind2009
Committed by
GitHub
Mar 07, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1 from IceYGO/master
merge
parents
bd858159
0fe0aaaa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
13 deletions
+48
-13
Decks/AI_Altergeist.ydk
Decks/AI_Altergeist.ydk
+7
-8
Game/AI/Decks/AltergeistExecutor.cs
Game/AI/Decks/AltergeistExecutor.cs
+28
-0
Game/AI/Decks/DragunityExecutor.cs
Game/AI/Decks/DragunityExecutor.cs
+9
-1
Game/AI/Decks/SkyStrikerExecutor.cs
Game/AI/Decks/SkyStrikerExecutor.cs
+3
-3
WindBotInfo.cs
WindBotInfo.cs
+1
-1
No files found.
Decks/AI_Altergeist.ydk
View file @
85b9b0ce
...
...
@@ -8,9 +8,6 @@
42790071
14558127
14558127
59438930
62015408
62015408
89538537
89538537
23434538
...
...
@@ -22,6 +19,8 @@
2295440
18144506
35261759
49238328
49238328
68462976
68462976
10045474
...
...
@@ -45,16 +44,16 @@
99916754
86221741
85289965
5043010
85289965
49725936
49725936
24094258
59934749
1508649
1508649
1508649
50588353
63288573
90673288
41999284
41999284
41999284
94259633
94259633
!side
Game/AI/Decks/AltergeistExecutor.cs
View file @
85b9b0ce
...
...
@@ -24,6 +24,7 @@ namespace WindBot.Game.AI.Decks
public
const
int
Meluseek
=
25533642
;
public
const
int
OneForOne
=
2295440
;
public
const
int
PotofDesires
=
35261759
;
public
const
int
PotofIndulgence
=
49238328
;
public
const
int
Impermanence
=
10045474
;
public
const
int
WakingtheDragon
=
10813327
;
public
const
int
EvenlyMatched
=
15693423
;
...
...
@@ -115,6 +116,7 @@ namespace WindBot.Game.AI.Decks
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
MaxxC
,
G_activate
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
Anti_Spell
,
Anti_Spell_activate
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
PotofIndulgence
,
PotofIndulgence_activate
);
AddExecutor
(
ExecutorType
.
Activate
,
field_activate
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
SecretVillage
,
SecretVillage_activate
);
...
...
@@ -2155,6 +2157,32 @@ namespace WindBot.Game.AI.Decks
return
false
;
}
public
bool
PotofIndulgence_activate
()
{
if
(!
spell_trap_activate
())
return
false
;
if
(!
Bot
.
HasInGraveyard
(
CardId
.
Linkuriboh
)
&&
!
Bot
.
HasInGraveyard
(
CardId
.
Hexstia
))
{
int
important_count
=
0
;
foreach
(
ClientCard
card
in
Bot
.
ExtraDeck
)
{
if
(
card
.
Id
==
CardId
.
Linkuriboh
||
card
.
Id
==
CardId
.
Hexstia
)
{
important_count
++;
}
}
if
(
important_count
>
0
)
{
AI
.
SelectPlace
(
SelectSTPlace
(
Card
,
true
));
AI
.
SelectOption
(
1
);
return
true
;
}
return
false
;
}
AI
.
SelectPlace
(
SelectSTPlace
(
Card
,
true
));
AI
.
SelectOption
(
1
);
return
true
;
}
public
bool
Anima_ss
()
{
if
(
Duel
.
Phase
!=
DuelPhase
.
Main2
)
return
false
;
...
...
Game/AI/Decks/DragunityExecutor.cs
View file @
85b9b0ce
...
...
@@ -430,7 +430,15 @@ namespace WindBot.Game.AI.Decks
&&
Bot
.
HasInGraveyard
(
CardId
.
DragunityPhalanx
))
||
Bot
.
HasInMonstersZone
(
CardId
.
DragunityPhalanx
)
||
Bot
.
HasInHand
(
CardId
.
DragunitySpearOfDestiny
))
return
true
;
{
List
<
ClientCard
>
monster_sorted
=
Bot
.
GetMonsters
();
monster_sorted
.
Sort
(
AIFunctions
.
CompareCardAttack
);
foreach
(
ClientCard
monster
in
monster_sorted
)
{
AI
.
SelectMaterials
(
monster
);
return
true
;
}
}
return
false
;
}
...
...
Game/AI/Decks/SkyStrikerExecutor.cs
View file @
85b9b0ce
...
...
@@ -261,7 +261,7 @@ namespace WindBot.Game.AI.Decks
private
bool
AfterburnersEffect
()
{
ClientCard
target
=
AI
.
Utils
.
GetBestEnemyMonster
(
true
);
ClientCard
target
=
AI
.
Utils
.
GetBestEnemyMonster
(
true
,
true
);
if
(
target
!=
null
)
{
AI
.
SelectCard
(
target
);
...
...
@@ -293,7 +293,7 @@ namespace WindBot.Game.AI.Decks
{
if
(
AI
.
Utils
.
ChainContainsCard
(
CardId
.
WidowAnchor
))
return
false
;
ClientCard
target
=
AI
.
Utils
.
GetProblematicEnemyMonster
();
ClientCard
target
=
AI
.
Utils
.
GetProblematicEnemyMonster
(
0
,
true
);
if
(
target
!=
null
)
{
WidowAnchorTarget
=
target
;
...
...
@@ -382,7 +382,7 @@ namespace WindBot.Game.AI.Decks
if
(!
HaveThreeSpellsInGrave
()
||
Duel
.
Player
==
1
||
Duel
.
Phase
<
DuelPhase
.
Main1
||
Duel
.
Phase
>=
DuelPhase
.
Main2
||
AI
.
Utils
.
ChainContainsCard
(
CardId
.
WidowAnchor
))
return
false
;
ClientCard
target
=
AI
.
Utils
.
GetBestEnemyMonster
(
true
);
ClientCard
target
=
AI
.
Utils
.
GetBestEnemyMonster
(
true
,
true
);
if
(
target
!=
null
&&
!
target
.
IsDisabled
()
&&
!
target
.
HasType
(
CardType
.
Normal
))
{
WidowAnchorTarget
=
target
;
...
...
WindBotInfo.cs
View file @
85b9b0ce
...
...
@@ -22,7 +22,7 @@ namespace WindBot
Host
=
"127.0.0.1"
;
Port
=
7911
;
HostInfo
=
""
;
Version
=
0x134
7
;
Version
=
0x134
8
;
Hand
=
0
;
Debug
=
false
;
Chat
=
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