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
e8666bba
Commit
e8666bba
authored
Feb 21, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a9ba5ab4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
20 deletions
+52
-20
script/c43262273.lua
script/c43262273.lua
+19
-9
script/c75673220.lua
script/c75673220.lua
+18
-5
script/c77498348.lua
script/c77498348.lua
+15
-6
No files found.
script/c43262273.lua
View file @
e8666bba
...
...
@@ -25,33 +25,43 @@ function c43262273.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
0
,
1
-
tp
,
LOCATION_HAND
)
end
function
c43262273
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g0
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
Duel
.
ConfirmCards
(
tp
,
g0
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
ShuffleHand
(
1
-
tp
)
local
tc
=
sg
:
GetFirst
()
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
tc
:
RegisterFlagEffect
(
43262273
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetRange
(
LOCATION_REMOVED
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
if
Duel
.
GetTurnPlayer
()
==
1
-
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_END
then
e1
:
SetLabel
(
Duel
.
GetTurnCount
())
e1
:
SetReset
(
RESET_
EVENT
+
0x1fe0000
+
RESET_
PHASE
+
PHASE_END
,
3
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
3
)
else
e1
:
SetLabel
(
0
)
e1
:
SetReset
(
RESET_
EVENT
+
0x1fe0000
+
RESET_
PHASE
+
PHASE_END
,
2
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
end
e1
:
SetLabelObject
(
tc
)
e1
:
SetCondition
(
c43262273
.
retcon
)
e1
:
SetOperation
(
c43262273
.
retop
)
sg
:
GetFirst
():
RegisterEffect
(
e1
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
Duel
.
ShuffleHand
(
1
-
tp
)
end
function
c43262273
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetTurnCount
()
~=
e
:
GetLabel
()
local
tc
=
e
:
GetLabelObject
()
if
tc
:
GetFlagEffect
(
43262273
)
==
0
then
e
:
Reset
()
return
false
else
return
Duel
.
GetTurnPlayer
()
==
1
-
tp
and
Duel
.
GetTurnCount
()
~=
e
:
GetLabel
()
end
end
function
c43262273
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SendtoHand
(
e
:
GetHandler
(),
nil
,
REASON_EFFECT
)
local
tc
=
e
:
GetLabelObject
()
Duel
.
SendtoHand
(
tc
,
1
-
tp
,
REASON_EFFECT
)
end
script/c75673220.lua
View file @
e8666bba
...
...
@@ -23,16 +23,29 @@ function c75673220.operation(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
nil
)
if
g
:
GetCount
()
==
0
then
return
end
local
rg
=
g
:
RandomSelect
(
tp
,
1
)
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_EFFECT
)
local
tc
=
rg
:
GetFirst
()
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
tc
:
RegisterFlagEffect
(
75673220
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_REMOVED
)
e1
:
SetCountLimit
(
1
)
e1
:
SetLabelObject
(
tc
)
e1
:
SetCondition
(
c75673220
.
retcon
)
e1
:
SetOperation
(
c75673220
.
retop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
rg
:
GetFirst
():
RegisterEffect
(
e1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c75673220
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
if
tc
:
GetFlagEffect
(
75673220
)
==
0
then
e
:
Reset
()
return
false
else
return
true
end
end
function
c75673220
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SendtoHand
(
e
:
GetHandler
(),
nil
,
REASON_EFFECT
)
local
tc
=
e
:
GetLabelObject
()
Duel
.
SendtoHand
(
tc
,
1
-
tp
,
REASON_EFFECT
)
end
script/c77498348.lua
View file @
e8666bba
...
...
@@ -99,21 +99,30 @@ function c77498348.rmop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
nil
)
if
g
:
GetCount
()
==
0
then
return
end
local
rg
=
g
:
RandomSelect
(
tp
,
1
)
Duel
.
Remove
(
rg
,
POS_FACEDOWN
,
REASON_EFFECT
)
local
tc
=
rg
:
GetFirst
()
Duel
.
Remove
(
tc
,
POS_FACEDOWN
,
REASON_EFFECT
)
tc
:
RegisterFlagEffect
(
77498348
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetRange
(
LOCATION_REMOVED
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
2
)
e1
:
SetLabelObject
(
tc
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
e1
:
SetCondition
(
c77498348
.
retcon
)
e1
:
SetOperation
(
c77498348
.
retop
)
rg
:
GetFirst
():
RegisterEffect
(
e1
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c77498348
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
e
:
GetOwnerPlayer
()
local
tc
=
e
:
GetLabelObject
()
if
tc
:
GetFlagEffect
(
77498348
)
==
0
then
e
:
Reset
()
return
false
else
return
Duel
.
GetTurnPlayer
()
==
1
-
tp
end
end
function
c77498348
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SendtoHand
(
e
:
GetHandler
(),
nil
,
REASON_EFFECT
)
local
tc
=
e
:
GetLabelObject
()
Duel
.
SendtoHand
(
tc
,
1
-
tp
,
REASON_EFFECT
)
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