Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile-Cn-Ko-En
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
fallenstardust
YGOMobile-Cn-Ko-En
Commits
c69cb14f
Commit
c69cb14f
authored
Jan 22, 2020
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync ocgcore
parent
e26b45e2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
Classes/ocgcore/card.cpp
Classes/ocgcore/card.cpp
+5
-3
Classes/ocgcore/effect.cpp
Classes/ocgcore/effect.cpp
+0
-3
Classes/ocgcore/processor.cpp
Classes/ocgcore/processor.cpp
+2
-1
No files found.
Classes/ocgcore/card.cpp
View file @
c69cb14f
...
...
@@ -1979,12 +1979,14 @@ uint8 card::refresh_control_status() {
effect
*
peffect
=
eset
.
get_last
();
if
(
peffect
->
id
>=
last_id
)
{
card
*
pcard
=
peffect
->
get_handler
();
pduel
->
game_field
->
core
.
readjust_map
[
pcard
]
++
;
if
(
pduel
->
game_field
->
core
.
readjust_map
[
pcard
]
>
3
)
{
uint8
val
=
(
uint8
)
peffect
->
get_value
(
this
);
if
(
val
!=
current
.
controler
)
pduel
->
game_field
->
core
.
readjust_map
[
pcard
]
++
;
if
(
pduel
->
game_field
->
core
.
readjust_map
[
pcard
]
>
5
)
{
pduel
->
game_field
->
send_to
(
pcard
,
0
,
REASON_RULE
,
peffect
->
get_handler_player
(),
PLAYER_NONE
,
LOCATION_GRAVE
,
0
,
POS_FACEUP
);
return
final
;
}
final
=
(
uint8
)
peffect
->
get_value
(
this
)
;
final
=
val
;
}
}
return
final
;
...
...
Classes/ocgcore/effect.cpp
View file @
c69cb14f
...
...
@@ -436,15 +436,12 @@ int32 effect::is_activate_check(uint8 playerid, const tevent& e, int32 neglect_c
pduel
->
game_field
->
restore_lp_cost
();
return
result
;
}
// check if pcard is the target of the field effect this
int32
effect
::
is_target
(
card
*
pcard
)
{
if
(
type
&
EFFECT_TYPE_ACTIONS
)
return
FALSE
;
if
(
type
&
(
EFFECT_TYPE_SINGLE
|
EFFECT_TYPE_EQUIP
|
EFFECT_TYPE_XMATERIAL
)
&&
!
(
type
&
EFFECT_TYPE_FIELD
))
return
TRUE
;
if
((
type
&
EFFECT_TYPE_TARGET
)
&&
!
(
type
&
EFFECT_TYPE_FIELD
))
{
if
(
pcard
->
get_status
(
STATUS_SUMMONING
|
STATUS_SUMMON_DISABLED
|
STATUS_ACTIVATE_DISABLED
|
STATUS_SPSUMMON_STEP
))
return
FALSE
;
return
is_fit_target_function
(
pcard
);
}
if
(
pcard
&&
!
is_flag
(
EFFECT_FLAG_SET_AVAILABLE
)
&&
(
pcard
->
current
.
location
&
LOCATION_ONFIELD
)
...
...
Classes/ocgcore/processor.cpp
View file @
c69cb14f
...
...
@@ -2620,6 +2620,7 @@ int32 field::process_battle_command(uint16 step) {
return
FALSE
;
}
case
8
:
{
core
.
attack_cancelable
=
TRUE
;
pduel
->
write_buffer8
(
MSG_ATTACK
);
pduel
->
write_buffer32
(
core
.
attacker
->
get_info_location
());
if
(
core
.
attack_target
)
{
...
...
@@ -2703,6 +2704,7 @@ int32 field::process_battle_command(uint16 step) {
add_process
(
PROCESSOR_SELECT_YESNO
,
0
,
0
,
0
,
infos
.
turn_player
,
30
);
else
{
returns
.
ivalue
[
0
]
=
TRUE
;
core
.
attack_cancelable
=
FALSE
;
}
return
FALSE
;
}
...
...
@@ -2711,7 +2713,6 @@ int32 field::process_battle_command(uint16 step) {
if
(
returns
.
ivalue
[
0
])
{
core
.
units
.
begin
()
->
arg1
=
TRUE
;
core
.
units
.
begin
()
->
arg3
=
FALSE
;
core
.
attack_cancelable
=
TRUE
;
core
.
units
.
begin
()
->
step
=
3
;
}
return
FALSE
;
...
...
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