Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
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
ygopro-core
Commits
75c8695e
Commit
75c8695e
authored
Jan 29, 2024
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add is_gemini_summoning
parent
3c1f5f3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
field.h
field.h
+1
-0
operations.cpp
operations.cpp
+3
-0
No files found.
field.h
View file @
75c8695e
...
...
@@ -300,6 +300,7 @@ struct processor {
uint8
coin_result
[
MAX_COIN_COUNT
]{};
int32
coin_count
{
0
};
bool
is_target_ready
{
false
};
bool
is_gemini_summoning
{
false
};
uint8
to_bp
{
FALSE
};
uint8
to_m2
{
FALSE
};
...
...
operations.cpp
View file @
75c8695e
...
...
@@ -1824,6 +1824,7 @@ int32 field::summon(uint16 step, uint8 sumplayer, card* target, effect* proc, ui
target
->
summon_info
|=
SUMMON_TYPE_NORMAL
;
target
->
current
.
reason_effect
=
0
;
target
->
current
.
reason_player
=
sumplayer
;
core
.
is_gemini_summoning
=
true
;
effect
*
deffect
=
pduel
->
new_effect
();
deffect
->
owner
=
target
;
deffect
->
code
=
EFFECT_DUAL_STATUS
;
...
...
@@ -1895,6 +1896,7 @@ int32 field::summon(uint16 step, uint8 sumplayer, card* target, effect* proc, ui
core
.
units
.
begin
()
->
step
=
14
;
return
FALSE
;
}
core
.
is_gemini_summoning
=
false
;
if
(
proc
)
{
remove_oath_effect
(
proc
);
if
(
proc
->
is_flag
(
EFFECT_FLAG_COUNT_LIMIT
)
&&
(
proc
->
count_code
&
EFFECT_COUNT_CODE_OATH
))
{
...
...
@@ -1914,6 +1916,7 @@ int32 field::summon(uint16 step, uint8 sumplayer, card* target, effect* proc, ui
return
TRUE
;
}
case
15
:
{
core
.
is_gemini_summoning
=
false
;
if
(
proc
)
{
release_oath_relation
(
proc
);
}
...
...
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