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
nanahira
windbot
Commits
93cbaf1f
Commit
93cbaf1f
authored
Jun 28, 2020
by
wind2009
Committed by
GitHub
Jun 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix infinite operation of Witchcraft's PSY-Framelord Omega (#132)
parent
b268fcb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
Game/AI/Decks/WitchcraftExecutor.cs
Game/AI/Decks/WitchcraftExecutor.cs
+9
-1
No files found.
Game/AI/Decks/WitchcraftExecutor.cs
View file @
93cbaf1f
...
@@ -197,6 +197,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -197,6 +197,7 @@ namespace WindBot.Game.AI.Decks
bool
MagicianRightHand_used
=
false
;
bool
MagicianRightHand_used
=
false
;
ClientCard
MagiciansLeftHand_negate
=
null
;
ClientCard
MagiciansLeftHand_negate
=
null
;
ClientCard
MagicianRightHand_negate
=
null
;
ClientCard
MagicianRightHand_negate
=
null
;
int
PSYOmega_count
=
0
;
// go first
// go first
public
override
bool
OnSelectHand
()
public
override
bool
OnSelectHand
()
...
@@ -282,7 +283,8 @@ namespace WindBot.Game.AI.Decks
...
@@ -282,7 +283,8 @@ namespace WindBot.Game.AI.Decks
FirstCheckSS
.
Clear
();
FirstCheckSS
.
Clear
();
UseSSEffect
.
Clear
();
UseSSEffect
.
Clear
();
ActivatedCards
.
Clear
();
ActivatedCards
.
Clear
();
// CalledbytheGrave刷新
int
PSYOmega_count
=
0
;
// CalledbytheGrave refrest
List
<
int
>
key_list
=
CalledbytheGraveCount
.
Keys
.
ToList
();
List
<
int
>
key_list
=
CalledbytheGraveCount
.
Keys
.
ToList
();
foreach
(
int
dic
in
key_list
)
foreach
(
int
dic
in
key_list
)
{
{
...
@@ -2501,15 +2503,20 @@ namespace WindBot.Game.AI.Decks
...
@@ -2501,15 +2503,20 @@ namespace WindBot.Game.AI.Decks
// recycle from grave
// recycle from grave
if
(
Card
.
Location
==
CardLocation
.
Grave
)
if
(
Card
.
Location
==
CardLocation
.
Grave
)
{
{
if
(
PSYOmega_count
>=
5
){
return
false
;
}
List
<
ClientCard
>
enemy_danger
=
CheckDangerousCardinEnemyGrave
();
List
<
ClientCard
>
enemy_danger
=
CheckDangerousCardinEnemyGrave
();
if
(
enemy_danger
.
Count
>
0
)
if
(
enemy_danger
.
Count
>
0
)
{
{
AI
.
SelectCard
(
enemy_danger
);
AI
.
SelectCard
(
enemy_danger
);
PSYOmega_count
++;
return
true
;
return
true
;
}
}
if
(!
Bot
.
HasInHandOrInSpellZoneOrInGraveyard
(
CardId
.
Holiday
)
&&
Bot
.
HasInGraveyard
(
important_witchcraft
))
if
(!
Bot
.
HasInHandOrInSpellZoneOrInGraveyard
(
CardId
.
Holiday
)
&&
Bot
.
HasInGraveyard
(
important_witchcraft
))
{
{
AI
.
SelectCard
(
important_witchcraft
);
AI
.
SelectCard
(
important_witchcraft
);
PSYOmega_count
++;
return
true
;
return
true
;
}
}
if
(
CheckProblematicCards
()
==
null
)
if
(
CheckProblematicCards
()
==
null
)
...
@@ -2518,6 +2525,7 @@ namespace WindBot.Game.AI.Decks
...
@@ -2518,6 +2525,7 @@ namespace WindBot.Game.AI.Decks
CardId
.
MaxxC
,
CardId
.
AshBlossom_JoyousSpring
,
CardId
.
MaxxC
,
CardId
.
AshBlossom_JoyousSpring
,
CardId
.
MagicianRightHand
,
CardId
.
MagiciansLeftHand
,
CardId
.
MagiciansRestage
,
CardId
.
Patronus
,
CardId
.
MagicianRightHand
,
CardId
.
MagiciansLeftHand
,
CardId
.
MagiciansRestage
,
CardId
.
Patronus
,
CardId
.
LightningStorm
,
CardId
.
Reasoning
);
CardId
.
LightningStorm
,
CardId
.
Reasoning
);
PSYOmega_count
++;
return
true
;
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