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
fa61b949
Commit
fa61b949
authored
Mar 05, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
17e0e3d2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
65 deletions
+60
-65
script/c10282757.lua
script/c10282757.lua
+2
-3
script/c34898052.lua
script/c34898052.lua
+13
-12
script/c45010690.lua
script/c45010690.lua
+6
-5
script/c71415349.lua
script/c71415349.lua
+3
-3
script/c8809344.lua
script/c8809344.lua
+36
-42
No files found.
script/c10282757.lua
View file @
fa61b949
...
...
@@ -12,7 +12,6 @@ function c10282757.activate(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e1
:
SetValue
(
500
)
e1
:
SetTarget
(
c10282757
.
filter1
)
...
...
@@ -26,7 +25,7 @@ function c10282757.activate(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e3
:
Set
Value
(
c10282757
.
filter2
)
e3
:
Set
Target
(
c10282757
.
filter2
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
function
c10282757
.
filter1
(
c
)
...
...
@@ -34,4 +33,4 @@ function c10282757.filter1(c)
end
function
c10282757
.
filter2
(
c
)
return
c
:
IsType
(
TYPE_XYZ
)
and
c
:
IsRankAbove
(
4
)
end
\ No newline at end of file
end
script/c34898052.lua
View file @
fa61b949
...
...
@@ -8,41 +8,42 @@ function c34898052.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetCost
(
c34898052
.
cost
)
e1
:
SetTarget
(
c34898052
.
target
1
)
e1
:
SetOperation
(
c34898052
.
activate
1
)
e1
:
SetTarget
(
c34898052
.
target
)
e1
:
SetOperation
(
c34898052
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c34898052
.
rfilter
(
c
,
att
)
return
c
:
IsAttribute
(
att
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
end
function
c34898052
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ct
=
e
:
GetLabel
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c34898052
.
rfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
ATTRIBUTE_EARTH
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c34898052
.
rfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
ATTRIBUTE_EARTH
)
and
Duel
.
IsExistingMatchingCard
(
c34898052
.
rfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
ATTRIBUTE_WATER
)
and
Duel
.
IsExistingMatchingCard
(
c34898052
.
rfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
ATTRIBUTE_FIRE
)
and
Duel
.
IsExistingMatchingCard
(
c34898052
.
rfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
ATTRIBUTE_WIND
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c34898052
.
rfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
ATTRIBUTE_EARTH
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c34898052
.
rfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
ATTRIBUTE_WATER
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c34898052
.
rfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
ATTRIBUTE_FIRE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g3
=
Duel
.
SelectMatchingCard
(
tp
,
c34898052
.
rfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
ATTRIBUTE_WIND
)
g
:
Merge
(
g1
)
g
:
Merge
(
g2
)
g
:
Merge
(
g3
)
g
:
Merge
(
g1
)
g
:
Merge
(
g2
)
g
:
Merge
(
g3
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
function
c34898052
.
target
1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c34898052
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
())
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
HAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TO
DECK
,
g
,
1
,
0
,
0
)
end
function
c34898052
.
activate
1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c34898052
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
e
:
GetHandler
())
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
end
end
\ No newline at end of file
end
script/c45010690.lua
View file @
fa61b949
...
...
@@ -15,16 +15,17 @@ function c45010690.condition(e,tp,eg,ep,ev,re,r,rp)
return
not
e
:
GetHandler
():
IsReason
(
REASON_RETURN
)
end
function
c45010690
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
function
c45010690
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
Duel
.
Draw
(
p
,
1
,
REASON_EFFECT
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
if
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
==
0
then
return
end
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
t
p
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
p
,
aux
.
TRUE
,
p
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
p
,
Card
.
IsAbleToDeck
,
p
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_EFFECT
)
end
script/c71415349.lua
View file @
fa61b949
...
...
@@ -9,13 +9,13 @@ function c71415349.initial_effect(c)
e1
:
SetTarget
(
c71415349
.
target
)
e1
:
SetOperation
(
c71415349
.
operation
)
c
:
RegisterEffect
(
e1
)
--a
d
up
--a
tk
up
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
71415349
,
1
))
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
e2
:
SetOperation
(
c71415349
.
a
d
op
)
e2
:
SetOperation
(
c71415349
.
a
tk
op
)
c
:
RegisterEffect
(
e2
)
end
function
c71415349
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -30,7 +30,7 @@ function c71415349.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ChangePosition
(
c
,
POS_FACEDOWN_DEFENCE
)
end
end
function
c71415349
.
a
d
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c71415349
.
a
tk
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
script/c8809344.lua
View file @
fa61b949
--외신 나이알라
function
c8809344
.
initial_effect
(
c
)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
aux
.
XyzFilterFunction
F
(
c
,
4
),
2
)
aux
.
AddXyzProcedure
(
c
,
aux
.
XyzFilterFunction
(
c
,
4
),
2
)
c
:
EnableReviveLimit
()
--
discard
--
rankup
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
8809344
,
0
))
e1
:
SetCategory
(
CATEGORY_HANDES
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCondition
(
c8809344
.
con1
)
e1
:
Set
Target
(
c8809344
.
tg1
)
e1
:
SetOperation
(
c8809344
.
op1
)
e1
:
SetCondition
(
c8809344
.
rkcon
)
e1
:
Set
Cost
(
c8809344
.
rkcost
)
e1
:
SetOperation
(
c8809344
.
rkop
)
c
:
RegisterEffect
(
e1
)
--
attach
--attach
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
8809344
,
1
))
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCountLimit
(
1
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
c8809344
.
con2
)
e2
:
SetTarget
(
c8809344
.
tg2
)
e2
:
SetOperation
(
c8809344
.
op2
)
e2
:
SetTarget
(
c8809344
.
target
)
e2
:
SetOperation
(
c8809344
.
operation
)
c
:
RegisterEffect
(
e2
)
end
function
c8809344
.
tdcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c8809344
.
rkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_XYZ
end
function
c8809344
.
tdtg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
tp
,
1
)
function
c8809344
.
rkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
local
ct
=
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
60
,
REASON_COST
+
REASON_DISCARD
)
e
:
SetLabel
(
ct
)
end
function
c8809344
.
tdop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c8809344
.
rkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ct
=
Duel
.
DiscardHand
(
tp
,
aux
.
TRUE
,
1
,
60
,
REASON_EFFECT
+
REASON_DISCARD
)
if
ct
>
0
and
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_UPDATE_RANK
)
e2
:
SetReset
(
RESET_EVENT
+
0x1ff0000
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetValue
(
ct
)
e2
:
SetValue
(
e
:
GetLabel
()
)
c
:
RegisterEffect
(
e2
)
end
end
function
c8809344
.
olcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetOverlayCount
()
==
0
end
function
c8809344
.
tdtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c8809344
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
chkc
:
IsType
(
TYPE_MONSTER
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_MONSTER
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsType
(
TYPE_XYZ
)
and
Duel
.
IsExistingTarget
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_MONSTER
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
TYPE_MONSTER
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
1
,
0
,
0
)
end
function
c8809344
.
tdop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c8809344
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
local
og
=
tc1
:
GetOverlayGroup
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
local
og
=
c
:
GetOverlayGroup
()
if
og
:
GetCount
()
==
0
then
return
end
Duel
.
SendtoGrave
(
og
,
REASON_EFFECT
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
g
:
GetCount
()
>
0
and
Duel
.
Overlay
(
c
,
g
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
)
e1
:
SetCode
(
EFFECT_CHANGE_ATTRIBUTE
)
e1
:
SetValue
(
g
:
GetFirst
():
GetAttribute
())
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e1
:
SetCode
(
EFFECT_CHANGE_RACE
)
e2
:
SetValue
(
g
:
GetFirst
():
GetRace
())
c
:
RegisterEffect
(
e2
)
end
Duel
.
Overlay
(
c
,
Group
.
FromCards
(
tc
))
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
)
e1
:
SetCode
(
EFFECT_CHANGE_ATTRIBUTE
)
e1
:
SetValue
(
tc
:
GetAttribute
())
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CHANGE_RACE
)
e2
:
SetValue
(
tc
:
GetRace
())
c
:
RegisterEffect
(
e2
)
end
end
\ No newline at end of file
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