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
0be8b79b
Commit
0be8b79b
authored
Mar 04, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
1634c587
Changes
22
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
138 additions
and
169 deletions
+138
-169
script/c100277002.lua
script/c100277002.lua
+1
-1
script/c100416011.lua
script/c100416011.lua
+2
-2
script/c100416012.lua
script/c100416012.lua
+3
-4
script/c100416013.lua
script/c100416013.lua
+2
-2
script/c100416019.lua
script/c100416019.lua
+6
-5
script/c100416020.lua
script/c100416020.lua
+4
-4
script/c100416022.lua
script/c100416022.lua
+7
-7
script/c100416023.lua
script/c100416023.lua
+19
-24
script/c100416024.lua
script/c100416024.lua
+3
-3
script/c100416025.lua
script/c100416025.lua
+2
-1
script/c100416027.lua
script/c100416027.lua
+5
-7
script/c100416028.lua
script/c100416028.lua
+5
-7
script/c100416029.lua
script/c100416029.lua
+5
-7
script/c100416030.lua
script/c100416030.lua
+5
-7
script/c100416031.lua
script/c100416031.lua
+5
-7
script/c100416032.lua
script/c100416032.lua
+5
-7
script/c100416033.lua
script/c100416033.lua
+8
-9
script/c100416035.lua
script/c100416035.lua
+11
-9
script/c101105204.lua
script/c101105204.lua
+4
-4
script/c101105205.lua
script/c101105205.lua
+1
-1
script/c101105206.lua
script/c101105206.lua
+2
-2
script/c101105207.lua
script/c101105207.lua
+33
-49
No files found.
script/c100277002.lua
View file @
0be8b79b
script/c100416011.lua
View file @
0be8b79b
script/c100416012.lua
View file @
0be8b79b
...
@@ -45,7 +45,6 @@ function c100416012.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -45,7 +45,6 @@ function c100416012.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c100416012
.
rfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c100416012
.
rfilter
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c100416012
.
rfilter
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c100416012
.
rfilter
,
1
,
1
,
nil
,
tp
)
aux
.
UseExtraReleaseCount
(
g
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c100416012
.
spfilter
(
c
,
e
,
tp
)
function
c100416012
.
spfilter
(
c
,
e
,
tp
)
...
...
script/c100416013.lua
View file @
0be8b79b
script/c100416019.lua
View file @
0be8b79b
...
@@ -109,7 +109,8 @@ function c100416019.actfilter2(c,tp)
...
@@ -109,7 +109,8 @@ function c100416019.actfilter2(c,tp)
end
end
function
c100416019
.
actcon2
(
e
)
function
c100416019
.
actcon2
(
e
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
return
a
and
a
:
IsControler
(
e
:
GetHandlerPlayer
())
and
a
:
IsSetCard
(
0x265
)
local
tp
=
e
:
GetHandlerPlayer
()
return
a
and
a
:
IsControler
(
tp
)
and
a
:
IsSetCard
(
0x265
)
and
Duel
.
IsExistingMatchingCard
(
c100416019
.
pfilter
,
tp
,
LOCATION_PZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c100416019
.
pfilter
,
tp
,
LOCATION_PZONE
,
0
,
1
,
nil
)
end
end
function
c100416019
.
actlimit2
(
e
,
re
,
tp
)
function
c100416019
.
actlimit2
(
e
,
re
,
tp
)
...
...
script/c100416020.lua
View file @
0be8b79b
script/c100416022.lua
View file @
0be8b79b
script/c100416023.lua
View file @
0be8b79b
...
@@ -39,21 +39,6 @@ function c100416023.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,21 +39,6 @@ function c100416023.operation(e,tp,eg,ep,ev,re,r,rp)
and
Duel
.
IsExistingMatchingCard
(
c100416023
.
tpfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c100416023
.
tpfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_PZONE
,
0
)
>
0
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_PZONE
,
0
)
>
0
if
b1
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
100416023
,
0
))
then
if
b1
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
100416023
,
0
))
then
c100416023
.
place
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
local
b2
=
ct
>=
5
and
Duel
.
IsExistingMatchingCard
(
c100416023
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
b2
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
100416023
,
1
))
then
Duel
.
BreakEffect
()
c100416023
.
specialsummon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
local
b3
=
ct
>=
7
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
>
0
if
b3
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
100416023
,
2
))
then
Duel
.
BreakEffect
()
c100416023
.
destroy
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
function
c100416023
.
place
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToHand
,
tp
,
LOCATION_PZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToHand
,
tp
,
LOCATION_PZONE
,
0
,
1
,
1
,
nil
)
if
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
~=
0
then
if
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
~=
0
then
...
@@ -64,13 +49,23 @@ function c100416023.place(e,tp,eg,ep,ev,re,r,rp)
...
@@ -64,13 +49,23 @@ function c100416023.place(e,tp,eg,ep,ev,re,r,rp)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
end
end
end
end
end
end
function
c100416023
.
specialsummon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
g
=
Duel
.
GetMatchingGroup
(
c100416023
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
ct
=
g
:
GetClassCount
(
Card
.
GetCode
)
local
b2
=
ct
>=
5
and
Duel
.
IsExistingMatchingCard
(
c100416023
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
b2
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
100416023
,
1
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c100416023
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c100416023
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c100416023
.
destroy
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
g
=
Duel
.
GetMatchingGroup
(
c100416023
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
ct
=
g
:
GetClassCount
(
Card
.
GetCode
)
local
b3
=
ct
>=
7
and
Duel
.
GetMatchingGroupCount
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
>
0
if
b3
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
100416023
,
2
))
then
Duel
.
BreakEffect
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
end
script/c100416024.lua
View file @
0be8b79b
script/c100416025.lua
View file @
0be8b79b
...
@@ -23,7 +23,8 @@ function c100416025.chkfilter(c,tp,odevity)
...
@@ -23,7 +23,8 @@ function c100416025.chkfilter(c,tp,odevity)
end
end
end
end
function
c100416025
.
spfilter
(
c
,
e
,
tp
,
odevity
)
function
c100416025
.
spfilter
(
c
,
e
,
tp
,
odevity
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x265
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
GetLeftScale
()
%
2
==
odevity
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x265
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
GetLeftScale
()
%
2
==
odevity
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
end
end
function
c100416025
.
chkcon
(
g
,
e
,
tp
,
odevity
)
function
c100416025
.
chkcon
(
g
,
e
,
tp
,
odevity
)
return
g
:
IsExists
(
c100416025
.
chkfilter
,
1
,
nil
,
tp
,
odevity
)
and
Duel
.
IsExistingMatchingCard
(
c100416025
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
odevity
)
return
g
:
IsExists
(
c100416025
.
chkfilter
,
1
,
nil
,
tp
,
odevity
)
and
Duel
.
IsExistingMatchingCard
(
c100416025
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
odevity
)
...
...
script/c100416027.lua
View file @
0be8b79b
...
@@ -49,13 +49,11 @@ function Auxiliary.UrsarcticSpSummonCost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -49,13 +49,11 @@ function Auxiliary.UrsarcticSpSummonCost(e,tp,eg,ep,ev,re,r,rp,chk)
g1
:
Merge
(
g2
)
g1
:
Merge
(
g2
)
if
chk
==
0
then
return
g1
:
GetCount
()
>
0
end
if
chk
==
0
then
return
g1
:
GetCount
()
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
tc
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
local
te
=
tc
:
IsHasEffect
(
100416036
,
tp
)
or
tc
:
IsHasEffect
(
100416038
,
tp
)
local
te
=
tc
:
IsHasEffect
(
100416036
,
tp
)
or
tc
:
IsHasEffect
(
100416038
,
tp
)
if
te
then
if
te
then
te
:
UseCountLimit
(
tp
)
te
:
UseCountLimit
(
tp
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
end
else
else
Duel
.
Release
(
tc
,
REASON_COST
)
Duel
.
Release
(
tc
,
REASON_COST
)
end
end
...
...
script/c100416028.lua
View file @
0be8b79b
...
@@ -49,13 +49,11 @@ function Auxiliary.UrsarcticSpSummonCost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -49,13 +49,11 @@ function Auxiliary.UrsarcticSpSummonCost(e,tp,eg,ep,ev,re,r,rp,chk)
g1
:
Merge
(
g2
)
g1
:
Merge
(
g2
)
if
chk
==
0
then
return
g1
:
GetCount
()
>
0
end
if
chk
==
0
then
return
g1
:
GetCount
()
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
tc
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
local
te
=
tc
:
IsHasEffect
(
100416036
,
tp
)
or
tc
:
IsHasEffect
(
100416038
,
tp
)
local
te
=
tc
:
IsHasEffect
(
100416036
,
tp
)
or
tc
:
IsHasEffect
(
100416038
,
tp
)
if
te
then
if
te
then
te
:
UseCountLimit
(
tp
)
te
:
UseCountLimit
(
tp
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
end
else
else
Duel
.
Release
(
tc
,
REASON_COST
)
Duel
.
Release
(
tc
,
REASON_COST
)
end
end
...
...
script/c100416029.lua
View file @
0be8b79b
...
@@ -49,13 +49,11 @@ function Auxiliary.UrsarcticSpSummonCost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -49,13 +49,11 @@ function Auxiliary.UrsarcticSpSummonCost(e,tp,eg,ep,ev,re,r,rp,chk)
g1
:
Merge
(
g2
)
g1
:
Merge
(
g2
)
if
chk
==
0
then
return
g1
:
GetCount
()
>
0
end
if
chk
==
0
then
return
g1
:
GetCount
()
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
tc
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
local
te
=
tc
:
IsHasEffect
(
100416036
,
tp
)
or
tc
:
IsHasEffect
(
100416038
,
tp
)
local
te
=
tc
:
IsHasEffect
(
100416036
,
tp
)
or
tc
:
IsHasEffect
(
100416038
,
tp
)
if
te
then
if
te
then
te
:
UseCountLimit
(
tp
)
te
:
UseCountLimit
(
tp
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
end
else
else
Duel
.
Release
(
tc
,
REASON_COST
)
Duel
.
Release
(
tc
,
REASON_COST
)
end
end
...
...
script/c100416030.lua
View file @
0be8b79b
...
@@ -50,13 +50,11 @@ function Auxiliary.UrsarcticSpSummonCost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -50,13 +50,11 @@ function Auxiliary.UrsarcticSpSummonCost(e,tp,eg,ep,ev,re,r,rp,chk)
g1
:
Merge
(
g2
)
g1
:
Merge
(
g2
)
if
chk
==
0
then
return
g1
:
GetCount
()
>
0
end
if
chk
==
0
then
return
g1
:
GetCount
()
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
tc
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
local
te
=
tc
:
IsHasEffect
(
100416036
,
tp
)
or
tc
:
IsHasEffect
(
100416038
,
tp
)
local
te
=
tc
:
IsHasEffect
(
100416036
,
tp
)
or
tc
:
IsHasEffect
(
100416038
,
tp
)
if
te
then
if
te
then
te
:
UseCountLimit
(
tp
)
te
:
UseCountLimit
(
tp
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
end
else
else
Duel
.
Release
(
tc
,
REASON_COST
)
Duel
.
Release
(
tc
,
REASON_COST
)
end
end
...
...
script/c100416031.lua
View file @
0be8b79b
...
@@ -50,13 +50,11 @@ function Auxiliary.UrsarcticSpSummonCost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -50,13 +50,11 @@ function Auxiliary.UrsarcticSpSummonCost(e,tp,eg,ep,ev,re,r,rp,chk)
g1
:
Merge
(
g2
)
g1
:
Merge
(
g2
)
if
chk
==
0
then
return
g1
:
GetCount
()
>
0
end
if
chk
==
0
then
return
g1
:
GetCount
()
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
tc
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
local
te
=
tc
:
IsHasEffect
(
100416036
,
tp
)
or
tc
:
IsHasEffect
(
100416038
,
tp
)
local
te
=
tc
:
IsHasEffect
(
100416036
,
tp
)
or
tc
:
IsHasEffect
(
100416038
,
tp
)
if
te
then
if
te
then
te
:
UseCountLimit
(
tp
)
te
:
UseCountLimit
(
tp
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
end
else
else
Duel
.
Release
(
tc
,
REASON_COST
)
Duel
.
Release
(
tc
,
REASON_COST
)
end
end
...
...
script/c100416032.lua
View file @
0be8b79b
...
@@ -50,13 +50,11 @@ function Auxiliary.UrsarcticSpSummonCost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -50,13 +50,11 @@ function Auxiliary.UrsarcticSpSummonCost(e,tp,eg,ep,ev,re,r,rp,chk)
g1
:
Merge
(
g2
)
g1
:
Merge
(
g2
)
if
chk
==
0
then
return
g1
:
GetCount
()
>
0
end
if
chk
==
0
then
return
g1
:
GetCount
()
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
tc
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
g1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
local
te
=
tc
:
IsHasEffect
(
100416036
,
tp
)
or
tc
:
IsHasEffect
(
100416038
,
tp
)
local
te
=
tc
:
IsHasEffect
(
100416036
,
tp
)
or
tc
:
IsHasEffect
(
100416038
,
tp
)
if
te
then
if
te
then
te
:
UseCountLimit
(
tp
)
te
:
UseCountLimit
(
tp
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
end
else
else
Duel
.
Release
(
tc
,
REASON_COST
)
Duel
.
Release
(
tc
,
REASON_COST
)
end
end
...
...
script/c100416033.lua
View file @
0be8b79b
...
@@ -104,20 +104,19 @@ function c100416033.tgfilter(c,e,tp,check)
...
@@ -104,20 +104,19 @@ function c100416033.tgfilter(c,e,tp,check)
and
(
c
:
IsAbleToHand
()
or
check
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
))
and
(
c
:
IsAbleToHand
()
or
check
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
))
end
end
function
c100416033
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100416033
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g1
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c100416033
.
rfilter
,
e
:
GetHandler
()
,
tp
)
local
g1
=
Duel
.
GetReleaseGroup
(
tp
):
Filter
(
c100416033
.
rfilter
,
nil
,
tp
)
local
g2
=
Duel
.
GetMatchingGroup
(
c100416033
.
excostfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
tp
)
local
g2
=
Duel
.
GetMatchingGroup
(
c100416033
.
excostfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
tp
)
g1
:
Merge
(
g2
)
g1
:
Merge
(
g2
)
if
chk
==
0
then
return
g1
:
IsExists
(
c100416033
.
costfilter
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
g1
:
IsExists
(
c100416033
.
costfilter
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
tc
=
g1
:
FilterSelect
(
tp
,
c100416033
.
costfilter
,
1
,
1
,
nil
,
e
,
tp
):
GetFirst
(
)
local
rg
=
g1
:
FilterSelect
(
tp
,
c100416033
.
costfilter
,
1
,
1
,
nil
,
e
,
tp
)
if
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
local
tc
=
rg
:
GetFirst
()
local
te
=
tc
:
IsHasEffect
(
100416036
,
tp
)
or
tc
:
IsHasEffect
(
100416038
,
tp
)
local
te
=
tc
:
IsHasEffect
(
100416036
,
tp
)
or
tc
:
IsHasEffect
(
100416038
,
tp
)
if
te
then
if
te
then
te
:
UseCountLimit
(
tp
)
te
:
UseCountLimit
(
tp
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
end
else
else
aux
.
UseExtraReleaseCount
(
Group
.
FromCards
(
tc
)
,
tp
)
aux
.
UseExtraReleaseCount
(
rg
,
tp
)
Duel
.
Release
(
tc
,
REASON_COST
)
Duel
.
Release
(
tc
,
REASON_COST
)
end
end
end
end
...
...
script/c100416035.lua
View file @
0be8b79b
...
@@ -96,23 +96,25 @@ function c100416035.negcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -96,23 +96,25 @@ function c100416035.negcon(e,tp,eg,ep,ev,re,r,rp)
return
tg
and
tg
:
IsExists
(
c100416035
.
negfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsChainNegatable
(
ev
)
return
tg
and
tg
:
IsExists
(
c100416035
.
negfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c100416035
.
costfilter
(
c
,
tp
)
function
c100416035
.
costfilter
(
c
,
tp
)
if
c
:
IsLocation
(
LOCATION_HAND
+
LOCATION_MZONE
)
then
return
c
:
IsType
(
TYPE_MONSTER
)
--and (c:IsControler(tp) or c:IsFaceup())
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsReleasable
()
end
else
function
c100416035
.
excostfilter
(
c
,
tp
)
return
c
:
IsAbleToRemove
()
and
(
c
:
IsHasEffect
(
100416036
,
tp
)
or
c
:
IsHasEffect
(
100416038
,
tp
))
return
c
:
IsAbleToRemove
()
and
(
c
:
IsHasEffect
(
100416036
,
tp
)
or
c
:
IsHasEffect
(
100416038
,
tp
))
end
end
end
function
c100416035
.
negcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100416035
.
negcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c100416035
.
costfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
)
end
local
g1
=
Duel
.
GetReleaseGroup
(
tp
,
true
):
Filter
(
c100416035
.
costfilter
,
nil
,
tp
)
local
g2
=
Duel
.
GetMatchingGroup
(
c100416035
.
excostfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
tp
)
g1
:
Merge
(
g2
)
if
chk
==
0
then
return
#
g1
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c100416035
.
costfilter
,
tp
,
LOCATION_HAND
+
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tp
)
local
rg
=
g1
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
r
g
:
GetFirst
()
local
te
=
tc
:
IsHasEffect
(
100416036
,
tp
)
or
tc
:
IsHasEffect
(
100416038
,
tp
)
local
te
=
tc
:
IsHasEffect
(
100416036
,
tp
)
or
tc
:
IsHasEffect
(
100416038
,
tp
)
if
te
then
if
te
then
te
:
UseCountLimit
(
tp
)
te
:
UseCountLimit
(
tp
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
else
else
aux
.
UseExtraReleaseCount
(
Group
.
FromCards
(
tc
)
,
tp
)
aux
.
UseExtraReleaseCount
(
rg
,
tp
)
Duel
.
Release
(
tc
,
REASON_COST
)
Duel
.
Release
(
tc
,
REASON_COST
)
end
end
end
end
...
...
script/c101105204.lua
View file @
0be8b79b
script/c101105205.lua
View file @
0be8b79b
script/c101105206.lua
View file @
0be8b79b
script/c101105207.lua
View file @
0be8b79b
...
@@ -46,19 +46,11 @@ function c101105207.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -46,19 +46,11 @@ function c101105207.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c101105207
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101105207
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
local
op
=
e
:
GetLabel
()
local
op
=
e
:
GetLabel
()
if
op
==
0
then
if
op
==
0
then
c101105207
.
equip
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
then
elseif
op
==
1
then
c101105207
.
directattack
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
else
c101105207
.
damage
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
function
c101105207
.
equip
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101105207
.
eqfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c101105207
.
eqfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
ec
=
g
:
GetFirst
()
local
ec
=
g
:
GetFirst
()
...
@@ -75,25 +67,13 @@ function c101105207.equip(e,tp,eg,ep,ev,re,r,rp)
...
@@ -75,25 +67,13 @@ function c101105207.equip(e,tp,eg,ep,ev,re,r,rp)
ec
:
RegisterEffect
(
e1
)
ec
:
RegisterEffect
(
e1
)
end
end
end
end
end
elseif
op
==
1
then
function
c101105207
.
eqlimit
(
e
,
c
)
return
c
==
e
:
GetLabelObject
()
end
function
c101105207
.
directattack
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e1
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
end
else
end
function
c101105207
.
damage
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsControler
(
1
-
tp
)
then
return
end
tc
:
RegisterFlagEffect
(
101105207
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
,
tc
:
GetFieldID
())
tc
:
RegisterFlagEffect
(
101105207
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
,
tc
:
GetFieldID
())
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
@@ -103,6 +83,10 @@ function c101105207.damage(e,tp,eg,ep,ev,re,r,rp)
...
@@ -103,6 +83,10 @@ function c101105207.damage(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCondition
(
c101105207
.
damcon
)
e1
:
SetCondition
(
c101105207
.
damcon
)
e1
:
SetOperation
(
c101105207
.
damop
)
e1
:
SetOperation
(
c101105207
.
damop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c101105207
.
eqlimit
(
e
,
c
)
return
c
==
e
:
GetLabelObject
()
end
end
function
c101105207
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101105207
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
...
@@ -114,7 +98,7 @@ function c101105207.damop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -114,7 +98,7 @@ function c101105207.damop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
e
:
GetLabelObject
()
local
tc
=
e
:
GetLabelObject
()
local
bc
=
tc
:
GetBattleTarget
()
local
bc
=
tc
:
GetBattleTarget
()
if
not
bc
then
return
end
if
not
bc
then
return
end
local
dam
=
math.max
(
bc
:
GetBaseAttack
(),
0
)
local
dam
=
bc
:
GetBaseAttack
(
)
if
dam
>
0
then
if
dam
>
0
then
Duel
.
Hint
(
HINT_CARD
,
0
,
101105207
)
Duel
.
Hint
(
HINT_CARD
,
0
,
101105207
)
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
...
...
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