Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
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
MyCard
ygopro-pre-data
Commits
b409b183
Commit
b409b183
authored
Apr 14, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3d1ed4a2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
13 deletions
+28
-13
script/c101005009.lua
script/c101005009.lua
+1
-1
script/c101005042.lua
script/c101005042.lua
+1
-0
script/c101005066.lua
script/c101005066.lua
+5
-3
script/c101005078.lua
script/c101005078.lua
+21
-9
No files found.
script/c101005009.lua
View file @
b409b183
...
@@ -18,7 +18,7 @@ function c101005009.initial_effect(c)
...
@@ -18,7 +18,7 @@ function c101005009.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
101005009
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
101005009
,
0
))
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_
DELAY
+
EFFECT_FLAG_
CARD_TARGET
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetCountLimit
(
1
,
101005109
)
e2
:
SetCountLimit
(
1
,
101005109
)
e2
:
SetCondition
(
c101005009
.
thcon
)
e2
:
SetCondition
(
c101005009
.
thcon
)
...
...
script/c101005042.lua
View file @
b409b183
...
@@ -24,6 +24,7 @@ function c101005042.initial_effect(c)
...
@@ -24,6 +24,7 @@ function c101005042.initial_effect(c)
--to hand
--to hand
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
101005042
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
101005042
,
0
))
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
...
...
script/c101005066.lua
View file @
b409b183
...
@@ -42,16 +42,18 @@ function c101005066.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -42,16 +42,18 @@ function c101005066.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c101005066
.
costfilter1
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
c101005066
.
costfilter1
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c101005066
.
costfilter2
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
g1
:
GetFirst
(),
tp
,
g1
:
GetFirst
()
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c101005066
.
costfilter2
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
,
0
,
1
,
1
,
g1
:
GetFirst
(),
g1
:
GetFirst
(),
tp
)
g1
:
Merge
(
g2
)
g1
:
Merge
(
g2
)
Duel
.
SetTargetCard
(
g
)
g1
:
KeepAlive
()
e
:
SetLabelObject
(
g1
)
Duel
.
Remove
(
g1
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
g1
,
POS_FACEUP
,
REASON_COST
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c101005066
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101005066
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tg
=
e
:
GetLabelObject
(
)
local
tc1
=
tg
:
GetFirst
()
local
tc1
=
tg
:
GetFirst
()
local
tc2
=
tg
:
GetNext
()
local
tc2
=
tg
:
GetNext
()
tg
:
DeleteGroup
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101005066
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tc1
,
tc2
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101005066
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tc1
,
tc2
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
script/c101005078.lua
View file @
b409b183
...
@@ -24,18 +24,30 @@ function c101005078.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -24,18 +24,30 @@ function c101005078.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c101005078
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101005078
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
c
=
e
:
GetHandler
()
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
local
tc
=
Duel
.
GetFirstTarget
()
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
if
tc
:
IsRelateToEffect
(
e
)
then
e1
:
SetCountLimit
(
1
)
local
fid
=
c
:
GetFieldID
()
e1
:
SetLabelObject
(
tc
)
tc
:
RegisterFlagEffect
(
101005078
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
,
fid
)
e1
:
SetOperation
(
c101005078
.
spop
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
Duel
.
RegisterEffect
(
e1
,
tp
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e1
:
SetCountLimit
(
1
)
e1
:
SetLabel
(
fid
)
e1
:
SetLabelObject
(
tc
)
e1
:
SetCondition
(
c101005078
.
spcon
)
e1
:
SetOperation
(
c101005078
.
spop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c101005078
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
end
end
function
c101005078
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101005078
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
if
tc
then
if
tc
and
tc
:
GetFlagEffectLabel
(
101005078
)
==
e
:
GetLabel
()
then
Duel
.
Hint
(
HINT_CARD
,
0
,
101005078
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
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