Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
YGOPRO-520DIY
ygopro
Commits
b682f15c
Commit
b682f15c
authored
Sep 03, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
field::send_to()
parent
7f786b11
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
ocgcore/operations.cpp
ocgcore/operations.cpp
+4
-0
ocgcore/processor.cpp
ocgcore/processor.cpp
+1
-0
script/constant.lua
script/constant.lua
+1
-1
No files found.
ocgcore/operations.cpp
View file @
b682f15c
...
...
@@ -2596,6 +2596,7 @@ int32 field::destroy(uint16 step, group * targets, card * target, uint8 battle)
add_process
(
PROCESSOR_OPERATION_REPLACE
,
10
,
eset
[
i
],
targets
,
(
ptr
)
target
,
1
);
return
TRUE
;
}
// PROCESSOR_DESTROY goes here
int32
field
::
destroy
(
uint16
step
,
group
*
targets
,
effect
*
reason_effect
,
uint32
reason
,
uint8
reason_player
)
{
switch
(
step
)
{
case
0
:
{
...
...
@@ -2953,6 +2954,7 @@ int32 field::release(uint16 step, group * targets, effect * reason_effect, uint3
}
return
TRUE
;
}
// PROCESSOR_SENDTO_STEP goes here
int32
field
::
send_to
(
uint16
step
,
group
*
targets
,
card
*
target
)
{
uint8
playerid
=
(
target
->
operation_param
>>
16
)
&
0xff
;
uint8
dest
=
(
target
->
operation_param
>>
8
)
&
0xff
;
...
...
@@ -2975,6 +2977,7 @@ int32 field::send_to(uint16 step, group * targets, card * target) {
}
return
TRUE
;
}
// PROCESSOR_SENDTO goes here
int32
field
::
send_to
(
uint16
step
,
group
*
targets
,
effect
*
reason_effect
,
uint32
reason
,
uint8
reason_player
)
{
struct
exargs
{
group
*
targets
;
...
...
@@ -3449,6 +3452,7 @@ int32 field::send_to(uint16 step, group * targets, effect * reason_effect, uint3
core
.
operated_set
=
targets
->
container
;
returns
.
ivalue
[
0
]
=
targets
->
container
.
size
();
pduel
->
delete_group
(
targets
);
adjust_all
();
return
TRUE
;
}
}
...
...
ocgcore/processor.cpp
View file @
b682f15c
...
...
@@ -4767,6 +4767,7 @@ void field::adjust_instant() {
adjust_disable_check_list
();
adjust_self_destroy_set
();
}
// this includes adjust_instant()
void
field
::
adjust_all
()
{
core
.
readjust_map
.
clear
();
add_process
(
PROCESSOR_ADJUST
,
0
,
0
,
0
,
0
,
0
);
...
...
script/constant.lua
View file @
b682f15c
...
...
@@ -502,7 +502,7 @@ EVENT_CHAIN_END =1026 --连锁串结束时
EVENT_CHAINING
=
1027
--效果发动时
EVENT_BECOME_TARGET
=
1028
--成为效果对象时
EVENT_DESTROYED
=
1029
--被破坏时
EVENT_ADJUST
=
1040
--
调整
(御前试合)
EVENT_ADJUST
=
1040
--
adjust_all()调整後
(御前试合)
EVENT_SUMMON_SUCCESS
=
1100
--通常召唤成功时
EVENT_FLIP_SUMMON_SUCCESS
=
1101
--翻转召唤成功时
EVENT_SPSUMMON_SUCCESS
=
1102
--特殊召唤成功时
...
...
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