Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
no81cards
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
Nemo Ma
no81cards
Commits
4c4d1f6b
Commit
4c4d1f6b
authored
Dec 31, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8d3e6473
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
297 additions
and
53 deletions
+297
-53
expansions/script/c13254072.lua
expansions/script/c13254072.lua
+25
-6
expansions/script/c33701336.lua
expansions/script/c33701336.lua
+6
-2
expansions/script/c40009611.lua
expansions/script/c40009611.lua
+0
-4
expansions/script/c40009705.lua
expansions/script/c40009705.lua
+0
-4
expansions/script/c40009776.lua
expansions/script/c40009776.lua
+0
-4
expansions/script/c60000169.lua
expansions/script/c60000169.lua
+1
-1
expansions/script/c60010030.lua
expansions/script/c60010030.lua
+19
-24
expansions/script/c60010042.lua
expansions/script/c60010042.lua
+154
-1
expansions/script/c60010053.lua
expansions/script/c60010053.lua
+1
-1
expansions/script/c60010059.lua
expansions/script/c60010059.lua
+2
-2
expansions/script/c60010258.lua
expansions/script/c60010258.lua
+1
-1
expansions/script/c60010275.lua
expansions/script/c60010275.lua
+77
-2
expansions/script/c98920748.lua
expansions/script/c98920748.lua
+1
-1
expansions/script/special.lua
expansions/script/special.lua
+10
-0
No files found.
expansions/script/c13254072.lua
View file @
4c4d1f6b
...
...
@@ -3,6 +3,7 @@ local m=13254072
local
cm
=
_G
[
"c"
..
m
]
xpcall
(
function
()
require
(
"expansions/script/tama"
)
end
,
function
()
require
(
"script/tama"
)
end
)
function
cm
.
initial_effect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetCategory
(
CATEGORY_EQUIP
)
...
...
@@ -11,14 +12,15 @@ function cm.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_MAIN_END
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e1
:
SetLabelObject
(
e2
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_TRIGGER_O
+
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
)
...
...
@@ -31,11 +33,16 @@ function cm.initial_effect(c)
cm
[
c
]
=
elements
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
GetFlagEffect
(
m
)
==
0
end
c
:
RegisterFlagEffect
(
m
,
RESET_CHAIN
,
0
,
1
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
aux
.
NegateEffectMonsterFilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISABLE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
aux
.
TRUE
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
@@ -55,7 +62,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
hb
=
true
end
end
if
hb
and
c
:
IsRelateToEffect
(
e
)
then
if
hb
then
Duel
.
Equip
(
tp
,
c
,
tc
)
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
--Add Equip limit
...
...
@@ -85,8 +92,20 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
cm
.
tglimit
)
tc
:
RegisterEffect
(
e1
,
true
)
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetRange
(
LOCATION_ONFIELD
)
e1
:
SetLabelObject
(
e
:
GetLabelObject
())
e1
:
SetValue
(
cm
.
aclimit
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
,
true
)
end
end
function
cm
.
aclimit
(
e
,
re
,
tp
)
return
re
==
e
:
GetLabelObject
()
end
function
cm
.
tglimit
(
e
,
re
,
tp
)
local
rc
=
re
:
GetHandler
()
return
rc
and
rc
:
IsCode
(
e
:
GetLabel
())
...
...
expansions/script/c33701336.lua
View file @
4c4d1f6b
...
...
@@ -49,9 +49,10 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetRange
(
LOCATION_REMOVED
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e1
:
SetCode
(
EVENT_PHASE
_START
+
PHASE_MAIN1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_OPPO_TURN
,
1
)
e1
:
SetLabel
(
Duel
.
GetTurnCount
())
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_MAIN1
+
RESET_OPPO_TURN
,
1
)
e1
:
SetCondition
(
cm
.
thcon
)
e1
:
SetOperation
(
cm
.
thop
)
tc
:
RegisterEffect
(
e1
)
...
...
@@ -70,6 +71,9 @@ end
function
cm
.
handcon
(
e
)
return
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
)
==
0
end
function
cm
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnCount
()
~=
e
:
GetLabel
()
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SendtoHand
(
e
:
GetHandler
(),
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
tp
,
e
:
GetHandler
())
...
...
expansions/script/c40009611.lua
View file @
4c4d1f6b
...
...
@@ -63,10 +63,6 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
xctgfilter
,
tp
,
LOCATION_FZONE
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g2
)
local
tc
=
g2
:
GetFirst
()
local
og
=
tc
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
end
Duel
.
Overlay
(
tc
,
tg
)
end
end
...
...
expansions/script/c40009705.lua
View file @
4c4d1f6b
...
...
@@ -90,10 +90,6 @@ function cm.xcop(e,tp,eg,ep,ev,re,r,rp)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
xctgfilter
,
tp
,
LOCATION_FZONE
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g2
)
local
tc
=
g2
:
GetFirst
()
local
og
=
tc
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
end
Duel
.
Overlay
(
tc
,
tg
)
end
end
...
...
expansions/script/c40009776.lua
View file @
4c4d1f6b
...
...
@@ -65,10 +65,6 @@ function cm.xcop(e,tp,eg,ep,ev,re,r,rp)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
xctgfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g2
)
local
tc
=
g2
:
GetFirst
()
local
og
=
tc
:
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
end
Duel
.
Overlay
(
tc
,
tg
)
end
end
...
...
expansions/script/c60000169.lua
View file @
4c4d1f6b
...
...
@@ -81,7 +81,7 @@ function cm.tttcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
IsPlayerAffectedByEffect
(
e
:
GetHandlerPlayer
(),
60000163
)
and
e
:
GetHandler
():
GetOverlayCount
()
==
0
end
function
cm
.
cpcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
GetType
()
~=
TYPE_SPELL
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
--and re:GetHandler()==e:GetHandler()
return
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
GetType
()
~=
TYPE_SPELL
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
aux
.
IsCodeListed
(
re
:
GetHandler
(),
60000163
)
--and re:GetHandler()==e:GetHandler()
end
function
cm
.
cptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_EFFECT
)
end
...
...
expansions/script/c60010030.lua
View file @
4c4d1f6b
...
...
@@ -18,7 +18,7 @@ function cm.initial_effect(c)
--draw(spsummon)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e2
:
SetCategory
(
CATEGORY_
TOGRAVE
)
e2
:
SetCategory
(
CATEGORY_
SEARCH
+
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
...
...
@@ -45,36 +45,22 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
fil
(
c
,
race
,
attr
)
return
aux
.
IsCodeListed
(
c
,
60010029
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGrave
()
end
function
cm
.
filterfilter
(
c
,
race
)
return
c
:
IsRace
(
race
)
and
c
:
IsFaceup
()
end
function
cm
.
tgfilter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGrave
()
and
aux
.
IsCodeListed
(
c
,
60010029
)
return
c
:
IsRace
(
race
)
and
c
:
IsAttribute
(
attr
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
(
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
60010132
)
and
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
))
or
(
Duel
.
IsPlayerAffectedByEffect
(
tp
,
60010132
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
,
TYPE_MONSTER
)
end
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
60010132
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
else
local
ag
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
0
,
c
):
Select
(
tp
,
1
,
1
,
nil
)
if
Duel
.
SendtoGrave
(
ag
,
REASON_EFFECT
)
~=
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
local
race
=
ag
:
GetFirst
():
GetRace
()
local
attr
=
ag
:
GetFirst
():
GetAttribute
()
local
gg
=
Duel
.
GetMatchingGroup
(
cm
.
fil
,
tp
,
LOCATION_DECK
,
0
,
nil
,
race
,
attr
):
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
gg
,
REASON_EFFECT
)
end
local
ag
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
tp
,
LOCATION_MZONE
,
0
,
c
,
TYPE_MONSTER
):
Select
(
tp
,
1
,
1
,
nil
)
if
Duel
.
SendtoGrave
(
ag
,
REASON_EFFECT
)
~=
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
local
race
=
ag
:
GetFirst
():
GetRace
()
local
attr
=
ag
:
GetFirst
():
GetAttribute
()
local
gg
=
Duel
.
GetMatchingGroup
(
cm
.
fil
,
tp
,
LOCATION_DECK
,
0
,
nil
,
race
,
attr
):
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
gg
,
REASON_EFFECT
)
end
if
Duel
.
IsE
nvironment
(
60010029
,
tp
)
then
if
Duel
.
IsE
xistingMatchingCard
(
cm
.
ffil
,
tp
,
LOCATION_FZONE
,
0
,
1
,
nil
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
...
...
@@ -88,3 +74,12 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e2
)
end
end
function
cm
.
ffil
(
c
)
return
c
:
IsCode
(
60010029
)
and
c
:
IsFaceup
()
end
expansions/script/c60010042.lua
View file @
4c4d1f6b
--此眼遍观浮世
local
cm
,
m
=
GetID
()
function
c60010042
.
initial_effect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
cm
.
condition
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
c
:
RegisterEffect
(
e2
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DISABLE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e1
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_POSITION
+
CATEGORY_ATKCHANGE
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE_START
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCost
(
cm
.
cost2
)
e3
:
SetTarget
(
cm
.
postg
)
e3
:
SetOperation
(
cm
.
posop
)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
function
cm
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
posfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
end
function
cm
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
posfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
if
g
:
GetCount
()
==
0
then
return
end
if
Duel
.
ChangePosition
(
g
,
POS_FACEUP_ATTACK
)
~=
0
then
local
sg
=
Duel
.
GetOperatedGroup
()
local
tc
=
sg
:
GetFirst
()
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_BATTLE
)
e1
:
SetValue
(
tc
:
GetAttack
()
*
2
)
tc
:
RegisterEffect
(
e1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_DEFENSE_FINAL
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_BATTLE
)
e1
:
SetValue
(
tc
:
GetDefense
()
*
2
)
tc
:
RegisterEffect
(
e1
)
tc
=
sg
:
GetNext
()
end
end
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
NegateAnyFilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NegateAnyFilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NegateAnyFilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
())
local
tc
=
g
:
GetFirst
()
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetValue
(
RESET_TURN_SET
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
tc
=
g
:
GetNext
()
end
if
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e3
:
SetTargetRange
(
0
,
1
)
e3
:
SetValue
(
0
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EFFECT_NO_EFFECT_DAMAGE
)
e4
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e4
,
tp
)
end
end
function
cm
.
condition
(
e
)
return
Duel
.
GetTurnPlayer
()
==
e
:
GetHandlerPlayer
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
true
end
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_HAND
,
nil
)
if
Duel
.
GetMatchingGroupCount
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
>=
Duel
.
GetMatchingGroupCount
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
0
))
then
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsFacedown
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
):
GetFirst
()
g
:
AddCard
(
tc
)
end
Duel
.
ConfirmCards
(
tp
,
g
)
end
local
tc
=
g
:
GetFirst
()
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetTargetRange
(
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
e1
:
SetTarget
(
cm
.
distg1
)
e1
:
SetLabelObject
(
tc
)
e1
:
SetReset
(
RESET_EVENT
+
EVENT_CHAIN_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e2
:
SetCondition
(
cm
.
discon
)
e2
:
SetOperation
(
cm
.
disop
)
e2
:
SetLabelObject
(
tc
)
e2
:
SetReset
(
RESET_EVENT
+
EVENT_CHAIN_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTarget
(
cm
.
distg2
)
e3
:
SetLabelObject
(
tc
)
e3
:
SetReset
(
RESET_EVENT
+
EVENT_CHAIN_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
tc
=
g
:
GetNext
()
end
end
function
cm
.
distg1
(
e
,
c
)
local
tc
=
e
:
GetLabelObject
()
if
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
then
return
c
:
IsOriginalCodeRule
(
tc
:
GetOriginalCodeRule
())
else
return
c
:
IsOriginalCodeRule
(
tc
:
GetOriginalCodeRule
())
and
(
c
:
IsType
(
TYPE_EFFECT
)
or
c
:
GetOriginalType
()
&
TYPE_EFFECT
~=
0
)
end
end
function
cm
.
distg2
(
e
,
c
)
local
tc
=
e
:
GetLabelObject
()
return
c
:
IsOriginalCodeRule
(
tc
:
GetOriginalCodeRule
())
end
function
cm
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
return
re
:
GetHandler
():
IsOriginalCodeRule
(
tc
:
GetOriginalCodeRule
())
end
function
cm
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateEffect
(
ev
)
end
\ No newline at end of file
expansions/script/c60010053.lua
View file @
4c4d1f6b
...
...
@@ -22,7 +22,7 @@ function cm.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCountLimit
(
1
,
m
)
e2
:
SetCountLimit
(
1
,
m
+
10000000
)
e2
:
SetCondition
(
cm
.
con
)
e2
:
SetTarget
(
cm
.
tg
)
e2
:
SetOperation
(
cm
.
op
)
...
...
expansions/script/c60010059.lua
View file @
4c4d1f6b
...
...
@@ -87,14 +87,14 @@ function c60010059.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetValue
(
RESET_TURN_SET
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
)
local
ae
=
tc
:
GetActivateEffect
()
--search
...
...
expansions/script/c60010258.lua
View file @
4c4d1f6b
...
...
@@ -22,7 +22,7 @@ function cm.initial_effect(c)
e3
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
+
CATEGORY_TODECK
+
CATEGORY_LEAVE_GRAVE
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetRange
(
LOCATION_
MZON
E
)
e3
:
SetRange
(
LOCATION_
GRAV
E
)
e3
:
SetCountLimit
(
1
)
e3
:
SetOperation
(
cm
.
bkop
)
c
:
RegisterEffect
(
e3
)
...
...
expansions/script/c60010275.lua
View file @
4c4d1f6b
--黄泉-远辞畴昔-
function
c60010275
.
initial_effect
(
c
)
local
cm
,
m
,
o
=
GetID
()
function
cm
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
60010029
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
--e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetTarget
(
cm
.
retg1
)
e1
:
SetOperation
(
cm
.
retop1
)
c
:
RegisterEffect
(
e1
)
Duel
.
AddCustomActivityCounter
(
m
,
ACTIVITY_CHAIN
,
aux
.
FALSE
)
--special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCountLimit
(
1
,
m
+
10000000
)
e2
:
SetCondition
(
cm
.
con
)
e2
:
SetTarget
(
cm
.
tg
)
e2
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
retg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
(
Duel
.
GetCustomActivityCount
(
m
,
tp
,
ACTIVITY_CHAIN
)
>=
9
or
(
Duel
.
IsPlayerAffectedByEffect
(
tp
,
60010131
)
and
Duel
.
GetCustomActivityCount
(
m
,
tp
,
ACTIVITY_CHAIN
)
>=
4
))
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
cm
.
retop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
~=
0
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
#
g
~=
0
and
Duel
.
IsEnvironment
(
60010029
,
tp
)
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
if
#
Duel
.
GetOperatedGroup
()
>=
5
then
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
0
))
Duel
.
Hint
(
HINT_MESSAGE
,
1
-
tp
,
aux
.
Stringid
(
m
,
0
))
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
m
,
1
))
Duel
.
Hint
(
HINT_MESSAGE
,
1
-
tp
,
aux
.
Stringid
(
m
,
1
))
c
:
SetCardData
(
CARDDATA_CODE
,
m
+
1
)
end
end
end
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tp
=
e
:
GetHandlerPlayer
()
local
ag
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
return
ag
:
GetClassCount
(
Card
.
GetRace
)
==
ag
:
GetCount
()
and
ag
:
GetClassCount
(
Card
.
GetAttribute
)
==
ag
:
GetCount
()
end
function
cm
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
if
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
~=
0
then
Duel
.
BreakEffect
()
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e2
:
SetTarget
(
cm
.
indtg
)
e2
:
SetValue
(
1
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
function
cm
.
indtg
(
e
,
c
)
return
c
:
IsFaceup
()
end
expansions/script/c98920748.lua
View file @
4c4d1f6b
...
...
@@ -75,7 +75,7 @@ function s.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
s
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
Duel
.
Negate
Effect
(
ev
)
~=
0
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsLocation
(
LOCATION_PZONE
)
then
if
Duel
.
Negate
Activation
(
ev
)
~=
0
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsLocation
(
LOCATION_PZONE
)
then
tc
:
AddCounter
(
0x6a
,
1
)
end
end
...
...
expansions/script/special.lua
View file @
4c4d1f6b
...
...
@@ -219,6 +219,16 @@ function Auxiliary.PreloadUds()
end
return
_SendtoHand
(
g
,
top
,
...
)
end
local
_ReturnToField
=
Duel
.
ReturnToField
function
Duel
.
ReturnToField
(
c
,
...
)
local
res
=
_ReturnToField
(
c
,
...
)
if
res
then
c
:
SetStatus
(
STATUS_SUMMON_TURN
,
false
)
c
:
SetStatus
(
STATUS_SPSUMMON_TURN
,
false
)
end
return
res
end
--From REIKAI
if
not
Group
.
ForEach
then
...
...
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