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
56762cc5
Commit
56762cc5
authored
Mar 03, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a5ad1bf2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
16 deletions
+34
-16
script/c12678870.lua
script/c12678870.lua
+1
-0
script/c21495657.lua
script/c21495657.lua
+9
-7
script/c32354768.lua
script/c32354768.lua
+21
-9
script/c48063985.lua
script/c48063985.lua
+1
-0
script/c56655675.lua
script/c56655675.lua
+1
-0
script/c86274272.lua
script/c86274272.lua
+1
-0
No files found.
script/c12678870.lua
View file @
56762cc5
...
...
@@ -58,6 +58,7 @@ function c12678870.sprop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c12678870
.
spfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
g1
:
GetFirst
())
g1
:
Merge
(
g2
)
c
:
SetMaterial
(
g1
)
Duel
.
Remove
(
g1
,
POS_FACEUP
,
REASON_COST
)
end
function
c12678870
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c21495657.lua
View file @
56762cc5
...
...
@@ -58,11 +58,13 @@ function c21495657.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
TYPE_TUNER
)
tc
:
RegisterEffect
(
e1
)
end
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetReset
(
RESET_EVENT
+
0x47e0000
)
e2
:
SetValue
(
LOCATION_DECKBOT
)
c
:
RegisterEffect
(
e2
)
if
c
:
IsRelateToEffect
(
e
)
then
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetReset
(
RESET_EVENT
+
0x47e0000
)
e2
:
SetValue
(
LOCATION_DECKBOT
)
c
:
RegisterEffect
(
e2
)
end
end
script/c32354768.lua
View file @
56762cc5
...
...
@@ -15,34 +15,49 @@ function c32354768.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_TODECK
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetCode
(
EVENT_
BE_MATERIAL
)
e2
:
SetCode
(
EVENT_
SPSUMMON_SUCCESS
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
c32354768
.
effcon
)
e2
:
SetTarget
(
c32354768
.
tdtg
)
e2
:
SetOperation
(
c32354768
.
tdop
)
e2
:
SetLabel
(
REASON
_RITUAL
)
e2
:
SetLabel
(
TYPE
_RITUAL
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetDescription
(
aux
.
Stringid
(
32354768
,
1
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetTarget
(
c32354768
.
sptg
)
e3
:
SetOperation
(
c32354768
.
spop
)
e3
:
SetLabel
(
REASON
_FUSION
)
e3
:
SetLabel
(
TYPE
_FUSION
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e2
:
Clone
()
e4
:
SetDescription
(
aux
.
Stringid
(
32354768
,
2
))
e4
:
SetCategory
(
0
)
e4
:
SetTarget
(
c32354768
.
sttg
)
e4
:
SetOperation
(
c32354768
.
stop
)
e4
:
SetLabel
(
REASON
_SYNCHRO
)
e4
:
SetLabel
(
TYPE
_SYNCHRO
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e2
:
Clone
()
e5
:
SetDescription
(
aux
.
Stringid
(
32354768
,
3
))
e5
:
SetCategory
(
CATEGORY_DRAW
+
CATEGORY_HANDES
)
e5
:
SetTarget
(
c32354768
.
drtg
)
e5
:
SetOperation
(
c32354768
.
drop
)
e5
:
SetLabel
(
REASON
_XYZ
)
e5
:
SetLabel
(
TYPE
_XYZ
)
c
:
RegisterEffect
(
e5
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
)
e6
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
)
e6
:
SetRange
(
LOCATION_FZONE
)
e6
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e6
:
SetValue
(
c32354768
.
valcheck
)
c
:
RegisterEffect
(
e6
)
end
function
c32354768
.
mtfilter
(
c
)
return
c
:
IsSetCard
(
0xc4
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c32354768
.
valcheck
(
e
,
c
)
if
c
:
GetMaterial
():
IsExists
(
c32354768
.
mtfilter
,
1
,
nil
)
then
c
:
RegisterFlagEffect
(
32354768
,
RESET_EVENT
+
0x4fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c32354768
.
filter
(
c
)
return
c
:
IsSetCard
(
0xc4
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
...
...
@@ -60,11 +75,8 @@ function c32354768.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
c32354768
.
mtfilter
(
c
)
return
c
:
IsSetCard
(
0xc4
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c32354768
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c32354768
.
mtfilter
,
1
,
nil
)
and
r
==
e
:
GetLabel
()
return
eg
:
GetCount
()
==
1
and
eg
:
GetFirst
():
IsType
(
e
:
GetLabel
())
and
eg
:
GetFirst
():
GetFlagEffect
(
32354768
)
~=
0
end
function
c32354768
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
...
...
script/c48063985.lua
View file @
56762cc5
...
...
@@ -62,6 +62,7 @@ function c48063985.sprop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c48063985
.
spfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
g1
:
GetFirst
())
g1
:
Merge
(
g2
)
c
:
SetMaterial
(
g1
)
Duel
.
Remove
(
g1
,
POS_FACEUP
,
REASON_COST
)
end
function
c48063985
.
tgfilter
(
c
)
...
...
script/c56655675.lua
View file @
56762cc5
...
...
@@ -52,6 +52,7 @@ function c56655675.spop(e,tp,eg,ep,ev,re,r,rp,c)
local
g3
=
Duel
.
SelectMatchingCard
(
tp
,
c56655675
.
spfilter3
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
g1
:
Merge
(
g2
)
g1
:
Merge
(
g3
)
c
:
SetMaterial
(
g1
)
Duel
.
Remove
(
g1
,
POS_FACEUP
,
REASON_COST
)
end
function
c56655675
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c86274272.lua
View file @
56762cc5
...
...
@@ -56,6 +56,7 @@ function c86274272.sprop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c86274272
.
spfilter2
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
g1
:
GetFirst
())
g1
:
Merge
(
g2
)
c
:
SetMaterial
(
g1
)
Duel
.
Remove
(
g1
,
POS_FACEUP
,
REASON_COST
)
end
function
c86274272
.
atkop
(
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