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
398e4610
Commit
398e4610
authored
Apr 16, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:IceYGO/windbot
parents
caac9c0c
c17b9771
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
43 additions
and
6 deletions
+43
-6
Game/AI/Decks/SkyStrikerExecutor.cs
Game/AI/Decks/SkyStrikerExecutor.cs
+2
-2
Game/AI/DefaultExecutor.cs
Game/AI/DefaultExecutor.cs
+7
-0
Game/AI/Enums/Floodgate.cs
Game/AI/Enums/Floodgate.cs
+19
-1
Game/AI/Enums/InvincibleMonster.cs
Game/AI/Enums/InvincibleMonster.cs
+3
-1
Game/AI/Enums/ShouldBeDisabledBeforeItUseEffectMonster.cs
Game/AI/Enums/ShouldBeDisabledBeforeItUseEffectMonster.cs
+6
-0
Game/AI/Enums/ShouldNotBeMonsterTarget.cs
Game/AI/Enums/ShouldNotBeMonsterTarget.cs
+2
-1
Game/AI/Enums/ShouldNotBeTarget.cs
Game/AI/Enums/ShouldNotBeTarget.cs
+1
-0
Game/GameBehavior.cs
Game/GameBehavior.cs
+3
-1
No files found.
Game/AI/Decks/SkyStrikerExecutor.cs
View file @
398e4610
...
...
@@ -58,8 +58,8 @@ namespace WindBot.Game.AI.Decks
public
SkyStrikerExecutor
(
GameAI
ai
,
Duel
duel
)
:
base
(
ai
,
duel
)
{
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
AshBlossom
,
Default
Trap
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
GhostRabbit
,
Default
Trap
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
AshBlossom
,
Default
AshBlossomAndJoyousSpring
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
GhostRabbit
,
Default
GhostOgreAndSnowRabbit
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
EffectVeiler
,
DefaultBreakthroughSkill
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
SolemnWarning
,
DefaultSolemnWarning
);
AddExecutor
(
ExecutorType
.
Activate
,
CardId
.
SolemnJudgment
,
DefaultSolemnJudgment
);
...
...
Game/AI/DefaultExecutor.cs
View file @
398e4610
...
...
@@ -38,12 +38,15 @@ namespace WindBot.Game.AI
public
const
int
CosmicCyclone
=
8267140
;
public
const
int
ChickenGame
=
67616300
;
public
const
int
SantaClaws
=
46565218
;
public
const
int
CastelTheSkyblasterMusketeer
=
82633039
;
public
const
int
CrystalWingSynchroDragon
=
50954680
;
public
const
int
NumberS39UtopiaTheLightning
=
56832966
;
public
const
int
Number39Utopia
=
84013237
;
public
const
int
UltimayaTzolkin
=
1686814
;
public
const
int
MekkKnightCrusadiaAstram
=
21887175
;
public
const
int
HamonLordofStrikingThunder
=
32491822
;
public
const
int
MoonMirrorShield
=
19508728
;
public
const
int
PhantomKnightsFogBlade
=
25542642
;
...
...
@@ -87,6 +90,7 @@ namespace WindBot.Game.AI
:
base
(
ai
,
duel
)
{
AddExecutor
(
ExecutorType
.
Activate
,
_CardId
.
ChickenGame
,
DefaultChickenGame
);
AddExecutor
(
ExecutorType
.
Activate
,
_CardId
.
SantaClaws
);
}
/// <summary>
...
...
@@ -197,6 +201,9 @@ namespace WindBot.Game.AI
if
(
defender
.
IsCode
(
_CardId
.
UltimayaTzolkin
)
&&
!
defender
.
IsDisabled
()
&&
Enemy
.
GetMonsters
().
Any
(
monster
=>
!
monster
.
Equals
(
defender
)
&&
monster
.
HasType
(
CardType
.
Synchro
)))
return
false
;
if
(
Enemy
.
GetMonsters
().
Any
(
monster
=>
!
monster
.
Equals
(
defender
)
&&
monster
.
IsCode
(
_CardId
.
HamonLordofStrikingThunder
)
&&
!
monster
.
IsDisabled
()
&&
monster
.
IsDefense
()))
return
false
;
if
(
defender
.
OwnTargets
.
Any
(
card
=>
card
.
IsCode
(
_CardId
.
PhantomKnightsFogBlade
)
&&
!
card
.
IsDisabled
()))
return
false
;
...
...
Game/AI/Enums/Floodgate.cs
View file @
398e4610
...
...
@@ -82,6 +82,24 @@
InspectorBoarder
=
15397015
,
Mashoudou
=
76375976
,
EternalSoul
=
48680970
,
MarincessBattleOcean
=
91027843
MarincessBattleOcean
=
91027843
,
TopologicZeroboros
=
66403530
,
GladiatorBeastDomitianus
=
33652635
,
SerzielWatcheroftheEvilEye
=
82466274
,
ZerrzielRuleroftheEvilEyed
=
17739335
,
GorgonEmpressoftheEvilEyed
=
29357687
,
UnchainedSoulofRage
=
67680512
,
DracoBerserkeroftheTenyi
=
5041348
,
NidhoggGeneraiderBossofIce
=
49275969
,
UtgardaGeneraiderBossofDelusion
=
744887
,
FrodiGeneraiderBossofSwords
=
40998517
,
HoarrGeneraiderBossofRumbling
=
68199168
,
GodPhoenixGearfried
=
22091647
,
BrotherhoodoftheFireFistEland
=
61472381
,
PredaplantVerteAnaconda
=
70369116
,
RedSupernovaDragon
=
99585850
,
NumberF0UtopicFutureDragon
=
26973555
,
InvokedAugoeides
=
97300502
,
DragonmaidStrahl
=
24799107
}
}
Game/AI/Enums/InvincibleMonster.cs
View file @
398e4610
...
...
@@ -64,6 +64,8 @@
NumberF0UtopicFutureFutureSlash
=
43490025
,
NumberF0UtopicFuture
=
65305468
,
GoukiTheGiantOgre
=
47946130
,
BorrelswordDragon
=
85289965
BorrelswordDragon
=
85289965
,
NumberF0UtopicFutureDragon
=
26973555
,
BorrelendDragon
=
98630720
}
}
Game/AI/Enums/ShouldBeDisabledBeforeItUseEffectMonster.cs
View file @
398e4610
...
...
@@ -44,6 +44,12 @@
PaladinofDarkDragon
=
71408082
,
PaladinofPhotonDragon
=
85346853
,
TwinPhotonLizard
=
29455728
,
TimeThiefRegulator
=
19891131
,
MathmechNabla
=
53577438
,
NidhoggGeneraiderBossofIce
=
49275969
,
HoarrGeneraiderBossofRumbling
=
68199168
,
RedFamiliar
=
8372133
,
AccesscodeTalker
=
86066372
,
CosmoBrain
=
85679527
,
ShiranuiSolitaire
=
94801854
,
...
...
Game/AI/Enums/ShouldNotBeMonsterTarget.cs
View file @
398e4610
...
...
@@ -13,6 +13,7 @@
CXyzSimontheGreatMoralLeader
=
41147577
,
PaleozoicAnomalocaris
=
61307542
,
PaleozoicOpabinia
=
37649320
,
BorreloadDragon
=
31833038
BorreloadDragon
=
31833038
,
BorrelendDragon
=
98630720
}
}
Game/AI/Enums/ShouldNotBeTarget.cs
View file @
398e4610
...
...
@@ -49,5 +49,6 @@
Blackwing_FullArmoredWing
=
54082269
,
DragunofRedEyes
=
37818794
,
RedEyesBDragon
=
74677422
,
// sometimes the name of DragunofRedEyes will be changed to RedEyesBDragon
TheArrivalCyberseIgnister
=
11738489
}
}
Game/GameBehavior.cs
View file @
398e4610
...
...
@@ -691,12 +691,14 @@ namespace WindBot.Game
private
void
OnChaining
(
BinaryReader
packet
)
{
packet
.
ReadInt32
();
// card id
int
cardId
=
packet
.
ReadInt32
();
int
pcc
=
GetLocalPlayer
(
packet
.
ReadByte
());
int
pcl
=
packet
.
ReadByte
();
int
pcs
=
packet
.
ReadSByte
();
int
subs
=
packet
.
ReadSByte
();
ClientCard
card
=
_duel
.
GetCard
(
pcc
,
pcl
,
pcs
,
subs
);
if
(
card
.
Id
==
0
)
card
.
SetId
(
cardId
);
int
cc
=
GetLocalPlayer
(
packet
.
ReadByte
());
if
(
_debug
)
if
(
card
!=
null
)
Logger
.
WriteLine
(
"("
+
cc
.
ToString
()
+
" 's "
+
(
card
.
Name
??
"UnKnowCard"
)
+
" activate effect)"
);
...
...
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