Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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-scripts-888
Commits
a81f8cb0
Commit
a81f8cb0
authored
Jan 11, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' from upstream
parents
5fd2c1cb
0a65a1d4
Changes
40
Hide whitespace changes
Inline
Side-by-side
Showing
40 changed files
with
69 additions
and
54 deletions
+69
-54
c10113611.lua
c10113611.lua
+1
-1
c14644902.lua
c14644902.lua
+2
-2
c16719140.lua
c16719140.lua
+1
-1
c16960351.lua
c16960351.lua
+1
-1
c24361622.lua
c24361622.lua
+1
-1
c25811989.lua
c25811989.lua
+2
-2
c25857246.lua
c25857246.lua
+2
-5
c26034577.lua
c26034577.lua
+2
-2
c28553439.lua
c28553439.lua
+1
-1
c29301450.lua
c29301450.lua
+1
-1
c296499.lua
c296499.lua
+2
-2
c33158448.lua
c33158448.lua
+1
-0
c33537328.lua
c33537328.lua
+2
-2
c37414347.lua
c37414347.lua
+1
-0
c39468724.lua
c39468724.lua
+3
-6
c49154689.lua
c49154689.lua
+1
-1
c49655592.lua
c49655592.lua
+1
-0
c51316684.lua
c51316684.lua
+2
-2
c52038272.lua
c52038272.lua
+2
-2
c60551528.lua
c60551528.lua
+2
-2
c61292243.lua
c61292243.lua
+1
-1
c6284176.lua
c6284176.lua
+1
-1
c64332231.lua
c64332231.lua
+2
-2
c64442155.lua
c64442155.lua
+1
-1
c67045745.lua
c67045745.lua
+1
-0
c6764709.lua
c6764709.lua
+1
-0
c70226289.lua
c70226289.lua
+2
-1
c71607202.lua
c71607202.lua
+1
-1
c75059201.lua
c75059201.lua
+1
-0
c75676192.lua
c75676192.lua
+1
-0
c78371393.lua
c78371393.lua
+2
-2
c80758812.lua
c80758812.lua
+1
-1
c88301393.lua
c88301393.lua
+2
-2
c89423971.lua
c89423971.lua
+2
-2
c89776023.lua
c89776023.lua
+1
-1
c93449450.lua
c93449450.lua
+1
-0
c96055137.lua
c96055137.lua
+2
-2
c97342942.lua
c97342942.lua
+1
-1
c99666430.lua
c99666430.lua
+2
-2
constant.lua
constant.lua
+12
-0
No files found.
c10113611.lua
View file @
a81f8cb0
...
@@ -62,7 +62,7 @@ function s.sscon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -62,7 +62,7 @@ function s.sscon(e,tp,eg,ep,ev,re,r,rp)
return
ep
==
1
-
tp
and
Duel
.
GetAttackTarget
()
==
nil
return
ep
==
1
-
tp
and
Duel
.
GetAttackTarget
()
==
nil
end
end
function
s
.
mfilter
(
c
)
function
s
.
mfilter
(
c
)
return
not
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsFaceupEx
()
and
c
:
IsReleasableByEffect
()
and
c
:
GetLevel
()
>
0
return
not
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsFaceupEx
()
and
c
:
GetLevel
()
>
0
end
end
function
s
.
spfilter
(
c
,
e
,
tp
,
g
)
function
s
.
spfilter
(
c
,
e
,
tp
,
g
)
return
c
:
IsSetCard
(
0xe
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0xe
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c14644902.lua
View file @
a81f8cb0
...
@@ -14,14 +14,14 @@ function c14644902.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -14,14 +14,14 @@ function c14644902.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
c14644902
.
rfilter
(
c
,
e
,
tp
)
function
c14644902
.
rfilter
(
c
,
e
,
tp
)
return
c
:
IsReleasableByEffect
()
and
not
c
:
IsImmuneToEffect
(
e
)
return
not
c
:
IsImmuneToEffect
(
e
)
and
Duel
.
IsExistingMatchingCard
(
c14644902
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
)
and
Duel
.
IsExistingMatchingCard
(
c14644902
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
)
end
end
function
c14644902
.
filter
(
c
,
e
,
tp
,
mc
)
function
c14644902
.
filter
(
c
,
e
,
tp
,
mc
)
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
mc
,
c
)
>
0
return
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
mc
,
c
)
>
0
end
end
function
c14644902
.
rfilter2
(
c
,
tp
)
function
c14644902
.
rfilter2
(
c
,
tp
)
return
c
:
IsReleasableByEffect
()
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
TYPE_FUSION
)
>
0
return
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
TYPE_FUSION
)
>
0
end
end
function
c14644902
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c14644902
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c16719140.lua
View file @
a81f8cb0
...
@@ -47,7 +47,7 @@ function c16719140.fselect(g,tp,lv,mc)
...
@@ -47,7 +47,7 @@ function c16719140.fselect(g,tp,lv,mc)
else
return
false
end
else
return
false
end
end
end
function
c16719140
.
relfilter
(
c
)
function
c16719140
.
relfilter
(
c
)
return
c
:
IsLevelAbove
(
1
)
and
c
:
IsReleasableByEffect
()
return
c
:
IsLevelAbove
(
1
)
end
end
function
c16719140
.
sptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c16719140
.
sptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c16960351.lua
View file @
a81f8cb0
...
@@ -19,7 +19,7 @@ function c16960351.initial_effect(c)
...
@@ -19,7 +19,7 @@ function c16960351.initial_effect(c)
end
end
function
c16960351
.
rfilter
(
c
,
e
,
tp
,
ft
)
function
c16960351
.
rfilter
(
c
,
e
,
tp
,
ft
)
local
lv
=
c
:
GetOriginalLevel
()
local
lv
=
c
:
GetOriginalLevel
()
return
lv
>
0
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsReleasable
()
return
lv
>
0
and
c
:
IsRace
(
RACE_DRAGON
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
Duel
.
IsExistingMatchingCard
(
c16960351
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
lv
)
and
Duel
.
IsExistingMatchingCard
(
c16960351
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
lv
)
end
end
...
...
c24361622.lua
View file @
a81f8cb0
...
@@ -32,7 +32,7 @@ function c24361622.thcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,7 +32,7 @@ function c24361622.thcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
GetSequence
()
>
4
and
Duel
.
GetTurnPlayer
()
~=
tp
return
e
:
GetHandler
():
GetSequence
()
>
4
and
Duel
.
GetTurnPlayer
()
~=
tp
end
end
function
c24361622
.
thcfilter
(
c
,
tp
)
function
c24361622
.
thcfilter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsReleasable
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
IsExistingMatchingCard
(
c24361622
.
thfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
and
Duel
.
IsExistingMatchingCard
(
c24361622
.
thfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
end
end
function
c24361622
.
thfilter
(
c
)
function
c24361622
.
thfilter
(
c
)
...
...
c25811989.lua
View file @
a81f8cb0
...
@@ -91,8 +91,8 @@ function c25811989.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -91,8 +91,8 @@ function c25811989.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
)
end
end
function
c25811989
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c25811989
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
Card
.
IsReleasable
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
nil
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
Card
.
IsReleasable
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
nil
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c25811989
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c25811989
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c25857246.lua
View file @
a81f8cb0
...
@@ -53,12 +53,9 @@ function c25857246.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,12 +53,9 @@ function c25857246.atkop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SkipPhase
(
1
-
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_BATTLE_STEP
,
1
)
Duel
.
SkipPhase
(
1
-
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_BATTLE_STEP
,
1
)
end
end
end
end
function
c25857246
.
filter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsReleasableByEffect
()
end
function
c25857246
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c25857246
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
and
Duel
.
CheckReleaseGroupEx
(
REASON_EFFECT
,
tp
,
c25857246
.
filter
,
1
,
nil
)
end
and
Duel
.
CheckReleaseGroupEx
(
REASON_EFFECT
,
tp
,
nil
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
end
function
c25857246
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c25857246
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -66,7 +63,7 @@ function c25857246.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -66,7 +63,7 @@ function c25857246.operation(e,tp,eg,ep,ev,re,r,rp)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
if
ct
==
0
then
ct
=
1
end
if
ct
==
0
then
ct
=
1
end
if
ct
>
2
then
ct
=
2
end
if
ct
>
2
then
ct
=
2
end
local
g
=
Duel
.
SelectReleaseGroupEx
(
REASON_EFFECT
,
tp
,
c25857246
.
filter
,
1
,
ct
,
nil
)
local
g
=
Duel
.
SelectReleaseGroupEx
(
REASON_EFFECT
,
tp
,
nil
,
1
,
ct
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
HintSelection
(
g
)
local
rct
=
Duel
.
Release
(
g
,
REASON_EFFECT
)
local
rct
=
Duel
.
Release
(
g
,
REASON_EFFECT
)
...
...
c26034577.lua
View file @
a81f8cb0
...
@@ -103,8 +103,8 @@ function c26034577.rmcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -103,8 +103,8 @@ function c26034577.rmcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
~=
tp
return
Duel
.
GetTurnPlayer
()
~=
tp
end
end
function
c26034577
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c26034577
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
Card
.
IsReleasable
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
nil
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
Card
.
IsReleasable
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
nil
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c26034577
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c26034577
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c28553439.lua
View file @
a81f8cb0
...
@@ -22,7 +22,7 @@ function c28553439.filter(c,e,tp)
...
@@ -22,7 +22,7 @@ function c28553439.filter(c,e,tp)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c28553439
.
rfilter
(
c
,
e
,
tp
,
ft
)
function
c28553439
.
rfilter
(
c
,
e
,
tp
,
ft
)
return
c
:
Is
ReleasableByEffect
()
and
c
:
Is
CanBeEffectTarget
(
e
)
return
c
:
IsCanBeEffectTarget
(
e
)
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
and
(
ft
>
0
or
(
c
:
IsControler
(
tp
)
and
c
:
GetSequence
()
<
5
))
end
end
function
c28553439
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c28553439
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c29301450.lua
View file @
a81f8cb0
...
@@ -109,7 +109,7 @@ function s.retfilter(c,fid)
...
@@ -109,7 +109,7 @@ function s.retfilter(c,fid)
return
c
:
GetFlagEffectLabel
(
id
)
==
fid
return
c
:
GetFlagEffectLabel
(
id
)
==
fid
end
end
function
s
.
retfilter1
(
c
,
tp
,
fid
)
function
s
.
retfilter1
(
c
,
tp
,
fid
)
return
c
:
GetFlagEffectLabel
(
id
)
==
fid
and
c
:
IsControler
(
tp
)
return
c
:
GetFlagEffectLabel
(
id
)
==
fid
and
c
:
Is
Previous
Controler
(
tp
)
end
end
function
s
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetLabelObject
():
IsExists
(
s
.
retfilter
,
1
,
nil
,
e
:
GetLabel
())
then
if
not
e
:
GetLabelObject
():
IsExists
(
s
.
retfilter
,
1
,
nil
,
e
:
GetLabel
())
then
...
...
c296499.lua
View file @
a81f8cb0
...
@@ -40,8 +40,8 @@ function c296499.mtcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,8 +40,8 @@ function c296499.mtcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
==
tp
return
Duel
.
GetTurnPlayer
()
==
tp
end
end
function
c296499
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c296499
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
CheckReleaseGroup
(
REASON_MAINTENANCE
,
tp
,
Card
.
IsReleasable
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
296499
,
0
))
then
if
Duel
.
CheckReleaseGroup
(
REASON_MAINTENANCE
,
tp
,
nil
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
296499
,
0
))
then
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_MAINTENANCE
,
tp
,
Card
.
IsReleasable
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_MAINTENANCE
,
tp
,
nil
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_MAINTENANCE
)
Duel
.
Release
(
g
,
REASON_MAINTENANCE
)
else
else
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_COST
)
...
...
c33158448.lua
View file @
a81f8cb0
...
@@ -24,6 +24,7 @@ function c33158448.initial_effect(c)
...
@@ -24,6 +24,7 @@ function c33158448.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e3
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e3
:
SetCondition
(
c33158448
.
lvcon
)
e3
:
SetCondition
(
c33158448
.
lvcon
)
e3
:
SetOperation
(
c33158448
.
lvop
)
e3
:
SetOperation
(
c33158448
.
lvop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
...
c33537328.lua
View file @
a81f8cb0
...
@@ -37,9 +37,9 @@ end
...
@@ -37,9 +37,9 @@ end
function
c33537328
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c33537328
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsReason
(
REASON_BATTLE
)
and
c
:
GetBattlePosition
()
~=
POS_FACEUP_DEFENSE
if
chk
==
0
then
return
c
:
IsReason
(
REASON_BATTLE
)
and
c
:
GetBattlePosition
()
~=
POS_FACEUP_DEFENSE
and
Duel
.
CheckReleaseGroup
(
REASON_EFFECT
,
tp
,
Card
.
IsReleasableByEffect
,
1
,
c
)
end
and
Duel
.
CheckReleaseGroup
(
REASON_EFFECT
,
tp
,
nil
,
1
,
c
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
then
if
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
then
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_EFFECT
,
tp
,
Card
.
IsReleasableByEffect
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_EFFECT
,
tp
,
nil
,
1
,
1
,
c
)
Duel
.
Release
(
g
,
REASON_EFFECT
)
Duel
.
Release
(
g
,
REASON_EFFECT
)
Duel
.
SetLP
(
1
-
tp
,
math.ceil
(
Duel
.
GetLP
(
1
-
tp
)
/
2
))
Duel
.
SetLP
(
1
-
tp
,
math.ceil
(
Duel
.
GetLP
(
1
-
tp
)
/
2
))
return
true
return
true
...
...
c37414347.lua
View file @
a81f8cb0
...
@@ -37,6 +37,7 @@ function c37414347.initial_effect(c)
...
@@ -37,6 +37,7 @@ function c37414347.initial_effect(c)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e4
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e4
:
SetCondition
(
c37414347
.
ctcon
)
e4
:
SetCondition
(
c37414347
.
ctcon
)
e4
:
SetTarget
(
c37414347
.
cttg
)
e4
:
SetTarget
(
c37414347
.
cttg
)
e4
:
SetOperation
(
c37414347
.
ctop
)
e4
:
SetOperation
(
c37414347
.
ctop
)
...
...
c39468724.lua
View file @
a81f8cb0
...
@@ -43,7 +43,7 @@ function c39468724.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -43,7 +43,7 @@ function c39468724.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
c
,
REASON_COST
+
REASON_DISCARD
)
end
end
function
c39468724
.
filter
(
c
)
function
c39468724
.
filter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0xb4
)
and
c
:
IsReleasableByEffect
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0xb4
)
end
end
function
c39468724
.
tgfilter
(
c
)
function
c39468724
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0xb4
)
and
c
:
IsAbleToGrave
()
return
c
:
IsSetCard
(
0xb4
)
and
c
:
IsAbleToGrave
()
...
@@ -68,13 +68,10 @@ end
...
@@ -68,13 +68,10 @@ end
function
c39468724
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c39468724
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
end
end
function
c39468724
.
negfilter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsReleasable
()
end
function
c39468724
.
negcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c39468724
.
negcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroupEx
(
REASON_COST
,
tp
,
c39468724
.
negfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroupEx
(
REASON_COST
,
tp
,
nil
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectReleaseGroupEx
(
REASON_COST
,
tp
,
c39468724
.
negfilter
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectReleaseGroupEx
(
REASON_COST
,
tp
,
nil
,
1
,
1
,
nil
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c39468724
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c39468724
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c49154689.lua
View file @
a81f8cb0
...
@@ -16,7 +16,7 @@ end
...
@@ -16,7 +16,7 @@ end
function
c49154689
.
cfilter
(
c
,
e
,
tp
)
function
c49154689
.
cfilter
(
c
,
e
,
tp
)
local
race
=
c
:
GetOriginalRace
()
local
race
=
c
:
GetOriginalRace
()
local
attr
=
c
:
GetOriginalAttribute
()
local
attr
=
c
:
GetOriginalAttribute
()
return
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_MONSTER
)
~=
0
and
c
:
IsReleasable
()
return
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_MONSTER
)
~=
0
and
Duel
.
GetMZoneCount
(
tp
,
c
,
tp
)
>
0
and
Duel
.
GetMZoneCount
(
tp
,
c
,
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c49154689
.
spfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
,
race
,
attr
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c49154689
.
spfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
,
race
,
attr
,
e
,
tp
)
end
end
...
...
c49655592.lua
View file @
a81f8cb0
...
@@ -42,6 +42,7 @@ function c49655592.initial_effect(c)
...
@@ -42,6 +42,7 @@ function c49655592.initial_effect(c)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e4
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e4
:
SetCondition
(
c49655592
.
lvcon
)
e4
:
SetCondition
(
c49655592
.
lvcon
)
e4
:
SetOperation
(
c49655592
.
lvop
)
e4
:
SetOperation
(
c49655592
.
lvop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
...
...
c51316684.lua
View file @
a81f8cb0
...
@@ -96,8 +96,8 @@ function c51316684.rmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -96,8 +96,8 @@ function c51316684.rmop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c51316684
.
rmcost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c51316684
.
rmcost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
Card
.
IsReleasable
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
nil
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
Card
.
IsReleasable
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
nil
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c51316684
.
rmtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c51316684
.
rmtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c52038272.lua
View file @
a81f8cb0
...
@@ -111,8 +111,8 @@ function c52038272.rmcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -111,8 +111,8 @@ function c52038272.rmcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
~=
tp
return
Duel
.
GetTurnPlayer
()
~=
tp
end
end
function
c52038272
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c52038272
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
Card
.
IsReleasable
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
nil
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
Card
.
IsReleasable
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
nil
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c52038272
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c52038272
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c60551528.lua
View file @
a81f8cb0
...
@@ -107,8 +107,8 @@ function c60551528.rmcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -107,8 +107,8 @@ function c60551528.rmcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
~=
tp
return
Duel
.
GetTurnPlayer
()
~=
tp
end
end
function
c60551528
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60551528
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
Card
.
IsReleasable
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
nil
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
Card
.
IsReleasable
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
nil
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c60551528
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c60551528
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c61292243.lua
View file @
a81f8cb0
...
@@ -31,7 +31,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -31,7 +31,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
s
.
rfilter
(
c
)
function
s
.
rfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
Is
ReleasableByEffect
()
and
c
:
Is
SetCard
(
0x18b
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x18b
)
end
end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
...
...
c6284176.lua
View file @
a81f8cb0
...
@@ -77,7 +77,7 @@ function c6284176.repfilter(c,tp)
...
@@ -77,7 +77,7 @@ function c6284176.repfilter(c,tp)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
end
function
c6284176
.
rfilter
(
c
)
function
c6284176
.
rfilter
(
c
)
return
c
:
IsR
eleasableByEffect
()
and
c
:
IsR
ace
(
RACE_PLANT
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
+
STATUS_BATTLE_DESTROYED
)
return
c
:
IsRace
(
RACE_PLANT
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
+
STATUS_BATTLE_DESTROYED
)
end
end
function
c6284176
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c6284176
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c6284176
.
repfilter
,
1
,
nil
,
tp
)
if
chk
==
0
then
return
eg
:
IsExists
(
c6284176
.
repfilter
,
1
,
nil
,
tp
)
...
...
c64332231.lua
View file @
a81f8cb0
...
@@ -20,14 +20,14 @@ function c64332231.descost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -20,14 +20,14 @@ function c64332231.descost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
end
function
c64332231
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c64332231
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroupEx
(
REASON_EFFECT
,
tp
,
Card
.
IsReleasableByEffect
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroupEx
(
REASON_EFFECT
,
tp
,
nil
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
end
function
c64332231
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c64332231
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct1
=
Duel
.
GetMatchingGroupCount
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
ct1
=
Duel
.
GetMatchingGroupCount
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
rg
=
Duel
.
SelectReleaseGroupEx
(
REASON_EFFECT
,
tp
,
Card
.
IsReleasableByEffect
,
1
,
ct1
,
nil
)
local
rg
=
Duel
.
SelectReleaseGroupEx
(
REASON_EFFECT
,
tp
,
nil
,
1
,
ct1
,
nil
)
local
ct2
=
Duel
.
Release
(
rg
,
REASON_EFFECT
)
local
ct2
=
Duel
.
Release
(
rg
,
REASON_EFFECT
)
if
ct2
==
0
then
return
end
if
ct2
==
0
then
return
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
...
...
c64442155.lua
View file @
a81f8cb0
...
@@ -13,7 +13,7 @@ function c64442155.initial_effect(c)
...
@@ -13,7 +13,7 @@ function c64442155.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c64442155
.
costfilter
(
c
)
function
c64442155
.
costfilter
(
c
)
return
c
:
IsSetCard
(
0x2093
)
and
c
:
GetType
()
&
0x81
==
0x81
and
c
:
IsReleasable
()
return
c
:
IsSetCard
(
0x2093
)
and
c
:
GetType
()
&
0x81
==
0x81
end
end
function
c64442155
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c64442155
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroupEx
(
REASON_COST
,
tp
,
c64442155
.
costfilter
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroupEx
(
REASON_COST
,
tp
,
c64442155
.
costfilter
,
1
,
nil
)
end
...
...
c67045745.lua
View file @
a81f8cb0
...
@@ -29,6 +29,7 @@ function c67045745.initial_effect(c)
...
@@ -29,6 +29,7 @@ function c67045745.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e3
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e3
:
SetCondition
(
c67045745
.
lvcon
)
e3
:
SetCondition
(
c67045745
.
lvcon
)
e3
:
SetOperation
(
c67045745
.
lvop
)
e3
:
SetOperation
(
c67045745
.
lvop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
...
c6764709.lua
View file @
a81f8cb0
...
@@ -31,6 +31,7 @@ function c6764709.initial_effect(c)
...
@@ -31,6 +31,7 @@ function c6764709.initial_effect(c)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e4
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e4
:
SetCondition
(
c6764709
.
lvcon
)
e4
:
SetCondition
(
c6764709
.
lvcon
)
e4
:
SetOperation
(
c6764709
.
lvop
)
e4
:
SetOperation
(
c6764709
.
lvop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
...
...
c70226289.lua
View file @
a81f8cb0
...
@@ -47,7 +47,8 @@ function c70226289.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,7 +47,8 @@ function c70226289.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c70226289
.
chainop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c70226289
.
chainop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
IsRace
(
RACE_SPELLCASTER
)
and
ep
==
tp
then
local
race
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_RACE
)
if
re
:
IsActiveType
(
TYPE_MONSTER
)
and
bit
.
band
(
race
,
RACE_SPELLCASTER
)
~=
0
and
ep
==
tp
then
Duel
.
SetChainLimit
(
c70226289
.
chainlm
)
Duel
.
SetChainLimit
(
c70226289
.
chainlm
)
end
end
end
end
...
...
c71607202.lua
View file @
a81f8cb0
...
@@ -42,7 +42,7 @@ function s.repfilter(c,tp)
...
@@ -42,7 +42,7 @@ function s.repfilter(c,tp)
and
not
c
:
IsReason
(
REASON_REPLACE
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
end
function
s
.
rfilter
(
c
)
function
s
.
rfilter
(
c
)
return
c
:
IsR
eleasableByEffect
()
and
c
:
IsR
ace
(
RACE_FIEND
)
return
c
:
IsRace
(
RACE_FIEND
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
+
STATUS_BATTLE_DESTROYED
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
+
STATUS_BATTLE_DESTROYED
)
end
end
function
s
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c75059201.lua
View file @
a81f8cb0
...
@@ -41,6 +41,7 @@ function c75059201.initial_effect(c)
...
@@ -41,6 +41,7 @@ function c75059201.initial_effect(c)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e4
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e4
:
SetCondition
(
c75059201
.
lvcon
)
e4
:
SetCondition
(
c75059201
.
lvcon
)
e4
:
SetOperation
(
c75059201
.
lvop
)
e4
:
SetOperation
(
c75059201
.
lvop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
...
...
c75676192.lua
View file @
a81f8cb0
...
@@ -25,6 +25,7 @@ function c75676192.initial_effect(c)
...
@@ -25,6 +25,7 @@ function c75676192.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e3
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e3
:
SetCondition
(
c75676192
.
lvcon
)
e3
:
SetCondition
(
c75676192
.
lvcon
)
e3
:
SetOperation
(
c75676192
.
lvop
)
e3
:
SetOperation
(
c75676192
.
lvop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
...
c78371393.lua
View file @
a81f8cb0
...
@@ -73,8 +73,8 @@ end
...
@@ -73,8 +73,8 @@ end
function
c78371393
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c78371393
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
CheckReleaseGroup
(
REASON_EFFECT
,
tp
,
Card
.
IsReleasableByEffect
,
1
,
c
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
78371393
,
2
))
then
if
Duel
.
CheckReleaseGroup
(
REASON_EFFECT
,
tp
,
nil
,
1
,
c
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
78371393
,
2
))
then
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_EFFECT
,
tp
,
Card
.
IsReleasableByEffect
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_EFFECT
,
tp
,
nil
,
1
,
1
,
c
)
Duel
.
Release
(
g
,
REASON_EFFECT
)
Duel
.
Release
(
g
,
REASON_EFFECT
)
else
else
Duel
.
Destroy
(
c
,
REASON_EFFECT
)
Duel
.
Destroy
(
c
,
REASON_EFFECT
)
...
...
c80758812.lua
View file @
a81f8cb0
...
@@ -53,7 +53,7 @@ function c80758812.spop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,7 +53,7 @@ function c80758812.spop1(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
end
end
function
c80758812
.
relfilter
(
c
,
tp
)
function
c80758812
.
relfilter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_DUAL
)
and
c
:
IsReleasableByEffect
()
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
return
c
:
IsType
(
TYPE_DUAL
)
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
end
end
function
c80758812
.
spfilter2
(
c
,
e
,
tp
)
function
c80758812
.
spfilter2
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c88301393.lua
View file @
a81f8cb0
...
@@ -85,8 +85,8 @@ function c88301393.atop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -85,8 +85,8 @@ function c88301393.atop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ChainAttack
()
Duel
.
ChainAttack
()
end
end
function
c88301393
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c88301393
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
Card
.
IsReleasable
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
nil
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
Card
.
IsReleasable
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
nil
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c88301393
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c88301393
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c89423971.lua
View file @
a81f8cb0
...
@@ -114,8 +114,8 @@ function c89423971.rmcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -114,8 +114,8 @@ function c89423971.rmcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
~=
tp
return
Duel
.
GetTurnPlayer
()
~=
tp
end
end
function
c89423971
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c89423971
.
rmcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
Card
.
IsReleasable
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
nil
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
Card
.
IsReleasable
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
nil
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c89423971
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c89423971
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c89776023.lua
View file @
a81f8cb0
...
@@ -68,7 +68,7 @@ function s.desrepfilter(c,tp)
...
@@ -68,7 +68,7 @@ function s.desrepfilter(c,tp)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
end
function
s
.
rfilter
(
c
)
function
s
.
rfilter
(
c
)
return
c
:
IsR
eleasableByEffect
()
and
c
:
IsR
ace
(
RACE_REPTILE
+
RACE_DINOSAUR
)
return
c
:
IsRace
(
RACE_REPTILE
+
RACE_DINOSAUR
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
+
STATUS_BATTLE_DESTROYED
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
+
STATUS_BATTLE_DESTROYED
)
end
end
function
s
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c93449450.lua
View file @
a81f8cb0
...
@@ -31,6 +31,7 @@ function c93449450.initial_effect(c)
...
@@ -31,6 +31,7 @@ function c93449450.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e3
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e3
:
SetCondition
(
c93449450
.
lvcon
)
e3
:
SetCondition
(
c93449450
.
lvcon
)
e3
:
SetOperation
(
c93449450
.
lvop
)
e3
:
SetOperation
(
c93449450
.
lvop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
...
c96055137.lua
View file @
a81f8cb0
...
@@ -85,8 +85,8 @@ function c96055137.rmop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -85,8 +85,8 @@ function c96055137.rmop1(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
function
c96055137
.
rmcost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c96055137
.
rmcost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
Card
.
IsReleasable
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_COST
,
tp
,
nil
,
1
,
nil
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
Card
.
IsReleasable
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_COST
,
tp
,
nil
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c96055137
.
rmtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c96055137
.
rmtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c97342942.lua
View file @
a81f8cb0
...
@@ -27,7 +27,7 @@ function c97342942.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -27,7 +27,7 @@ function c97342942.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RELEASE
,
nil
,
1
,
tp
,
LOCATION_MZONE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RELEASE
,
nil
,
1
,
tp
,
LOCATION_MZONE
)
end
end
function
c97342942
.
rfilter
(
c
,
e
)
function
c97342942
.
rfilter
(
c
,
e
)
return
c
:
IsFaceup
()
and
c
:
IsReleasableByEffect
()
and
not
c
:
IsImmuneToEffect
(
e
)
return
c
:
IsFaceup
()
and
not
c
:
IsImmuneToEffect
(
e
)
end
end
function
c97342942
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c97342942
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c99666430.lua
View file @
a81f8cb0
...
@@ -64,7 +64,7 @@ function c99666430.descon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -64,7 +64,7 @@ function c99666430.descon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
IsExistingMatchingCard
(
c99666430
.
confilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c99666430
.
confilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
end
function
c99666430
.
rlfilter
(
c
,
tp
)
function
c99666430
.
rlfilter
(
c
,
tp
)
return
c
:
IsReleasableByEffect
()
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
c
)
end
end
function
c99666430
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c99666430
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_EFFECT
,
tp
,
c99666430
.
rlfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
REASON_EFFECT
,
tp
,
c99666430
.
rlfilter
,
1
,
nil
,
tp
)
end
...
@@ -75,7 +75,7 @@ function c99666430.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -75,7 +75,7 @@ function c99666430.desop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_EFFECT
,
tp
,
c99666430
.
rlfilter
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectReleaseGroup
(
REASON_EFFECT
,
tp
,
c99666430
.
rlfilter
,
1
,
1
,
nil
,
tp
)
if
g
:
GetCount
()
==
0
then
if
g
:
GetCount
()
==
0
then
g
=
Duel
.
SelectReleaseGroup
(
REASON_EFFECT
,
tp
,
Card
.
IsReleasableByEffect
,
1
,
1
,
nil
)
g
=
Duel
.
SelectReleaseGroup
(
REASON_EFFECT
,
tp
,
nil
,
1
,
1
,
nil
)
end
end
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
HintSelection
(
g
)
...
...
constant.lua
View file @
a81f8cb0
...
@@ -247,6 +247,18 @@ CHAININFO_TRIGGERING_ATTRIBUTE =0x100000 --连锁发生时的属性
...
@@ -247,6 +247,18 @@ CHAININFO_TRIGGERING_ATTRIBUTE =0x100000 --连锁发生时的属性
CHAININFO_TRIGGERING_RACE
=
0x200000
--连锁发生时的种族
CHAININFO_TRIGGERING_RACE
=
0x200000
--连锁发生时的种族
CHAININFO_TRIGGERING_ATTACK
=
0x400000
--连锁发生时的攻击力
CHAININFO_TRIGGERING_ATTACK
=
0x400000
--连锁发生时的攻击力
CHAININFO_TRIGGERING_DEFENSE
=
0x800000
--连锁发生时的守备力
CHAININFO_TRIGGERING_DEFENSE
=
0x800000
--连锁发生时的守备力
--Summon info
SUMMON_INFO_CODE
=
0x01
SUMMON_INFO_CODE2
=
0x02
SUMMON_INFO_TYPE
=
0x04
SUMMON_INFO_LEVEL
=
0x08
SUMMON_INFO_RANK
=
0x10
SUMMON_INFO_ATTRIBUTE
=
0x20
SUMMON_INFO_RACE
=
0x40
SUMMON_INFO_ATTACK
=
0x80
SUMMON_INFO_DEFENSE
=
0x100
SUMMON_INFO_REASON_EFFECT
=
0x200
SUMMON_INFO_REASON_PLAYER
=
0x400
--========== Reset ========== --重置条件(注意:重置条件可以多个相加)
--========== Reset ========== --重置条件(注意:重置条件可以多个相加)
RESET_SELF_TURN
=
0x10000000
--自己回合的階段重置
RESET_SELF_TURN
=
0x10000000
--自己回合的階段重置
RESET_OPPO_TURN
=
0x20000000
--对方回合的階段重置
RESET_OPPO_TURN
=
0x20000000
--对方回合的階段重置
...
...
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