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
ab4948f2
Commit
ab4948f2
authored
Oct 23, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed: Duel.PSendtoExtra()
parent
25debd50
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
interpreter.cpp
interpreter.cpp
+1
-1
libduel.cpp
libduel.cpp
+7
-4
operations.cpp
operations.cpp
+1
-1
No files found.
interpreter.cpp
View file @
ab4948f2
...
@@ -322,7 +322,7 @@ static const struct luaL_Reg duellib[] = {
...
@@ -322,7 +322,7 @@ static const struct luaL_Reg duellib[] = {
{
"SendtoGrave"
,
scriptlib
::
duel_sendto_grave
},
{
"SendtoGrave"
,
scriptlib
::
duel_sendto_grave
},
{
"SendtoHand"
,
scriptlib
::
duel_sendto_hand
},
{
"SendtoHand"
,
scriptlib
::
duel_sendto_hand
},
{
"SendtoDeck"
,
scriptlib
::
duel_sendto_deck
},
{
"SendtoDeck"
,
scriptlib
::
duel_sendto_deck
},
{
"
SendP
toExtra"
,
scriptlib
::
duel_sendto_extra
},
{
"
PSend
toExtra"
,
scriptlib
::
duel_sendto_extra
},
{
"GetOperatedGroup"
,
scriptlib
::
duel_get_operated_group
},
{
"GetOperatedGroup"
,
scriptlib
::
duel_get_operated_group
},
{
"Summon"
,
scriptlib
::
duel_summon
},
{
"Summon"
,
scriptlib
::
duel_summon
},
{
"SpecialSummonRule"
,
scriptlib
::
duel_special_summon_rule
},
{
"SpecialSummonRule"
,
scriptlib
::
duel_special_summon_rule
},
...
...
libduel.cpp
View file @
ab4948f2
...
@@ -455,7 +455,7 @@ int32 scriptlib::duel_sendto_deck(lua_State *L) {
...
@@ -455,7 +455,7 @@ int32 scriptlib::duel_sendto_deck(lua_State *L) {
}
}
int32
scriptlib
::
duel_sendto_extra
(
lua_State
*
L
)
{
int32
scriptlib
::
duel_sendto_extra
(
lua_State
*
L
)
{
check_action_permission
(
L
);
check_action_permission
(
L
);
check_param_count
(
L
,
2
);
check_param_count
(
L
,
3
);
card
*
pcard
=
0
;
card
*
pcard
=
0
;
group
*
pgroup
=
0
;
group
*
pgroup
=
0
;
duel
*
pduel
=
0
;
duel
*
pduel
=
0
;
...
@@ -467,11 +467,14 @@ int32 scriptlib::duel_sendto_extra(lua_State *L) {
...
@@ -467,11 +467,14 @@ int32 scriptlib::duel_sendto_extra(lua_State *L) {
pduel
=
pgroup
->
pduel
;
pduel
=
pgroup
->
pduel
;
}
else
}
else
luaL_error
(
L
,
"Parameter %d should be
\"
Card
\"
or
\"
Group
\"
."
,
1
);
luaL_error
(
L
,
"Parameter %d should be
\"
Card
\"
or
\"
Group
\"
."
,
1
);
uint32
reason
=
lua_tointeger
(
L
,
2
);
uint32
playerid
=
lua_tointeger
(
L
,
2
);
if
(
lua_isnil
(
L
,
2
)
||
(
playerid
!=
0
&&
playerid
!=
1
))
playerid
=
PLAYER_NONE
;
uint32
reason
=
lua_tointeger
(
L
,
3
);
if
(
pcard
)
if
(
pcard
)
pduel
->
game_field
->
send_to
(
pcard
,
pduel
->
game_field
->
core
.
reason_effect
,
reason
,
pduel
->
game_field
->
core
.
reason_player
,
PLAYER_NONE
,
LOCATION_EXTRA
,
0
,
POS_FACEUP
);
pduel
->
game_field
->
send_to
(
pcard
,
pduel
->
game_field
->
core
.
reason_effect
,
reason
,
pduel
->
game_field
->
core
.
reason_player
,
playerid
,
LOCATION_EXTRA
,
0
,
POS_FACEUP
);
else
else
pduel
->
game_field
->
send_to
(
&
(
pgroup
->
container
),
pduel
->
game_field
->
core
.
reason_effect
,
reason
,
pduel
->
game_field
->
core
.
reason_player
,
PLAYER_NONE
,
LOCATION_EXTRA
,
0
,
POS_FACEUP
);
pduel
->
game_field
->
send_to
(
&
(
pgroup
->
container
),
pduel
->
game_field
->
core
.
reason_effect
,
reason
,
pduel
->
game_field
->
core
.
reason_player
,
playerid
,
LOCATION_EXTRA
,
0
,
POS_FACEUP
);
pduel
->
game_field
->
core
.
subunits
.
begin
()
->
type
=
PROCESSOR_SENDTO_S
;
pduel
->
game_field
->
core
.
subunits
.
begin
()
->
type
=
PROCESSOR_SENDTO_S
;
return
lua_yield
(
L
,
0
);
return
lua_yield
(
L
,
0
);
}
}
...
...
operations.cpp
View file @
ab4948f2
...
@@ -251,7 +251,7 @@ void field::send_to(card_set* targets, effect* reason_effect, uint32 reason, uin
...
@@ -251,7 +251,7 @@ void field::send_to(card_set* targets, effect* reason_effect, uint32 reason, uin
// send to hand from deck & playerid not given => send to the hand of controler
// send to hand from deck & playerid not given => send to the hand of controler
if(p == PLAYER_NONE && (destination & LOCATION_HAND) && (pcard->current.location & LOCATION_DECK) && pcard->current.controler == reason_player)
if(p == PLAYER_NONE && (destination & LOCATION_HAND) && (pcard->current.location & LOCATION_DECK) && pcard->current.controler == reason_player)
p = reason_player;
p = reason_player;
if
(
destination
&
(
LOCATION_GRAVE
+
LOCATION_REMOVED
+
LOCATION_EXTRA
)
||
p
==
PLAYER_NONE
)
if(destination & (LOCATION_GRAVE + LOCATION_REMOVED) || p == PLAYER_NONE)
p = pcard->owner;
p = pcard->owner;
if(destination != LOCATION_REMOVED)
if(destination != LOCATION_REMOVED)
pos = POS_FACEUP;
pos = POS_FACEUP;
...
...
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