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
4
Merge Requests
4
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
0ce4af63
Commit
0ce4af63
authored
Jan 11, 2024
by
Uytrewq
Committed by
GitHub
Jan 11, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove Card.IsReleasable, Card.IsReleasableByEffect (#2338)
parent
535e2106
Changes
29
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
46 additions
and
52 deletions
+46
-52
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
c296499.lua
c296499.lua
+2
-2
c33537328.lua
c33537328.lua
+2
-2
c39468724.lua
c39468724.lua
+3
-6
c49154689.lua
c49154689.lua
+1
-1
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
c71607202.lua
c71607202.lua
+1
-1
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
c96055137.lua
c96055137.lua
+2
-2
c97342942.lua
c97342942.lua
+1
-1
c99666430.lua
c99666430.lua
+2
-2
No files found.
c10113611.lua
View file @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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
)
...
...
c296499.lua
View file @
0ce4af63
...
@@ -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
)
...
...
c33537328.lua
View file @
0ce4af63
...
@@ -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
...
...
c39468724.lua
View file @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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
...
...
c51316684.lua
View file @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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
...
...
c71607202.lua
View file @
0ce4af63
...
@@ -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
)
...
...
c78371393.lua
View file @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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
)
...
...
c96055137.lua
View file @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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 @
0ce4af63
...
@@ -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
)
...
...
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