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
0c4c7334
Commit
0c4c7334
authored
Oct 08, 2021
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "update card::add_effect() (#404)"
This reverts commit
6e88d92c
.
parent
6e88d92c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
card.cpp
card.cpp
+0
-7
No files found.
card.cpp
View file @
0c4c7334
...
@@ -1649,13 +1649,6 @@ int32 card::add_effect(effect* peffect) {
...
@@ -1649,13 +1649,6 @@ int32 card::add_effect(effect* peffect) {
if
(
peffect
->
type
&
EFFECT_TYPE_SINGLE
&&
!
peffect
->
is_flag
(
EFFECT_FLAG_SINGLE_RANGE
)
&&
peffect
->
owner
==
this
if
(
peffect
->
type
&
EFFECT_TYPE_SINGLE
&&
!
peffect
->
is_flag
(
EFFECT_FLAG_SINGLE_RANGE
)
&&
peffect
->
owner
==
this
&&
get_status
(
STATUS_DISABLED
)
&&
(
peffect
->
reset_flag
&
RESET_DISABLE
))
&&
get_status
(
STATUS_DISABLED
)
&&
(
peffect
->
reset_flag
&
RESET_DISABLE
))
return
0
;
return
0
;
// the trigger effect in phase is "once per turn" by default
if
(
peffect
->
code
&
EVENT_PHASE
&&
peffect
->
code
&
(
PHASE_DRAW
|
PHASE_STANDBY
|
PHASE_END
)
&&
peffect
->
type
&
(
EFFECT_TYPE_TRIGGER_O
|
EFFECT_TYPE_TRIGGER_F
)
&&
!
peffect
->
is_flag
(
EFFECT_FLAG_COUNT_LIMIT
))
{
peffect
->
flag
[
0
]
|=
EFFECT_FLAG_COUNT_LIMIT
;
peffect
->
count_limit
=
1
;
peffect
->
count_limit_max
=
1
;
}
card_set
check_target
=
{
this
};
card_set
check_target
=
{
this
};
effect_container
::
iterator
eit
;
effect_container
::
iterator
eit
;
if
(
peffect
->
type
&
EFFECT_TYPE_SINGLE
)
{
if
(
peffect
->
type
&
EFFECT_TYPE_SINGLE
)
{
...
...
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