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
神之吹息
windbot
Commits
a9b13145
Commit
a9b13145
authored
Aug 07, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
parent
d0cdd683
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
Game/AI/DefaultExecutor.cs
Game/AI/DefaultExecutor.cs
+14
-10
Game/Deck.cs
Game/Deck.cs
+4
-4
No files found.
Game/AI/DefaultExecutor.cs
View file @
a9b13145
...
@@ -233,22 +233,25 @@ namespace WindBot.Game.AI
...
@@ -233,22 +233,25 @@ namespace WindBot.Game.AI
}
}
void
DealerMaidenModeAddCardExecutor
()
void
DealerMaidenModeAddCardExecutor
()
{
{
SetFuncFilter
(
ExecutorType
.
Activate
,
()
=>
{
SetFuncFilter
(
ExecutorType
.
Activate
,
()
=>
{
if
(
Card
.
IsCode
(
5990062
))
return
Bot
.
HasInSpellZone
(
9373534
);
//[大逆转谜题]只有在自己场上有手里剑覆盖的场合才发动
if
(
Card
.
IsCode
(
5990062
))
return
Bot
.
HasInSpellZone
(
9373534
);
//[大逆转谜题]只有在自己场上有手里剑覆盖的场合才发动
if
(
Card
.
IsCode
(
3493058
))
return
Bot
.
GetSpellCount
()
+
Enemy
.
GetSpellCount
()
>
0
;
//[骰子旋风]玩家场上有魔陷才发动
if
(
Card
.
IsCode
(
3493058
))
return
Bot
.
GetSpellCount
()
+
Enemy
.
GetSpellCount
()
>
0
;
//[骰子旋风]玩家场上有魔陷才发动
if
(
Card
.
IsCode
(
22802010
))
return
Bot
.
GetMonsterCount
()
<
Enemy
.
GetMonsterCount
();
//[无差别崩坏]自己场上怪兽少于对方才发动
if
(
Card
.
IsCode
(
22802010
))
//[无差别崩坏]自己场上怪兽少于对方才发动
return
Bot
.
MonsterZone
.
Count
(
c
=>
c
!=
null
&&
c
.
IsFaceup
()
&&
!
c
.
HasType
(
CardType
.
Link
))
<
Enemy
.
MonsterZone
.
Count
(
c
=>
c
!=
null
&&
c
.
IsFaceup
()
&&
!
c
.
HasType
(
CardType
.
Link
));
return
false
;
return
false
;
});
});
SetFuncFilter
(
ExecutorType
.
SummonOrSet
,
()
=>
{
SetFuncFilter
(
ExecutorType
.
SummonOrSet
,
()
=>
{
if
(
Card
.
IsCode
(
71625222
))
return
Enemy
.
GetMonsterCount
()
>
0
;
//[时间魔术师]对方场上有怪兽存在才召唤
if
(
Card
.
IsCode
(
71625222
))
return
Enemy
.
GetMonsterCount
()
>
0
;
//[时间魔术师]对方场上有怪兽存在才召唤
int
[]
codes
=
new
[]
{
23434538
,
46502744
,
87170768
,
25137581
,
14558127
,
60643553
,
27204311
,
int
[]
codes
=
new
[]
{
23434538
,
46502744
,
87170768
,
25137581
,
14558127
,
60643553
,
27204311
,
94145021
,
59438930
,
2830693
,
19665973
,
18964575
,
34267821
,
24508238
,
78661338
,
84192580
,
94145021
,
59438930
,
2830693
,
19665973
,
18964575
,
34267821
,
24508238
,
78661338
,
84192580
,
52038441
,
62015408
52038441
,
62015408
};
};
foreach
(
int
code
in
codes
)
if
(
Card
.
IsCode
(
code
))
return
false
;
//过滤手坑
if
(
Card
.
IsCode
(
codes
))
return
false
;
//过滤手坑
return
true
;
return
true
;
});
});
SetFuncFilter
(
ExecutorType
.
SpSummon
,()
=>
{
SetFuncFilter
(
ExecutorType
.
SpSummon
,()
=>
{
if
(
Card
.
HasType
(
CardType
.
Link
))
//链接怪兽特殊召唤前过滤
if
(
Card
.
HasType
(
CardType
.
Link
))
//链接怪兽特殊召唤前过滤
{
{
...
@@ -267,10 +270,11 @@ namespace WindBot.Game.AI
...
@@ -267,10 +270,11 @@ namespace WindBot.Game.AI
}
}
return
false
;
return
false
;
});
});
AddExecutor
(
ExecutorType
.
Activate
,
DefaultGambleCard
);
//默认发动的赌博卡
AddExecutor
(
ExecutorType
.
Activate
,
DefaultGambleCard
);
//默认发动的赌博卡
AddExecutor
(
ExecutorType
.
SpellSet
,
9373534
);
//[封魔手里剑]始终盖放
AddExecutor
(
ExecutorType
.
SpellSet
,
9373534
);
//[封魔手里剑]始终盖放
}
}
BattlePhaseAction
DealerMaidenModeOnSelectAttackTarget
(
ClientCard
attacker
,
IList
<
ClientCard
>
defenders
)
BattlePhaseAction
DealerMaidenModeOnSelectAttackTarget
(
ClientCard
attacker
,
IList
<
ClientCard
>
defenders
)
{
{
if
(
attacker
.
IsCode
(
1102515
))
//暗黑之宝箱怪 LV3
if
(
attacker
.
IsCode
(
1102515
))
//暗黑之宝箱怪 LV3
...
@@ -1146,8 +1150,8 @@ namespace WindBot.Game.AI
...
@@ -1146,8 +1150,8 @@ namespace WindBot.Game.AI
,
17266660
,
21074344
,
94689635
/*宣告者*/
,
17266660
,
21074344
,
94689635
/*宣告者*/
,
18964575
,
20450925
,
19665973
,
28427869
,
27352108
/*攻宣坑*/
,
18964575
,
20450925
,
19665973
,
28427869
,
27352108
/*攻宣坑*/
};
};
foreach
(
int
cardname
in
cardsname
)
if
(
card
.
Id
==
cardname
)
return
true
;
if
(
card
.
IsCode
(
cardsname
)
)
return
true
;
return
false
;
return
false
;
}
}
...
@@ -1732,8 +1736,8 @@ namespace WindBot.Game.AI
...
@@ -1732,8 +1736,8 @@ namespace WindBot.Game.AI
{
{
int
[]
cardsname
=
new
[]
{
3280747
,
37812118
,
50470982
,
43061293
,
37313786
,
3493058
,
38299233
,
25173686
,
71625222
,
36562627
,
19162134
,
81172176
,
21598948
,
39537362
,
36378044
,
38143903
,
96012004
,
62784717
,
84290642
,
3549275
,
41139112
,
36708764
,
74137509
,
126218
,
93078761
,
76895648
,
22802010
,
83241722
,
84397023
,
31863912
,
39454112
,
59905358
,
5990062
,
9373534
,
58577036
int
[]
cardsname
=
new
[]
{
3280747
,
37812118
,
50470982
,
43061293
,
37313786
,
3493058
,
38299233
,
25173686
,
71625222
,
36562627
,
19162134
,
81172176
,
21598948
,
39537362
,
36378044
,
38143903
,
96012004
,
62784717
,
84290642
,
3549275
,
41139112
,
36708764
,
74137509
,
126218
,
93078761
,
76895648
,
22802010
,
83241722
,
84397023
,
31863912
,
39454112
,
59905358
,
5990062
,
9373534
,
58577036
};
};
foreach
(
int
cardname
in
cardsname
)
if
(
Card
.
IsCode
(
card
name
))
return
true
;
if
(
Card
.
IsCode
(
cards
name
))
return
true
;
return
false
;
return
false
;
}
}
}
}
...
...
Game/Deck.cs
View file @
a9b13145
...
@@ -74,10 +74,10 @@ namespace WindBot.Game
...
@@ -74,10 +74,10 @@ namespace WindBot.Game
if
(
deck
.
Cards
.
Count
>
60
)
if
(
deck
.
Cards
.
Count
>
60
)
return
null
;
return
null
;
if
(
deck
.
ExtraCards
.
Count
>
15
)
//
if (deck.ExtraCards.Count > 15)
return
null
;
//
return null;
if
(
deck
.
SideCards
.
Count
>
15
)
//
if (deck.SideCards.Count > 15)
return
null
;
//
return null;
return
deck
;
return
deck
;
}
}
...
...
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