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
f63f4a07
Commit
f63f4a07
authored
Mar 19, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
06ffaef9
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
194 additions
and
135 deletions
+194
-135
expansions/script/c11450900.lua
expansions/script/c11450900.lua
+1
-1
expansions/script/c130006027.lua
expansions/script/c130006027.lua
+61
-3
expansions/script/c42621006.lua
expansions/script/c42621006.lua
+1
-1
expansions/script/c60010034.lua
expansions/script/c60010034.lua
+1
-0
expansions/script/c60010035.lua
expansions/script/c60010035.lua
+1
-0
expansions/script/c60010037.lua
expansions/script/c60010037.lua
+1
-0
expansions/script/c60151905.lua
expansions/script/c60151905.lua
+1
-1
expansions/script/c60151909.lua
expansions/script/c60151909.lua
+1
-1
expansions/script/c60152903.lua
expansions/script/c60152903.lua
+1
-1
expansions/script/c60152913.lua
expansions/script/c60152913.lua
+116
-116
expansions/script/c60152921.lua
expansions/script/c60152921.lua
+4
-6
expansions/script/c60152927.lua
expansions/script/c60152927.lua
+5
-5
No files found.
expansions/script/c11450900.lua
View file @
f63f4a07
...
@@ -28,7 +28,7 @@ function cm.initial_effect(c)
...
@@ -28,7 +28,7 @@ function cm.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
--
e1:SetProperty(EFFECT_FLAG_DELAY)
e1
:
SetCondition
(
cm
.
descon
)
e1
:
SetCondition
(
cm
.
descon
)
e1
:
SetOperation
(
cm
.
desop2
)
e1
:
SetOperation
(
cm
.
desop2
)
Duel
.
RegisterEffect
(
e1
,
0
)
Duel
.
RegisterEffect
(
e1
,
0
)
...
...
expansions/script/c130006027.lua
View file @
f63f4a07
--龙神迷子·铃音
--囚徒与恶眼
function
c130006027
.
initial_effect
(
c
)
local
cm
,
m
=
GetID
()
function
cm
.
initial_effect
(
c
)
--search limit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_CUSTOM
+
m
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
if
not
cm
.
global_check
then
cm
.
global_check
=
true
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCondition
(
cm
.
descon
)
e1
:
SetOperation
(
cm
.
desop2
)
Duel
.
RegisterEffect
(
e1
,
0
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
Duel
.
RegisterEffect
(
e2
,
0
)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EVENT_MOVE
)
Duel
.
RegisterEffect
(
e3
,
0
)
end
end
end
function
cm
.
filter
(
c
,
e
)
return
c
:
GetPreviousLocation
()
==
LOCATION_DECK
and
c
:
IsOnField
()
and
(
c
:
IsStatus
(
STATUS_EFFECT_ENABLED
)
or
not
c
:
IsLocation
(
LOCATION_MZONE
)
or
c
:
IsStatus
(
STATUS_CHAINING
)
or
c
:
IsFacedown
())
and
not
((
Duel
.
CheckEvent
(
EVENT_SUMMON_SUCCESS
)
or
Duel
.
CheckEvent
(
EVENT_SPSUMMON_SUCCESS
))
and
e
:
GetCode
()
==
EVENT_MOVE
and
c
:
IsLocation
(
LOCATION_MZONE
))
end
function
cm
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
cm
.
filter
,
1
,
nil
,
e
)
end
function
cm
.
desop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RaiseEvent
(
eg
,
EVENT_CUSTOM
+
m
,
re
,
r
,
rp
,
ep
,
ev
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Group
.
CreateGroup
()
g
:
KeepAlive
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_CUSTOM
+
m
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetOperation
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
eg
:
Filter
(
cm
.
filter
,
nil
,
e
)
e
:
GetLabelObject
():
GetLabelObject
():
Merge
(
g
)
end
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
0
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_ADJUST
)
--e2:SetProperty(EFFECT_FLAG_DELAY)
e2
:
SetLabelObject
(
g
)
e2
:
SetOperation
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
e
:
GetLabelObject
()
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_RULE
)
g
:
Clear
()
end
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
0
)
e1
:
SetLabelObject
(
e2
)
end
\ No newline at end of file
expansions/script/c42621006.lua
View file @
f63f4a07
...
@@ -169,7 +169,7 @@ end
...
@@ -169,7 +169,7 @@ end
function
cm
.
chainop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
chainop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
if
rc
:
IsType
(
0x6
)
and
rc
:
IsOnField
()
and
not
rc
:
IsLocation
(
0x200
)
and
rc
:
Is
RelateToChain
(
re
)
and
rc
:
Is
CanTurnSet
()
and
re
:
GetActivateLocation
()
&
0x0f
~=
0
then
if
rc
:
IsType
(
0x6
)
and
rc
:
IsOnField
()
and
not
rc
:
IsLocation
(
0x200
)
and
rc
:
IsCanTurnSet
()
and
re
:
GetActivateLocation
()
&
0x0f
~=
0
then
if
rc
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
then
if
rc
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
then
rc
:
CancelToGrave
()
rc
:
CancelToGrave
()
end
end
...
...
expansions/script/c60010034.lua
View file @
f63f4a07
...
@@ -30,6 +30,7 @@ function cm.rop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,6 +30,7 @@ function cm.rop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
Remove
(
c
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_HAND
,
0
)
<=
1
then
if
Duel
.
Remove
(
c
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_HAND
,
0
)
<=
1
then
Duel
.
Draw
(
e
:
GetHandlerPlayer
(),
1
,
REASON_EFFECT
)
Duel
.
Draw
(
e
:
GetHandlerPlayer
(),
1
,
REASON_EFFECT
)
end
end
Duel
.
Readjust
()
end
end
function
cm
.
otg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
otg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
expansions/script/c60010035.lua
View file @
f63f4a07
...
@@ -30,6 +30,7 @@ function cm.rop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,6 +30,7 @@ function cm.rop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
Remove
(
c
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_HAND
,
0
)
<=
1
then
if
Duel
.
Remove
(
c
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_HAND
,
0
)
<=
1
then
Duel
.
Draw
(
e
:
GetHandlerPlayer
(),
1
,
REASON_EFFECT
)
Duel
.
Draw
(
e
:
GetHandlerPlayer
(),
1
,
REASON_EFFECT
)
end
end
Duel
.
Readjust
()
end
end
function
cm
.
otg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
otg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
expansions/script/c60010037.lua
View file @
f63f4a07
...
@@ -30,6 +30,7 @@ function cm.rop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,6 +30,7 @@ function cm.rop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
Remove
(
c
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_HAND
,
0
)
<=
1
then
if
Duel
.
Remove
(
c
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_HAND
,
0
)
<=
1
then
Duel
.
Draw
(
e
:
GetHandlerPlayer
(),
1
,
REASON_EFFECT
)
Duel
.
Draw
(
e
:
GetHandlerPlayer
(),
1
,
REASON_EFFECT
)
end
end
Duel
.
Readjust
()
end
end
function
cm
.
otg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
otg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
expansions/script/c60151905.lua
View file @
f63f4a07
...
@@ -6,7 +6,7 @@ function cm.initial_effect(c)
...
@@ -6,7 +6,7 @@ function cm.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCondition
(
c6015190
6
.
e1con
)
e1
:
SetCondition
(
c6015190
5
.
e1con
)
e1
:
SetOperation
(
c60151905
.
e1op
)
e1
:
SetOperation
(
c60151905
.
e1op
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--special summon
--special summon
...
...
expansions/script/c60151909.lua
View file @
f63f4a07
...
@@ -128,7 +128,7 @@ function c60151909.e1ope5filter(e,re)
...
@@ -128,7 +128,7 @@ function c60151909.e1ope5filter(e,re)
end
end
function
c60151909
.
e1ope6tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60151909
.
e1ope6tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
Is
SSetable
()
end
if
chk
==
0
then
return
c
:
Is
CanTurnSet
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
c
,
1
,
0
,
0
)
end
end
function
c60151909
.
e1ope6op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60151909
.
e1ope6op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
expansions/script/c60152903.lua
View file @
f63f4a07
...
@@ -59,7 +59,7 @@ function c60152903.check(c)
...
@@ -59,7 +59,7 @@ function c60152903.check(c)
return
c
return
c
end
end
function
c60152903
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60152903
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
c60152903
.
check
(
Duel
.
Get
BattleTarget
())
~=
nil
then
if
c60152903
.
check
(
Duel
.
Get
Attacker
())
and
c60152903
.
check
(
Duel
.
GetAttackTarget
())
then
Duel
.
RegisterFlagEffect
(
tp
,
60152903
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
60152903
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
1
-
tp
,
60152903
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
1
-
tp
,
60152903
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
...
...
expansions/script/c60152913.lua
View file @
f63f4a07
...
@@ -2,32 +2,32 @@
...
@@ -2,32 +2,32 @@
function
c60152913
.
initial_effect
(
c
)
function
c60152913
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--
--
local
e
1
=
Effect
.
CreateEffect
(
c
)
local
e
0
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetType
(
EFFECT_TYPE_FIELD
)
e
0
:
SetType
(
EFFECT_TYPE_FIELD
)
e
1
:
SetCode
(
EFFECT_DEFENSE_ATTACK
)
e
0
:
SetCode
(
EFFECT_DEFENSE_ATTACK
)
e
1
:
SetRange
(
LOCATION_MZONE
)
e
0
:
SetRange
(
LOCATION_MZONE
)
e
1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e
0
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e
1
:
SetTarget
(
c60152913
.
e1tg
)
e
0
:
SetTarget
(
c60152913
.
e1tg
)
e
1
:
SetValue
(
1
)
e
0
:
SetValue
(
1
)
c
:
RegisterEffect
(
e
1
)
c
:
RegisterEffect
(
e
0
)
--damage conversion
--damage conversion
local
e
2
=
Effect
.
CreateEffect
(
c
)
local
e
8
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetType
(
EFFECT_TYPE_FIELD
)
e
8
:
SetType
(
EFFECT_TYPE_FIELD
)
e
2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e
8
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e
2
:
SetCode
(
EFFECT_REVERSE_DAMAGE
)
e
8
:
SetCode
(
EFFECT_REVERSE_DAMAGE
)
e
2
:
SetRange
(
LOCATION_MZONE
)
e
8
:
SetRange
(
LOCATION_MZONE
)
e
2
:
SetTargetRange
(
1
,
0
)
e
8
:
SetTargetRange
(
1
,
0
)
e
2
:
SetValue
(
c60152913
.
rev
)
e
8
:
SetValue
(
c60152913
.
rev
)
c
:
RegisterEffect
(
e
2
)
c
:
RegisterEffect
(
e
8
)
--effect gain
--effect gain
local
e
3
=
Effect
.
CreateEffect
(
c
)
local
e
9
=
Effect
.
CreateEffect
(
c
)
e
3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e
9
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e
3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e
9
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e
3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e
9
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e
3
:
SetCondition
(
c60152913
.
e3con
)
e
9
:
SetCondition
(
c60152913
.
e3con
)
e
3
:
SetOperation
(
c60152913
.
e3op
)
e
9
:
SetOperation
(
c60152913
.
e3op
)
c
:
RegisterEffect
(
e
3
)
c
:
RegisterEffect
(
e
9
)
end
end
function
c60152913
.
e1tg
(
e
,
c
)
function
c60152913
.
e1tg
(
e
,
c
)
return
c
:
IsSetCard
(
0x3b29
)
return
c
:
IsSetCard
(
0x3b29
)
...
@@ -43,17 +43,17 @@ function c60152913.e3op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,17 +43,17 @@ function c60152913.e3op(e,tp,eg,ep,ev,re,r,rp)
local
g
=
c
:
GetMaterial
()
local
g
=
c
:
GetMaterial
()
if
#
g
==
0
then
return
end
if
#
g
==
0
then
return
end
if
g
:
IsExists
(
Card
.
IsOriginalCode
,
1
,
nil
,
60152901
)
then
if
g
:
IsExists
(
Card
.
IsOriginalCode
,
1
,
nil
,
60152901
)
then
local
e
2
=
Effect
.
CreateEffect
(
c
)
local
e
1
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetDescription
(
aux
.
Stringid
(
60152901
,
1
))
e
1
:
SetDescription
(
aux
.
Stringid
(
60152901
,
1
))
e
2
:
SetCategory
(
CATEGORY_DAMAGE
)
e
1
:
SetCategory
(
CATEGORY_DAMAGE
)
e
2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
2
:
SetCode
(
EVENT_FREE_CHAIN
)
e
1
:
SetCode
(
EVENT_FREE_CHAIN
)
e
2
:
SetRange
(
LOCATION_MZONE
)
e
1
:
SetRange
(
LOCATION_MZONE
)
e
2
:
SetCountLimit
(
1
,
6012901
)
e
1
:
SetCountLimit
(
1
,
6012901
)
e
2
:
SetCondition
(
c60152913
.
con
)
e
1
:
SetCondition
(
c60152913
.
con
)
e
2
:
SetTarget
(
c60152913
.
6015
2901e2
tg
)
e
1
:
SetTarget
(
c60152913
.
2901e2
tg
)
e
2
:
SetOperation
(
c60152913
.
6015
2901e2
op
)
e
1
:
SetOperation
(
c60152913
.
2901e2
op
)
c
:
RegisterEffect
(
e
2
)
c
:
RegisterEffect
(
e
1
)
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
c60152913
,
1
))
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
c60152913
,
1
))
end
end
if
g
:
IsExists
(
Card
.
IsOriginalCodeRule
,
1
,
nil
,
60152902
)
then
if
g
:
IsExists
(
Card
.
IsOriginalCodeRule
,
1
,
nil
,
60152902
)
then
...
@@ -65,78 +65,78 @@ function c60152913.e3op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -65,78 +65,78 @@ function c60152913.e3op(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
6012902
)
e2
:
SetCountLimit
(
1
,
6012902
)
e2
:
SetCondition
(
c60152913
.
con
)
e2
:
SetCondition
(
c60152913
.
con
)
e2
:
SetTarget
(
c60152913
.
6015
2902e2
tg
)
e2
:
SetTarget
(
c60152913
.
2902e2
tg
)
e2
:
SetOperation
(
c60152913
.
6015
2902e2
op
)
e2
:
SetOperation
(
c60152913
.
2902e2
op
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
60152913
,
2
))
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
60152913
,
2
))
end
end
if
g
:
IsExists
(
Card
.
IsOriginalCodeRule
,
1
,
nil
,
60152903
)
then
if
g
:
IsExists
(
Card
.
IsOriginalCodeRule
,
1
,
nil
,
60152903
)
then
local
e
2
=
Effect
.
CreateEffect
(
c
)
local
e
3
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetDescription
(
aux
.
Stringid
(
60152903
,
1
))
e
3
:
SetDescription
(
aux
.
Stringid
(
60152903
,
1
))
e
2
:
SetCategory
(
CATEGORY_DAMAGE
+
CATEGORY_DEFCHANGE
)
e
3
:
SetCategory
(
CATEGORY_DAMAGE
+
CATEGORY_DEFCHANGE
)
e
2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
2
:
SetCode
(
EVENT_FREE_CHAIN
)
e
3
:
SetCode
(
EVENT_FREE_CHAIN
)
e
2
:
SetRange
(
LOCATION_MZONE
)
e
3
:
SetRange
(
LOCATION_MZONE
)
e
2
:
SetCountLimit
(
1
,
6012903
)
e
3
:
SetCountLimit
(
1
,
6012903
)
e
2
:
SetCondition
(
c60152913
.
con
)
e
3
:
SetCondition
(
c60152913
.
con
)
e
2
:
SetTarget
(
c60152913
.
6015
2903e2
tg
)
e
3
:
SetTarget
(
c60152913
.
2903e2
tg
)
e
2
:
SetOperation
(
c60152913
.
6015
2903e2
op
)
e
3
:
SetOperation
(
c60152913
.
2903e2
op
)
c
:
RegisterEffect
(
e
2
)
c
:
RegisterEffect
(
e
3
)
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
60152913
,
3
))
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
60152913
,
3
))
end
end
if
g
:
IsExists
(
Card
.
IsOriginalCodeRule
,
1
,
nil
,
60152904
)
then
if
g
:
IsExists
(
Card
.
IsOriginalCodeRule
,
1
,
nil
,
60152904
)
then
local
e
2
=
Effect
.
CreateEffect
(
c
)
local
e
4
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetDescription
(
aux
.
Stringid
(
60152904
,
1
))
e
4
:
SetDescription
(
aux
.
Stringid
(
60152904
,
1
))
e
2
:
SetCategory
(
CATEGORY_DAMAGE
)
e
4
:
SetCategory
(
CATEGORY_DAMAGE
)
e
2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
2
:
SetCode
(
EVENT_FREE_CHAIN
)
e
4
:
SetCode
(
EVENT_FREE_CHAIN
)
e
2
:
SetRange
(
LOCATION_MZONE
)
e
4
:
SetRange
(
LOCATION_MZONE
)
e
2
:
SetCountLimit
(
1
,
6012904
)
e
4
:
SetCountLimit
(
1
,
6012904
)
e
2
:
SetCondition
(
c60152913
.
con
)
e
4
:
SetCondition
(
c60152913
.
con
)
e
2
:
SetTarget
(
c60152913
.
6015
2904e2
tg
)
e
4
:
SetTarget
(
c60152913
.
2904e2
tg
)
e
2
:
SetOperation
(
c60152913
.
6015
2904e2
op
)
e
4
:
SetOperation
(
c60152913
.
2904e2
op
)
c
:
RegisterEffect
(
e
2
)
c
:
RegisterEffect
(
e
4
)
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
60152913
,
4
))
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
60152913
,
4
))
end
end
if
g
:
IsExists
(
Card
.
IsOriginalCodeRule
,
1
,
nil
,
60152905
)
then
if
g
:
IsExists
(
Card
.
IsOriginalCodeRule
,
1
,
nil
,
60152905
)
then
local
e
2
=
Effect
.
CreateEffect
(
c
)
local
e
5
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetDescription
(
aux
.
Stringid
(
60152905
,
1
))
e
5
:
SetDescription
(
aux
.
Stringid
(
60152905
,
1
))
e
2
:
SetCategory
(
CATEGORY_DISABLE
)
e
5
:
SetCategory
(
CATEGORY_DISABLE
)
e
2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
5
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
2
:
SetCode
(
EVENT_FREE_CHAIN
)
e
5
:
SetCode
(
EVENT_FREE_CHAIN
)
e
2
:
SetRange
(
LOCATION_MZONE
)
e
5
:
SetRange
(
LOCATION_MZONE
)
e
2
:
SetCountLimit
(
1
,
6012905
)
e
5
:
SetCountLimit
(
1
,
6012905
)
e
2
:
SetCondition
(
c60152913
.
con
)
e
5
:
SetCondition
(
c60152913
.
con
)
e
2
:
SetTarget
(
c60152913
.
6015
2905e2
tg
)
e
5
:
SetTarget
(
c60152913
.
2905e2
tg
)
e
2
:
SetOperation
(
c60152913
.
6015
2905e2
op
)
e
5
:
SetOperation
(
c60152913
.
2905e2
op
)
c
:
RegisterEffect
(
e
2
)
c
:
RegisterEffect
(
e
5
)
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
60152913
,
5
))
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
60152913
,
5
))
end
end
if
g
:
IsExists
(
Card
.
IsOriginalCodeRule
,
1
,
nil
,
60152906
)
then
if
g
:
IsExists
(
Card
.
IsOriginalCodeRule
,
1
,
nil
,
60152906
)
then
local
e
2
=
Effect
.
CreateEffect
(
c
)
local
e
6
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetDescription
(
aux
.
Stringid
(
60152906
,
1
))
e
6
:
SetDescription
(
aux
.
Stringid
(
60152906
,
1
))
e
2
:
SetCategory
(
CATEGORY_RECOVER
)
e
6
:
SetCategory
(
CATEGORY_RECOVER
)
e
2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
6
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
2
:
SetCode
(
EVENT_FREE_CHAIN
)
e
6
:
SetCode
(
EVENT_FREE_CHAIN
)
e
2
:
SetRange
(
LOCATION_MZONE
)
e
6
:
SetRange
(
LOCATION_MZONE
)
e
2
:
SetCountLimit
(
1
,
6012906
)
e
6
:
SetCountLimit
(
1
,
6012906
)
e
2
:
SetCondition
(
c60152913
.
con
)
e
6
:
SetCondition
(
c60152913
.
con
)
e
2
:
SetTarget
(
c60152913
.
6015
2906e2
tg
)
e
6
:
SetTarget
(
c60152913
.
2906e2
tg
)
e
2
:
SetOperation
(
c60152913
.
6015
2906e2
op
)
e
6
:
SetOperation
(
c60152913
.
2906e2
op
)
c
:
RegisterEffect
(
e
2
)
c
:
RegisterEffect
(
e
6
)
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
60152913
,
6
))
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
60152913
,
6
))
end
end
if
g
:
IsExists
(
Card
.
IsOriginalCodeRule
,
1
,
nil
,
60152907
)
then
if
g
:
IsExists
(
Card
.
IsOriginalCodeRule
,
1
,
nil
,
60152907
)
then
local
e
2
=
Effect
.
CreateEffect
(
c
)
local
e
7
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetDescription
(
aux
.
Stringid
(
60152907
,
1
))
e
7
:
SetDescription
(
aux
.
Stringid
(
60152907
,
1
))
e
2
:
SetCategory
(
CATEGORY_RECOVER
+
CATEGORY_DAMAGE
)
e
7
:
SetCategory
(
CATEGORY_RECOVER
+
CATEGORY_DAMAGE
)
e
2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
7
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
2
:
SetCode
(
EVENT_FREE_CHAIN
)
e
7
:
SetCode
(
EVENT_FREE_CHAIN
)
e
2
:
SetRange
(
LOCATION_MZONE
)
e
7
:
SetRange
(
LOCATION_MZONE
)
e
2
:
SetCountLimit
(
1
,
6012907
)
e
7
:
SetCountLimit
(
1
,
6012907
)
e
2
:
SetCondition
(
c60152913
.
con
)
e
7
:
SetCondition
(
c60152913
.
con
)
e
2
:
SetTarget
(
c60152913
.
6015
2907e2
tg
)
e
7
:
SetTarget
(
c60152913
.
2907e2
tg
)
e
2
:
SetOperation
(
c60152913
.
6015
2907e2
op
)
e
7
:
SetOperation
(
c60152913
.
2907e2
op
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
60152913
,
7
))
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
60152913
,
7
))
end
end
...
@@ -144,17 +144,17 @@ end
...
@@ -144,17 +144,17 @@ end
function
c60152913
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60152913
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
==
0
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
==
0
end
end
function
c60152913
.
6015
2901e2
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60152913
.
2901e2
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
p
=
PLAYER_ALL
local
p
=
PLAYER_ALL
if
chk
==
0
then
return
not
Duel
.
GetFlagEffect
(
tp
,
60152901
)
==
0
and
Duel
.
GetMatchingGroupCount
(
aux
.
NOT
(
Card
.
IsPublic
),
tp
,
0
,
LOCATION_HAND
,
nil
)
>
0
end
if
chk
==
0
then
return
not
Duel
.
GetFlagEffect
(
tp
,
60152901
)
==
0
and
Duel
.
GetMatchingGroupCount
(
aux
.
NOT
(
Card
.
IsPublic
),
tp
,
0
,
LOCATION_HAND
,
nil
)
>
0
end
Duel
.
SetTargetPlayer
(
p
)
Duel
.
SetTargetPlayer
(
p
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
p
,
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
p
,
1000
)
end
end
function
c60152913
.
6015
2901e2
opfilter
(
c
)
function
c60152913
.
2901e2
opfilter
(
c
)
return
c
:
IsAbleToDeck
()
return
c
:
IsAbleToDeck
()
end
end
function
c60152913
.
6015
2901e2
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60152913
.
2901e2
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
if
p
==
PLAYER_ALL
then
if
p
==
PLAYER_ALL
then
Duel
.
Damage
(
0
,
d
,
REASON_EFFECT
,
true
)
Duel
.
Damage
(
0
,
d
,
REASON_EFFECT
,
true
)
...
@@ -166,7 +166,7 @@ function c60152913.60152901e2op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -166,7 +166,7 @@ function c60152913.60152901e2op(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60152913
.
6015
2901e2
opfilter
,
tp
,
0
,
LOCATION_HAND
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60152913
.
2901e2
opfilter
,
tp
,
0
,
LOCATION_HAND
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
...
@@ -175,17 +175,17 @@ function c60152913.60152901e2op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -175,17 +175,17 @@ function c60152913.60152901e2op(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
function
c60152913
.
6015
2902e2
opfilter
(
c
)
function
c60152913
.
2902e2
opfilter
(
c
)
return
c
:
IsFaceup
()
and
not
c
:
IsDisabled
()
return
c
:
IsFaceup
()
and
not
c
:
IsDisabled
()
end
end
function
c60152913
.
6015
2902e2
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60152913
.
2902e2
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
p
=
PLAYER_ALL
local
p
=
PLAYER_ALL
if
chk
==
0
then
return
not
Duel
.
GetFlagEffect
(
1
-
tp
,
60152902
)
==
0
end
if
chk
==
0
then
return
not
Duel
.
GetFlagEffect
(
1
-
tp
,
60152902
)
==
0
end
Duel
.
SetTargetPlayer
(
p
)
Duel
.
SetTargetPlayer
(
p
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
p
,
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
p
,
1000
)
end
end
function
c60152913
.
6015
2902e2
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60152913
.
2902e2
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
if
p
==
PLAYER_ALL
then
if
p
==
PLAYER_ALL
then
Duel
.
Damage
(
0
,
d
,
REASON_EFFECT
,
true
)
Duel
.
Damage
(
0
,
d
,
REASON_EFFECT
,
true
)
...
@@ -199,7 +199,7 @@ function c60152913.60152902e2op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -199,7 +199,7 @@ function c60152913.60152902e2op(e,tp,eg,ep,ev,re,r,rp)
if
s
<
0
then
s
=
p1
-
p2
end
if
s
<
0
then
s
=
p1
-
p2
end
local
d2
=
math.floor
(
s
/
1000
)
local
d2
=
math.floor
(
s
/
1000
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60152913
.
6015
2902e2
opfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
d2
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60152913
.
2902e2
opfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
d2
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -216,24 +216,24 @@ function c60152913.60152902e2op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -216,24 +216,24 @@ function c60152913.60152902e2op(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
function
c60152913
.
6015
2903e2
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60152913
.
2903e2
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
p
=
PLAYER_ALL
local
p
=
PLAYER_ALL
if
chk
==
0
then
return
not
Duel
.
GetFlagEffect
(
tp
,
60152903
)
==
0
and
Duel
.
GetMatchingGroupCount
(
aux
.
NOT
(
Card
.
IsPublic
),
tp
,
0
,
LOCATION_HAND
,
nil
)
>
0
end
if
chk
==
0
then
return
not
Duel
.
GetFlagEffect
(
tp
,
60152903
)
==
0
and
Duel
.
GetMatchingGroupCount
(
aux
.
NOT
(
Card
.
IsPublic
),
tp
,
0
,
LOCATION_HAND
,
nil
)
>
0
end
Duel
.
SetTargetPlayer
(
p
)
Duel
.
SetTargetPlayer
(
p
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
p
,
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
p
,
1000
)
end
end
function
c60152913
.
6015
2903e2
opfilter
(
c
)
function
c60152913
.
2903e2
opfilter
(
c
)
return
c
:
IsAbleToDeck
()
return
c
:
IsAbleToDeck
()
end
end
function
c60152913
.
6015
2903e2
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60152913
.
2903e2
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
if
p
==
PLAYER_ALL
then
if
p
==
PLAYER_ALL
then
Duel
.
Damage
(
0
,
d
,
REASON_EFFECT
,
true
)
Duel
.
Damage
(
0
,
d
,
REASON_EFFECT
,
true
)
Duel
.
Damage
(
1
,
d
,
REASON_EFFECT
,
true
)
Duel
.
Damage
(
1
,
d
,
REASON_EFFECT
,
true
)
Duel
.
RDComplete
()
Duel
.
RDComplete
()
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
local
g
=
Duel
.
GetMatchingGroup
(
c60152913
.
6015
2903e2
opfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c60152913
.
2903e2
opfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
@@ -251,17 +251,17 @@ function c60152913.60152903e2op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -251,17 +251,17 @@ function c60152913.60152903e2op(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
function
c60152913
.
6015
2904e2
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60152913
.
2904e2
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
p
=
PLAYER_ALL
local
p
=
PLAYER_ALL
if
chk
==
0
then
return
not
Duel
.
GetFlagEffect
(
1
-
tp
,
60152904
)
==
0
end
if
chk
==
0
then
return
not
Duel
.
GetFlagEffect
(
1
-
tp
,
60152904
)
==
0
end
Duel
.
SetTargetPlayer
(
p
)
Duel
.
SetTargetPlayer
(
p
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
p
,
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
p
,
1000
)
end
end
function
c60152913
.
6015
2904e2
opfilter
(
c
)
function
c60152913
.
2904e2
opfilter
(
c
)
return
c
:
IsAbleToDeck
()
return
c
:
IsAbleToDeck
()
end
end
function
c60152913
.
6015
2904e2
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60152913
.
2904e2
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
if
p
==
PLAYER_ALL
then
if
p
==
PLAYER_ALL
then
Duel
.
Damage
(
0
,
d
,
REASON_EFFECT
,
true
)
Duel
.
Damage
(
0
,
d
,
REASON_EFFECT
,
true
)
...
@@ -276,7 +276,7 @@ function c60152913.60152904e2op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -276,7 +276,7 @@ function c60152913.60152904e2op(e,tp,eg,ep,ev,re,r,rp)
local
d2
=
math.floor
(
s
/
1000
)
local
d2
=
math.floor
(
s
/
1000
)
if
d2
>=
1
then
if
d2
>=
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60152913
.
6015
2904e2
opfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
d2
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60152913
.
2904e2
opfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
d2
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
...
@@ -284,7 +284,7 @@ function c60152913.60152904e2op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -284,7 +284,7 @@ function c60152913.60152904e2op(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
function
c60152913
.
6015
2905e2
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60152913
.
2905e2
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
p
=
PLAYER_ALL
local
p
=
PLAYER_ALL
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
60152905
,
1
-
tp
,
ACTIVITY_CHAIN
)
~=
0
end
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
60152905
,
1
-
tp
,
ACTIVITY_CHAIN
)
~=
0
end
Duel
.
SetTargetPlayer
(
p
)
Duel
.
SetTargetPlayer
(
p
)
...
@@ -305,7 +305,7 @@ function c60152913.60152905e2tg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -305,7 +305,7 @@ function c60152913.60152905e2tg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetTargetCard
(
dg
)
Duel
.
SetTargetCard
(
dg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
ng
,
ng
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
ng
,
ng
:
GetCount
(),
0
,
0
)
end
end
function
c60152913
.
6015
2905e2
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60152913
.
2905e2
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
if
p
==
PLAYER_ALL
then
if
p
==
PLAYER_ALL
then
Duel
.
Damage
(
0
,
d
,
REASON_EFFECT
,
true
)
Duel
.
Damage
(
0
,
d
,
REASON_EFFECT
,
true
)
...
@@ -324,16 +324,16 @@ function c60152913.60152905e2op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -324,16 +324,16 @@ function c60152913.60152905e2op(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
function
c60152913
.
6015
2906e2
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60152913
.
2906e2
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
1000
)
end
end
function
c60152913
.
6015
2906e2
opfilter
(
c
)
function
c60152913
.
2906e2
opfilter
(
c
)
return
c
return
c
end
end
function
c60152913
.
6015
2906e2
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60152913
.
2906e2
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Recover
(
p
,
d
,
REASON_EFFECT
)
Duel
.
Recover
(
p
,
d
,
REASON_EFFECT
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
...
@@ -345,31 +345,31 @@ function c60152913.60152906e2op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -345,31 +345,31 @@ function c60152913.60152906e2op(e,tp,eg,ep,ev,re,r,rp)
local
d2
=
math.floor
(
s
/
1000
)
local
d2
=
math.floor
(
s
/
1000
)
if
d2
>=
1
then
if
d2
>=
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60152913
.
6015
2906e2
opfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
d2
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60152913
.
2906e2
opfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
d2
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
HintSelection
(
g
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
end
end
end
end
end
function
c60152913
.
6015
2907e2
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60152913
.
2907e2
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetTargetParam
(
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
1000
)
end
end
function
c60152913
.
6015
2907e2
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60152913
.
2907e2
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Recover
(
p
,
d
,
REASON_EFFECT
)
Duel
.
Recover
(
p
,
d
,
REASON_EFFECT
)
--lose lp
--lose lp
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e1
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e1
:
SetOperation
(
c60152913
.
6015
2907e2
opop
)
e1
:
SetOperation
(
c60152913
.
2907e2
opop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c60152913
.
6015
2907e2
opop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60152913
.
2907e2
opop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
60152913
)
Duel
.
Hint
(
HINT_CARD
,
0
,
60152913
)
Duel
.
Damage
(
tp
,
500
,
REASON_EFFECT
,
true
)
Duel
.
Damage
(
tp
,
500
,
REASON_EFFECT
,
true
)
Duel
.
Damage
(
1
-
tp
,
500
,
REASON_EFFECT
,
true
)
Duel
.
Damage
(
1
-
tp
,
500
,
REASON_EFFECT
,
true
)
...
...
expansions/script/c60152921.lua
View file @
f63f4a07
...
@@ -62,14 +62,12 @@ function c60152921.e1op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -62,14 +62,12 @@ function c60152921.e1op(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
local
tc2
=
g
:
GetFirst
()
local
tc2
=
g
:
GetFirst
()
if
Duel
.
GetMatchingGroup
(
c60152921
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
tc2
)
>
0
then
local
g2
=
Duel
.
GetMatchingGroup
(
c60152921
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
tc2
)
if
g2
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
3072077
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g3
=
Duel
.
SelectMatchingCard
(
tp
,
c60152921
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tc2
)
local
sg
=
g2
:
Select
(
tp
,
1
,
1
,
nil
)
if
g3
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g3
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g3
)
end
end
end
end
end
end
end
...
...
expansions/script/c60152927.lua
View file @
f63f4a07
...
@@ -4,7 +4,7 @@ function c60152927.initial_effect(c)
...
@@ -4,7 +4,7 @@ function c60152927.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCondition
(
c6015292
5
.
e1con
)
e1
:
SetCondition
(
c6015292
7
.
e1con
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--cannot be target
--cannot be target
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -36,11 +36,11 @@ function c60152927.initial_effect(c)
...
@@ -36,11 +36,11 @@ function c60152927.initial_effect(c)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetProperty
(
EFFECT_FLAG_NO_TURN_RESET
)
e5
:
SetProperty
(
EFFECT_FLAG_NO_TURN_RESET
)
e5
:
SetCountLimit
(
1
)
e5
:
SetCountLimit
(
1
)
e5
:
SetTarget
(
c6
142488
.
e5tg
)
e5
:
SetTarget
(
c6
0152927
.
e5tg
)
e5
:
SetOperation
(
c6
142488
.
e5op
)
e5
:
SetOperation
(
c6
0152927
.
e5op
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c6015292
5
.
e1con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c6015292
7
.
e1con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
==
0
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsFacedown
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
==
0
end
end
function
c60152927
.
target
(
e
,
c
)
function
c60152927
.
target
(
e
,
c
)
...
@@ -75,7 +75,7 @@ end
...
@@ -75,7 +75,7 @@ end
function
c60152927
.
filter
(
c
,
e
,
tp
)
function
c60152927
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x3b29
)
and
c
:
IsType
(
TYPE_RITUAL
)
return
c
:
IsSetCard
(
0x3b29
)
and
c
:
IsType
(
TYPE_RITUAL
)
end
end
function
c6
483224
.
filter2
(
c
)
function
c6
0152927
.
filter2
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsType
(
TYPE_FUSION
)
or
c
:
IsType
(
TYPE_SYNCHRO
)
or
c
:
IsType
(
TYPE_XYZ
)
or
c
:
IsType
(
TYPE_LINK
))
return
c
:
IsFaceup
()
and
(
c
:
IsType
(
TYPE_FUSION
)
or
c
:
IsType
(
TYPE_SYNCHRO
)
or
c
:
IsType
(
TYPE_XYZ
)
or
c
:
IsType
(
TYPE_LINK
))
end
end
function
c60152927
.
e5tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60152927
.
e5tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
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