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
da739534
Commit
da739534
authored
May 16, 2015
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4296bced
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
script/c43175858.lua
script/c43175858.lua
+3
-4
script/c94997874.lua
script/c94997874.lua
+9
-5
No files found.
script/c43175858.lua
View file @
da739534
...
@@ -38,10 +38,9 @@ function c43175858.initial_effect(c)
...
@@ -38,10 +38,9 @@ function c43175858.initial_effect(c)
e4
:
SetLabelObject
(
g
)
e4
:
SetLabelObject
(
g
)
end
end
function
c43175858
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c43175858
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
3
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
if
chk
==
0
then
return
g
:
IsExists
(
Card
.
IsAbleToRemove
,
3
,
nil
)
end
if
ct
>
3
then
ct
=
3
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
3
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
ct
,
tp
,
LOCATION_DECK
)
end
end
function
c43175858
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c43175858
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
...
...
script/c94997874.lua
View file @
da739534
...
@@ -39,16 +39,20 @@ function c94997874.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -39,16 +39,20 @@ function c94997874.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c94997874
.
posfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c94997874
.
posfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
if
g
:
GetFirst
():
IsFace
up
()
then
if
g
:
GetFirst
():
IsFace
down
()
then
return
e
:
SetLabel
(
POS_FACEUP
)
return
e
:
SetLabel
(
0
)
else
else
return
e
:
SetLabel
(
POS_FACEDOWN
)
return
e
:
SetLabel
(
1
)
end
end
end
end
function
c94997874
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94997874
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsPosition
(
e
:
GetLabel
())
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN_DEFENCE
,
POS_FACEUP_ATTACK
,
POS_FACEDOWN_DEFENCE
,
POS_FACEUP_ATTACK
)
if
e
:
GetLabel
()
==
0
then
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_ATTACK
)
elseif
e
:
GetLabel
()
==
1
then
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN_DEFENCE
)
end
end
end
end
end
function
c94997874
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94997874
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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