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
ca6f8413
Commit
ca6f8413
authored
Jul 21, 2024
by
mercury233
Committed by
GitHub
Jul 21, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
keep last active_type until the next activate (#615)
parent
8f4b2899
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
effect.cpp
effect.cpp
+3
-3
effect.h
effect.h
+1
-1
processor.cpp
processor.cpp
+2
-1
No files found.
effect.cpp
View file @
ca6f8413
...
...
@@ -299,7 +299,7 @@ int32 effect::is_activateable(uint8 playerid, const tevent& e, int32 neglect_con
return
FALSE
;
}
else
if
(
!
(
type
&
EFFECT_TYPE_CONTINUOUS
))
{
card
*
phandler
=
get_handler
();
if
(
!
(
phandler
->
get_type
()
&
TYPE_MONSTER
)
&&
(
get_active_type
()
&
TYPE_MONSTER
))
if
(
!
(
phandler
->
get_type
()
&
TYPE_MONSTER
)
&&
(
get_active_type
(
FALSE
)
&
TYPE_MONSTER
))
return
FALSE
;
if
((
type
&
EFFECT_TYPE_QUICK_O
)
&&
is_flag
(
EFFECT_FLAG_DELAY
)
&&
!
in_range
(
phandler
))
return
FALSE
;
...
...
@@ -837,9 +837,9 @@ void effect::set_active_type() {
if
(
active_type
&
TYPE_TRAPMONSTER
)
active_type
&=
~
TYPE_TRAP
;
}
uint32
effect
::
get_active_type
()
{
uint32
effect
::
get_active_type
(
uint8
uselast
)
{
if
(
type
&
0x7f0
)
{
if
(
active_type
)
if
(
active_type
&&
uselast
)
return
active_type
;
else
if
((
type
&
EFFECT_TYPE_ACTIVATE
)
&&
(
get_handler
()
->
data
.
type
&
TYPE_PENDULUM
))
return
TYPE_PENDULUM
+
TYPE_SPELL
;
...
...
effect.h
View file @
ca6f8413
...
...
@@ -109,7 +109,7 @@ public:
int32
in_range
(
const
chain
&
ch
);
void
set_activate_location
();
void
set_active_type
();
uint32
get_active_type
();
uint32
get_active_type
(
uint8
uselast
=
TRUE
);
int32
get_code_type
()
const
;
bool
is_flag
(
effect_flag
x
)
const
{
...
...
processor.cpp
View file @
ca6f8413
...
...
@@ -4497,7 +4497,8 @@ int32 field::solve_chain(uint16 step, uint32 chainend_arg1, uint32 chainend_arg2
destroy
(
fscard
,
0
,
REASON_RULE
,
1
-
pcard
->
current
.
controler
);
}
}
peffect
->
active_type
=
0
;
// keep last active_type until the next activate, for the using in script
// peffect->active_type = 0;
peffect
->
active_handler
=
0
;
pcard
->
release_relation
(
*
cait
);
if
(
cait
->
target_cards
)
...
...
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