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
721a8337
Commit
721a8337
authored
Jul 26, 2024
by
wind2009
Committed by
GitHub
Jul 26, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix (#199)
parent
11169f23
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Game/AI/DefaultExecutor.cs
Game/AI/DefaultExecutor.cs
+1
-1
Game/GameAI.cs
Game/GameAI.cs
+1
-1
Game/GameBehavior.cs
Game/GameBehavior.cs
+1
-1
No files found.
Game/AI/DefaultExecutor.cs
View file @
721a8337
...
...
@@ -1579,7 +1579,7 @@ namespace WindBot.Game.AI
if
(
originId
==
0
)
originId
=
card
.
Data
.
Id
;
return
crossoutDesignatorIdList
.
Contains
(
originId
)
||
(
calledbytheGraveIdCountMap
.
ContainsKey
(
originId
)
&&
calledbytheGraveIdCountMap
[
originId
]
>
0
)
||
card
.
IsDisabled
(
);
||
(
card
.
IsDisabled
()
&&
((
int
)
card
.
Location
&
(
int
)
CardLocation
.
Onfield
)
>
0
);
}
protected
bool
DefaultCheckWhetherCardIdIsNegated
(
int
cardId
)
...
...
Game/GameAI.cs
View file @
721a8337
...
...
@@ -1162,6 +1162,7 @@ namespace WindBot.Game
private
bool
ShouldExecute
(
CardExecutor
exec
,
ClientCard
card
,
ExecutorType
type
,
int
desc
=
-
1
,
int
timing
=
-
1
)
{
Executor
.
SetCard
(
type
,
card
,
desc
,
timing
);
if
(
card
.
Id
!=
0
&&
type
==
ExecutorType
.
Activate
)
{
if
(
_activatedCards
.
ContainsKey
(
card
.
Id
)
&&
_activatedCards
[
card
.
Id
]
>=
9
)
...
...
@@ -1169,7 +1170,6 @@ namespace WindBot.Game
if
(!
Executor
.
OnPreActivate
(
card
))
return
false
;
}
Executor
.
SetCard
(
type
,
card
,
desc
,
timing
);
bool
result
=
card
!=
null
&&
exec
.
Type
==
type
&&
(
exec
.
CardId
==
-
1
||
exec
.
CardId
==
card
.
Id
)
&&
(
exec
.
Func
==
null
||
exec
.
Func
());
...
...
Game/GameBehavior.cs
View file @
721a8337
...
...
@@ -1024,7 +1024,7 @@ namespace WindBot.Game
card
.
Controller
=
player
;
}
if
(
card
==
null
)
continue
;
if
(
card
.
Id
==
0
)
if
(
card
.
Id
==
0
||
card
.
Location
==
CardLocation
.
Deck
)
card
.
SetId
(
id
);
cards
.
Add
(
card
);
}
...
...
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