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
c4f0dbe9
Commit
c4f0dbe9
authored
Dec 14, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5a42008b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
17 deletions
+48
-17
script/c42874792.lua
script/c42874792.lua
+10
-5
script/c4756629.lua
script/c4756629.lua
+18
-5
script/c59388357.lua
script/c59388357.lua
+1
-1
script/c61441708.lua
script/c61441708.lua
+1
-1
script/c78358521.lua
script/c78358521.lua
+18
-5
No files found.
script/c42874792.lua
View file @
c4f0dbe9
...
@@ -30,20 +30,25 @@ function c42874792.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,20 +30,25 @@ function c42874792.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e1
:
SetRange
(
LOCATION_REMOVED
)
e1
:
SetRange
(
LOCATION_REMOVED
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
if
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
then
if
Duel
.
GetTurnPlayer
()
==
tp
then
e1
:
SetLabel
(
Duel
.
GetTurnCount
())
if
Duel
.
GetCurrentPhase
()
==
PHASE_DRAW
then
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
2
)
e1
:
SetLabel
(
Duel
.
GetTurnCount
())
else
e1
:
SetLabel
(
Duel
.
GetTurnCount
()
+
2
)
end
else
else
e1
:
Set
Reset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
)
e1
:
Set
Label
(
Duel
.
GetTurnCount
()
+
1
)
end
end
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetCondition
(
c42874792
.
retcon
)
e1
:
SetCondition
(
c42874792
.
retcon
)
e1
:
SetOperation
(
c42874792
.
retop
)
e1
:
SetOperation
(
c42874792
.
retop
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
end
end
end
end
function
c42874792
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c42874792
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurn
Player
()
==
tp
and
Duel
.
GetTurnCount
()
~
=
e
:
GetLabel
()
return
Duel
.
GetTurn
Count
()
=
=
e
:
GetLabel
()
end
end
function
c42874792
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c42874792
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ReturnToField
(
e
:
GetHandler
())
Duel
.
ReturnToField
(
e
:
GetHandler
())
e
:
Reset
()
end
end
script/c4756629.lua
View file @
c4f0dbe9
...
@@ -57,9 +57,9 @@ function c4756629.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,9 +57,9 @@ function c4756629.thop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
end
c
:
RegisterFlagEffect
(
4756629
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
end
c
:
RegisterFlagEffect
(
4756629
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
end
end
function
c4756629
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c4756629
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -81,18 +81,31 @@ function c4756629.sumop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -81,18 +81,31 @@ function c4756629.sumop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c4756629
.
decop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c4756629
.
decop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsReason
(
REASON_RETURN
)
or
Duel
.
GetFlagEffect
(
tp
,
4756630
)
~=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
if
c
:
IsReason
(
REASON_RETURN
)
or
Duel
.
GetFlagEffect
(
tp
,
4756630
)
~=
0
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_DECREASE_TRIBUTE
)
e1
:
SetCode
(
EFFECT_DECREASE_TRIBUTE
)
e1
:
SetTargetRange
(
LOCATION_HAND
,
LOCATION_HAND
)
e1
:
SetTargetRange
(
LOCATION_HAND
,
LOCATION_HAND
)
e1
:
SetTarget
(
c4756629
.
rfilter
)
e1
:
SetTarget
(
c4756629
.
rfilter
)
e1
:
SetCondition
(
c4756629
.
econ
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetValue
(
0x1
)
e1
:
SetValue
(
0x1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
0x10000000
+
4756631
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e2
)
Duel
.
RegisterFlagEffect
(
tp
,
4756630
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
4756630
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c4756629
.
econ
(
e
)
return
Duel
.
GetFlagEffect
(
tp
,
4756631
)
~=
0
end
function
c4756629
.
rfilter
(
e
,
c
)
function
c4756629
.
rfilter
(
e
,
c
)
return
c
:
IsSetCard
(
0xa
)
return
c
:
IsSetCard
(
0xa
)
end
end
script/c59388357.lua
View file @
c4f0dbe9
...
@@ -37,7 +37,7 @@ end
...
@@ -37,7 +37,7 @@ end
function
c59388357
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c59388357
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc1
,
tc2
=
Duel
.
GetFirstTarget
()
local
tc1
,
tc2
=
Duel
.
GetFirstTarget
()
if
tc1
~=
e
:
GetLabelObject
()
then
tc1
,
tc2
=
tc2
,
tc1
end
if
tc1
~=
e
:
GetLabelObject
()
then
tc1
,
tc2
=
tc2
,
tc1
end
if
tc1
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc1
,
REASON_EFFECT
)
>
0
and
tc2
:
IsRelateToEffect
(
e
)
then
if
tc1
:
Is
Controler
(
tp
)
and
tc1
:
Is
RelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc1
,
REASON_EFFECT
)
>
0
and
tc2
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc2
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc2
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
script/c61441708.lua
View file @
c4f0dbe9
...
@@ -30,7 +30,7 @@ function c61441708.initial_effect(c)
...
@@ -30,7 +30,7 @@ function c61441708.initial_effect(c)
end
end
function
c61441708
.
spr
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c61441708
.
spr
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
bit
.
band
(
r
,
0x41
)
~=
0x41
or
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
then
return
end
if
bit
.
band
(
r
,
0x41
)
~=
0x41
then
return
end
if
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
then
if
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
then
e
:
SetLabel
(
Duel
.
GetTurnCount
())
e
:
SetLabel
(
Duel
.
GetTurnCount
())
c
:
RegisterFlagEffect
(
61441708
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
0
,
2
)
c
:
RegisterFlagEffect
(
61441708
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
0
,
2
)
...
...
script/c78358521.lua
View file @
c4f0dbe9
...
@@ -57,9 +57,9 @@ function c78358521.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,9 +57,9 @@ function c78358521.thop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
end
c
:
RegisterFlagEffect
(
78358521
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
end
c
:
RegisterFlagEffect
(
78358521
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
end
end
function
c78358521
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c78358521
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -81,18 +81,31 @@ function c78358521.sumop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -81,18 +81,31 @@ function c78358521.sumop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c78358521
.
decop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c78358521
.
decop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsReason
(
REASON_RETURN
)
or
Duel
.
GetFlagEffect
(
tp
,
78358522
)
~=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
if
c
:
IsReason
(
REASON_RETURN
)
or
Duel
.
GetFlagEffect
(
tp
,
78358522
)
~=
0
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_DECREASE_TRIBUTE
)
e1
:
SetCode
(
EFFECT_DECREASE_TRIBUTE
)
e1
:
SetTargetRange
(
LOCATION_HAND
,
LOCATION_HAND
)
e1
:
SetTargetRange
(
LOCATION_HAND
,
LOCATION_HAND
)
e1
:
SetTarget
(
c78358521
.
rfilter
)
e1
:
SetTarget
(
c78358521
.
rfilter
)
e1
:
SetCondition
(
c78358521
.
econ
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetValue
(
0x1
)
e1
:
SetValue
(
0x1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
0x10000000
+
78358523
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e2
)
Duel
.
RegisterFlagEffect
(
tp
,
78358522
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
78358522
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c78358521
.
econ
(
e
)
return
Duel
.
GetFlagEffect
(
tp
,
78358523
)
~=
0
end
function
c78358521
.
rfilter
(
e
,
c
)
function
c78358521
.
rfilter
(
e
,
c
)
return
c
:
IsSetCard
(
0x53
)
return
c
:
IsSetCard
(
0x53
)
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