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
50f98b51
Commit
50f98b51
authored
Apr 26, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
is_capable_send_to_deck/hand
parent
336a4d17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
ocgcore/field.cpp
ocgcore/field.cpp
+4
-0
script/c96598015.lua
script/c96598015.lua
+1
-1
No files found.
ocgcore/field.cpp
View file @
50f98b51
...
@@ -2095,6 +2095,8 @@ int32 field::is_player_can_send_to_grave(uint8 playerid, card * pcard) {
...
@@ -2095,6 +2095,8 @@ int32 field::is_player_can_send_to_grave(uint8 playerid, card * pcard) {
}
}
int32
field
::
is_player_can_send_to_hand
(
uint8
playerid
,
card
*
pcard
)
{
int32
field
::
is_player_can_send_to_hand
(
uint8
playerid
,
card
*
pcard
)
{
effect_set
eset
;
effect_set
eset
;
if
((
pcard
->
current
.
location
==
LOCATION_EXTRA
)
&&
(
pcard
->
data
.
type
&
(
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
)))
return
FALSE
;
filter_player_effect
(
playerid
,
EFFECT_CANNOT_TO_HAND
,
&
eset
);
filter_player_effect
(
playerid
,
EFFECT_CANNOT_TO_HAND
,
&
eset
);
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
if
(
!
eset
[
i
]
->
target
)
if
(
!
eset
[
i
]
->
target
)
...
@@ -2109,6 +2111,8 @@ int32 field::is_player_can_send_to_hand(uint8 playerid, card * pcard) {
...
@@ -2109,6 +2111,8 @@ int32 field::is_player_can_send_to_hand(uint8 playerid, card * pcard) {
}
}
int32
field
::
is_player_can_send_to_deck
(
uint8
playerid
,
card
*
pcard
)
{
int32
field
::
is_player_can_send_to_deck
(
uint8
playerid
,
card
*
pcard
)
{
effect_set
eset
;
effect_set
eset
;
if
((
pcard
->
current
.
location
==
LOCATION_EXTRA
)
&&
(
pcard
->
data
.
type
&
(
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
)))
return
FALSE
;
filter_player_effect
(
playerid
,
EFFECT_CANNOT_TO_DECK
,
&
eset
);
filter_player_effect
(
playerid
,
EFFECT_CANNOT_TO_DECK
,
&
eset
);
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
if
(
!
eset
[
i
]
->
target
)
if
(
!
eset
[
i
]
->
target
)
...
...
script/c96598015.lua
View file @
50f98b51
...
@@ -46,7 +46,7 @@ function c96598015.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,7 +46,7 @@ function c96598015.activate(e,tp,eg,ep,ev,re,r,rp)
local
sg
=
g
:
Select
(
tp
,
3
,
3
,
nil
)
local
sg
=
g
:
Select
(
tp
,
3
,
3
,
nil
)
Duel
.
SendtoDeck
(
sg
,
nil
,
0
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
sg
,
nil
,
0
,
REASON_EFFECT
)
Duel
.
ShuffleDeck
(
tp
)
Duel
.
ShuffleDeck
(
tp
)
if
sg
:
IsExists
(
Card
.
IsLocation
,
3
,
nil
,
LOCATION_DECK
)
then
if
sg
:
IsExists
(
Card
.
IsLocation
,
3
,
nil
,
LOCATION_DECK
+
LOCATION_EXTRA
)
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
end
end
...
...
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