Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
ygopro-2pick
Commits
77258b7f
Commit
77258b7f
authored
May 25, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f8a80d23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
ocgcore/card.cpp
ocgcore/card.cpp
+5
-2
No files found.
ocgcore/card.cpp
View file @
77258b7f
...
@@ -1040,9 +1040,12 @@ int32 card::add_effect(effect* peffect) {
...
@@ -1040,9 +1040,12 @@ int32 card::add_effect(effect* peffect) {
pduel
->
write_buffer8
(
CHINT_DESC_ADD
);
pduel
->
write_buffer8
(
CHINT_DESC_ADD
);
pduel
->
write_buffer32
(
peffect
->
description
);
pduel
->
write_buffer32
(
peffect
->
description
);
}
}
if
(
peffect
->
type
&
EFFECT_TYPE_SINGLE
&&
peffect
->
code
==
EFFECT_UPDATE_LEVEL
&&
!
(
peffect
->
flag
&
EFFECT_FLAG_SINGLE_RANGE
)
&&
peffect
->
value
>
0
)
{
if
(
peffect
->
type
&
EFFECT_TYPE_SINGLE
&&
peffect
->
code
==
EFFECT_UPDATE_LEVEL
&&
!
(
peffect
->
flag
&
EFFECT_FLAG_SINGLE_RANGE
))
{
pduel
->
game_field
->
raise_single_event
(
this
,
0
,
EVENT_LEVEL_UP
,
peffect
,
0
,
0
,
0
,
0
);
int32
val
=
peffect
->
get_value
(
this
);
if
(
val
>
0
)
{
pduel
->
game_field
->
raise_single_event
(
this
,
0
,
EVENT_LEVEL_UP
,
peffect
,
0
,
0
,
0
,
val
);
pduel
->
game_field
->
process_single_event
();
pduel
->
game_field
->
process_single_event
();
}
}
}
return
peffect
->
id
;
return
peffect
->
id
;
}
}
...
...
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