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
e1588070
Commit
e1588070
authored
Mar 25, 2024
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
72db42a7
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
390 additions
and
65 deletions
+390
-65
expansions/script/c11451011.lua
expansions/script/c11451011.lua
+8
-2
expansions/script/c11451012.lua
expansions/script/c11451012.lua
+8
-2
expansions/script/c11451013.lua
expansions/script/c11451013.lua
+8
-2
expansions/script/c11451014.lua
expansions/script/c11451014.lua
+8
-2
expansions/script/c11451505.lua
expansions/script/c11451505.lua
+2
-1
expansions/script/c11451510.lua
expansions/script/c11451510.lua
+1
-1
expansions/script/c11451547.lua
expansions/script/c11451547.lua
+2
-2
expansions/script/c11451827.lua
expansions/script/c11451827.lua
+25
-4
expansions/script/c11451860.lua
expansions/script/c11451860.lua
+42
-3
expansions/script/c11451927.lua
expansions/script/c11451927.lua
+9
-4
expansions/script/c11533700.lua
expansions/script/c11533700.lua
+7
-14
expansions/script/c11533701.lua
expansions/script/c11533701.lua
+44
-2
expansions/script/c12895010.lua
expansions/script/c12895010.lua
+184
-0
expansions/script/c22348342.lua
expansions/script/c22348342.lua
+8
-5
expansions/script/c88100302.lua
expansions/script/c88100302.lua
+1
-1
expansions/script/c88100305.lua
expansions/script/c88100305.lua
+1
-0
expansions/script/c88100306.lua
expansions/script/c88100306.lua
+4
-4
expansions/script/c88100308.lua
expansions/script/c88100308.lua
+1
-0
expansions/script/c88100313.lua
expansions/script/c88100313.lua
+1
-1
expansions/script/c91000401.lua
expansions/script/c91000401.lua
+6
-4
expansions/script/c91000402.lua
expansions/script/c91000402.lua
+7
-4
expansions/script/c91000403.lua
expansions/script/c91000403.lua
+7
-4
expansions/script/c91000405.lua
expansions/script/c91000405.lua
+6
-3
No files found.
expansions/script/c11451011.lua
View file @
e1588070
...
...
@@ -297,7 +297,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ING
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ED
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ev
==
ev0
end
)
e1
:
SetOperation
(
cm
.
rsop
)
...
...
@@ -320,12 +320,18 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
rsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ING
and
rc
:
IsRelateToEffect
(
re
)
then
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ED
and
rc
:
IsRelateToEffect
(
re
)
then
rc
:
SetStatus
(
STATUS_EFFECT_ENABLED
,
true
)
end
if
e
:
GetCode
()
==
EVENT_CHAIN_NEGATED
and
rc
:
IsRelateToEffect
(
re
)
and
not
(
rc
:
IsOnField
()
and
rc
:
IsFacedown
())
then
rc
:
SetStatus
(
STATUS_ACTIVATE_DISABLED
,
true
)
rc
:
CancelToGrave
(
false
)
local
e1
=
Effect
.
CreateEffect
(
rc
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_TO_DECK
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
rc
:
RegisterEffect
(
e1
)
end
re
:
Reset
()
end
...
...
expansions/script/c11451012.lua
View file @
e1588070
...
...
@@ -298,7 +298,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ING
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ED
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ev
==
ev0
end
)
e1
:
SetOperation
(
cm
.
rsop
)
...
...
@@ -321,12 +321,18 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
rsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ING
and
rc
:
IsRelateToEffect
(
re
)
then
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ED
and
rc
:
IsRelateToEffect
(
re
)
then
rc
:
SetStatus
(
STATUS_EFFECT_ENABLED
,
true
)
end
if
e
:
GetCode
()
==
EVENT_CHAIN_NEGATED
and
rc
:
IsRelateToEffect
(
re
)
and
not
(
rc
:
IsOnField
()
and
rc
:
IsFacedown
())
then
rc
:
SetStatus
(
STATUS_ACTIVATE_DISABLED
,
true
)
rc
:
CancelToGrave
(
false
)
local
e1
=
Effect
.
CreateEffect
(
rc
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_TO_DECK
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
rc
:
RegisterEffect
(
e1
)
end
re
:
Reset
()
end
...
...
expansions/script/c11451013.lua
View file @
e1588070
...
...
@@ -243,7 +243,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ING
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ED
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ev
==
ev0
end
)
e1
:
SetOperation
(
cm
.
rsop
)
...
...
@@ -266,12 +266,18 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
rsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ING
and
rc
:
IsRelateToEffect
(
re
)
then
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ED
and
rc
:
IsRelateToEffect
(
re
)
then
rc
:
SetStatus
(
STATUS_EFFECT_ENABLED
,
true
)
end
if
e
:
GetCode
()
==
EVENT_CHAIN_NEGATED
and
rc
:
IsRelateToEffect
(
re
)
and
not
(
rc
:
IsOnField
()
and
rc
:
IsFacedown
())
then
rc
:
SetStatus
(
STATUS_ACTIVATE_DISABLED
,
true
)
rc
:
CancelToGrave
(
false
)
local
e1
=
Effect
.
CreateEffect
(
rc
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_TO_DECK
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
rc
:
RegisterEffect
(
e1
)
end
re
:
Reset
()
end
...
...
expansions/script/c11451014.lua
View file @
e1588070
...
...
@@ -248,7 +248,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ING
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ED
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ev
==
ev0
end
)
e1
:
SetOperation
(
cm
.
rsop
)
...
...
@@ -271,12 +271,18 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
rsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ING
and
rc
:
IsRelateToEffect
(
re
)
then
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ED
and
rc
:
IsRelateToEffect
(
re
)
then
rc
:
SetStatus
(
STATUS_EFFECT_ENABLED
,
true
)
end
if
e
:
GetCode
()
==
EVENT_CHAIN_NEGATED
and
rc
:
IsRelateToEffect
(
re
)
and
not
(
rc
:
IsOnField
()
and
rc
:
IsFacedown
())
then
rc
:
SetStatus
(
STATUS_ACTIVATE_DISABLED
,
true
)
rc
:
CancelToGrave
(
false
)
local
e1
=
Effect
.
CreateEffect
(
rc
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_TO_DECK
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
rc
:
RegisterEffect
(
e1
)
end
re
:
Reset
()
end
...
...
expansions/script/c11451505.lua
View file @
e1588070
...
...
@@ -68,7 +68,8 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
local
act
=
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
act
)
if
g
:
GetCount
()
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
...
...
expansions/script/c11451510.lua
View file @
e1588070
...
...
@@ -115,7 +115,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
tc
:
AddMonsterAttribute
(
TYPE_EFFECT
,
ATTRIBUTE_DARK
,
RACE_SPELLCASTER
,
6
,
0
,
0
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_
CHANGE
_TYPE
)
e1
:
SetCode
(
EFFECT_
ADD
_TYPE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
0x5fe0000
)
...
...
expansions/script/c11451547.lua
View file @
e1588070
...
...
@@ -201,7 +201,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ING
)
e1
:
SetCode
(
EVENT_CHAIN_SOLV
ED
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ev
==
ev0
end
)
e1
:
SetOperation
(
cm
.
rsop
)
...
...
@@ -213,7 +213,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
rsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ING
and
rc
:
IsRelateToEffect
(
re
)
then
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLV
ED
and
rc
:
IsRelateToEffect
(
re
)
then
rc
:
SetStatus
(
STATUS_EFFECT_ENABLED
,
true
)
end
if
e
:
GetCode
()
==
EVENT_CHAIN_NEGATED
and
rc
:
IsRelateToEffect
(
re
)
and
not
(
rc
:
IsOnField
()
and
rc
:
IsFacedown
())
then
...
...
expansions/script/c11451827.lua
View file @
e1588070
...
...
@@ -87,6 +87,27 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
#
rg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
PLAYER_ALL
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
)
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e1
:
SetCountLimit
(
1
)
e1
:
SetLabel
(
Duel
.
GetCurrentChain
())
e1
:
SetCondition
(
cm
.
rscon2
)
e1
:
SetOperation
(
cm
.
rsop2
)
e1
:
SetReset
(
RESET_CHAIN
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
cm
.
rscon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ev
==
e
:
GetLabel
()
end
function
cm
.
rsop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
re
)
and
e
:
GetHandler
():
IsFaceup
()
and
e
:
GetHandler
():
IsCanTurnSet
()
then
e
:
GetHandler
():
CancelToGrave
()
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEDOWN
)
else
e
:
GetHandler
():
CancelToGrave
()
end
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
@@ -127,13 +148,13 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ChangePosition
(
c
,
POS_FACEDOWN
)
Duel
.
RaiseEvent
(
c
,
EVENT_SSET
,
e
,
REASON_EFFECT
,
tp
,
tp
,
0
)
c
:
ResetFlagEffect
(
m
)
c
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
1
))
c
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
1
))
if
not
KOISHI_CHECK
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
e1
:
SetValue
(
TYPE_TRAP
+
TYPE_COUNTER
)
c
:
RegisterEffect
(
e1
)
else
...
...
@@ -218,13 +239,13 @@ function cm.activate2(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ChangePosition
(
c
,
POS_FACEDOWN
)
Duel
.
RaiseEvent
(
c
,
EVENT_SSET
,
e
,
REASON_EFFECT
,
tp
,
tp
,
0
)
c
:
ResetFlagEffect
(
m
)
c
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
0
))
c
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
0
))
if
not
KOISHI_CHECK
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
)
e1
:
SetValue
(
TYPE_SPELL
)
c
:
RegisterEffect
(
e1
)
else
...
...
expansions/script/c11451860.lua
View file @
e1588070
...
...
@@ -100,6 +100,7 @@ function cm.desop3(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_CHAIN_ACTIVATING
)
e1
:
SetCountLimit
(
1
)
--e1:SetCondition(function() return Duel.GetCurrentChain()==1 end)
e1
:
SetOperation
(
function
(
e
)
Duel
.
RaiseEvent
(
eg
,
EVENT_CUSTOM
+
11451848
,
re
,
r
,
rp
,
ep
,
ev
)
end
)
e1
:
SetReset
(
RESET_CHAIN
)
...
...
@@ -136,12 +137,13 @@ function cm.dsop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
SelectEffectYesNo
(
tp
,
c
)
then
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
Duel
.
SSet
(
tp
,
c
,
tp
,
true
)
c
:
RegisterFlagEffect
(
m
-
11
,
RESET_CHAIN
,
0
,
1
)
--
c:RegisterFlagEffect(m-11,RESET_CHAIN,0,1)
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
m
)
==
0
end
e
:
GetHandler
():
SetStatus
(
STATUS_EFFECT_ENABLED
,
true
)
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetFlagEffect
(
tp
,
m
)
>
0
then
return
end
...
...
@@ -162,7 +164,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
i
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_
MOVE
)
e3
:
SetCode
(
EVENT_
CUSTOM
+
11451848
)
e3
:
SetLabel
(
i
)
e3
:
SetCountLimit
(
1
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
...
...
@@ -175,13 +177,50 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
e4
:
SetCode
(
EVENT_CUSTOM
+
11451848
)
e4
:
SetCondition
(
cm
.
thcon3
)
Duel
.
RegisterEffect
(
e4
,
tp
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCode
(
EVENT_CUSTOM
+
11451848
)
e5
:
SetLabel
(
i
)
e5
:
SetCondition
(
cm
.
thcon2
)
e5
:
SetOperation
(
cm
.
delayop
)
--Duel.RegisterEffect(e5,tp)
e3
:
SetLabelObject
(
e4
)
e4
:
SetLabelObject
(
e3
)
end
end
end
function
cm
.
delayop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ge1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_CHAIN_SOLVED
)
ge1
:
SetCondition
(
function
()
return
Duel
.
GetCurrentChain
()
==
1
end
)
ge1
:
SetOperation
(
cm
.
MergedDelayEventCheck
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
e
:
GetLabel
()))
ge1
:
SetReset
(
RESET_CHAIN
)
Duel
.
RegisterEffect
(
ge1
,
0
)
local
ge2
=
ge1
:
Clone
()
ge2
:
SetCode
(
EVENT_CHAIN_NEGATED
)
Duel
.
RegisterEffect
(
ge2
,
0
)
local
ge3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
ge3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge3
:
SetCode
(
EVENT_CHAIN_END
)
ge3
:
SetOperation
(
cm
.
MergedDelayEventCheck2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
e
:
GetLabel
()))
Duel
.
RegisterEffect
(
ge3
,
0
)
end
function
cm
.
MergedDelayEventCheck
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
i
)
return
function
()
Duel
.
RaiseEvent
(
eg
,
EVENT_CUSTOM
+
11451849
,
re
,
i
,
tp
,
tp
,
ev
)
end
end
function
cm
.
MergedDelayEventCheck2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
i
)
return
function
()
Duel
.
RaiseEvent
(
eg
,
EVENT_CUSTOM
+
11451849
,
re
,
i
,
tp
,
tp
,
ev
)
end
end
function
cm
.
thcon4
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetLabel
()
==
r
and
tp
==
rp
end
function
cm
.
clfilter
(
c
,
tp
,
i
)
return
aux
.
GetColumn
(
c
,
tp
)
==
i
and
not
c
:
IsStatus
(
STATUS_SUMMONING
)
and
c
:
GetFlagEffect
(
m
-
11
)
==
0
return
aux
.
GetColumn
(
c
,
tp
)
==
i
and
not
c
:
IsStatus
(
STATUS_SUMMONING
)
--
and c:GetFlagEffect(m-11)==0
end
function
cm
.
clfilter2
(
c
,
tp
,
i
)
return
aux
.
GetColumn
(
c
,
tp
)
==
i
...
...
expansions/script/c11451927.lua
View file @
e1588070
...
...
@@ -158,7 +158,7 @@ function cm.LinkOperation(f,minc,maxc,gf)
--e1:SetLabel(c:GetFieldID())
e1
:
SetLabelObject
(
c
)
--if con then e1:SetCondition(con) end
--e1:SetCondition(function(e)
return e:GetValue()==0
end)
--e1:SetCondition(function(e)
Debug.Message(oc:GetCode()) return true
end)
e1
:
SetCost
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetLabelObject
()
if
chk
==
0
then
return
eg
:
IsContains
(
c
)
and
c
:
GetFlagEffectLabel
(
m
)
and
c
:
GetFlagEffectLabel
(
m
)
==
cid
end
...
...
@@ -216,7 +216,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
te
:
GetHandler
()
Duel
.
ChangePosition
(
tc
,
POS_FACEUP
)
tc
:
SetStatus
(
STATUS_EFFECT_ENABLED
,
false
)
te
:
SetType
(
26
)
if
tc
:
IsType
(
TYPE_COUNTER
)
then
te
:
SetType
(
26
)
else
te
:
SetType
(
EFFECT_TYPE_QUICK_F
+
EFFECT_TYPE_ACTIVATE
)
end
tc
:
CreateEffectRelation
(
te
)
local
c
=
e
:
GetHandler
()
local
ev0
=
Duel
.
GetCurrentChain
()
+
1
...
...
@@ -232,13 +232,18 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_CHAIN_NEGATED
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EVENT_CHAIN_ACTIVATING
)
e3
:
SetCondition
(
aux
.
TRUE
)
e3
:
SetOperation
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
te
:
SetType
(
EFFECT_TYPE_QUICK_F
+
EFFECT_TYPE_ACTIVATE
)
end
)
Duel
.
RegisterEffect
(
e3
,
tp
)
e
:
Reset
()
end
function
cm
.
rsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
re
:
SetType
(
EFFECT_TYPE_QUICK_F
+
EFFECT_TYPE_ACTIVATE
)
--
re:SetType(EFFECT_TYPE_QUICK_F+EFFECT_TYPE_ACTIVATE)
if
e
:
GetCode
()
==
EVENT_CHAIN_SOLVING
and
rc
:
IsRelateToEffect
(
re
)
then
rc
:
SetStatus
(
STATUS_EFFECT_ENABLED
,
true
)
--
rc:SetStatus(STATUS_EFFECT_ENABLED,true)
local
_NegateActivation
=
Duel
.
NegateActivation
Duel
.
NegateActivation
=
aux
.
TRUE
local
ev0
=
ev
...
...
expansions/script/c11533700.lua
View file @
e1588070
...
...
@@ -2,12 +2,12 @@
function
c11533700
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--cannot special summon
local
e
1
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e
1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e
1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e
1
:
SetValue
(
aux
.
ritlimit
)
c
:
RegisterEffect
(
e
1
)
local
e
0
=
Effect
.
CreateEffect
(
c
)
e
0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e
0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e
0
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e
0
:
SetValue
(
aux
.
ritlimit
)
c
:
RegisterEffect
(
e
0
)
--rl rm td
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_RELEASE
+
CATEGORY_REMOVE
+
CATEGORY_TODECK
+
CATEGORY_DRAW
)
...
...
@@ -69,16 +69,9 @@ end
function
c11533700
.
rrfil2
(
c
)
return
c
:
IsSetCard
(
0xb4
)
and
c
:
IsAbleToRemove
()
end
function
c11533700
.
rrfil
(
c
)
if
not
c
:
IsSetCard
(
0xb4
)
then
return
false
end
if
c
:
IsLocation
(
LOCATION_HAND
)
then
return
c
:
IsReleasable
()
or
c
:
IsAbleToGrave
()
elseif
c
:
IsLocation
(
LOCATION_GRAVE
)
then
return
c
:
IsAbleToRemove
()
and
not
c
:
IsCode
(
11533700
)
else
return
false
end
end
function
c11533700
.
rrttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
b1
=
Duel
.
IsExistingMatchingCard
(
c11533700
.
rrfil1
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
5
,
nil
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
local
b2
=
Duel
.
IsExistingMatchingCard
(
c11533700
.
rrfil2
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
e
:
GetHandler
())
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
3
,
nil
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
if
chk
==
0
then
return
b1
or
b2
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
0
,
tp
,
LOCATION_GRAVE
+
LOCATION_REMOVED
)
...
...
expansions/script/c11533701.lua
View file @
e1588070
...
...
@@ -28,13 +28,13 @@ function c11533701.initial_effect(c)
e2
:
SetCondition
(
c11533701
.
rmcon
)
e2
:
SetTarget
(
c11533701
.
rmtg
)
e2
:
SetOperation
(
c11533701
.
rmop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--apply effect
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCategory
(
CATEGORY_TODECK
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetCode
(
EVENT_REMOVE
)
e4
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e4
:
SetCountLimit
(
1
,
31533701
)
e4
:
SetTarget
(
c11533701
.
efftg
)
e4
:
SetOperation
(
c11533701
.
effop
)
...
...
@@ -51,6 +51,14 @@ function c11533701.initial_effect(c)
--e3:SetTarget(c11533701.spdtg)
--e3:SetOperation(c11533701.spdop)
--c:RegisterEffect(e3)
--adjust
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e0
:
SetCode
(
EVENT_ADJUST
)
e0
:
SetRange
(
0xff
)
e0
:
SetOperation
(
c11533701
.
adjustop
)
c
:
RegisterEffect
(
e0
)
end
Nekroz_discard_effect
=
{}
Nekroz_discard_effect_card
=
{}
...
...
@@ -227,6 +235,40 @@ function c11533701.spdop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
c11533701
.
filter2
(
c
)
return
c
:
IsSetCard
(
0xb4
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsType
(
TYPE_RITUAL
)
end
function
c11533701
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
--
if
not
c11533701
.
globle_check
then
c11533701
.
globle_check
=
true
local
g
=
Duel
.
GetMatchingGroup
(
c11533701
.
filter2
,
0
,
LOCATION_DECK
+
LOCATION_HAND
,
LOCATION_DECK
+
LOCATION_HAND
,
nil
)
cregister
=
Card
.
RegisterEffect
cisdiscardable
=
Card
.
IsDiscardable
table_effect
=
{}
Card
.
IsDiscardable
=
function
(
card
,
reason
)
Nekroz_discard_effect_check
=
true
return
true
end
Card
.
RegisterEffect
=
function
(
card
,
effect
,
flag
)
if
effect
and
effect
:
GetCost
()
then
local
cost
=
effect
:
GetCost
()
Nekroz_discard_effect_check
=
false
local
r
=
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
if
Nekroz_discard_effect_check
then
Nekroz_discard_effect
[
card
:
GetOriginalCode
()]
=
effect
:
Clone
()
end
end
return
end
for
tc
in
aux
.
Next
(
g
)
do
Duel
.
CreateToken
(
0
,
tc
:
GetOriginalCode
())
end
Card
.
RegisterEffect
=
cregister
Card
.
IsDiscardable
=
cisdiscardable
end
e
:
Reset
()
end
function
c11533701
.
filter
(
c
,
tp
,
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
expansions/script/c12895010.lua
0 → 100644
View file @
e1588070
--绚丽狂欢-烈焰伯爵
local
m
=
12895010
local
cm
=
_G
[
"c"
..
m
]
function
c12895010
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
aux
.
EnablePendulumAttribute
(
c
)
c
:
SetSPSummonOnce
(
12895010
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCondition
(
cm
.
spcon
)
e1
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_DISABLE_SUMMON
+
CATEGORY_DESTROY
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SPSUMMON
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetCondition
(
cm
.
discon
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCost
(
cm
.
discost
)
e2
:
SetTarget
(
cm
.
distg
)
e2
:
SetOperation
(
cm
.
disop
)
c
:
RegisterEffect
(
e2
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e5
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e5
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e5
:
SetTarget
(
cm
.
target2
)
e5
:
SetOperation
(
cm
.
operation2
)
c
:
RegisterEffect
(
e5
)
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e8
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e8
:
SetCode
(
EVENT_REMOVE
)
e8
:
SetOperation
(
cm
.
regop
)
c
:
RegisterEffect
(
e8
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_TOHAND
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetRange
(
LOCATION_REMOVED
)
e3
:
SetCondition
(
cm
.
thcon
)
e3
:
SetTarget
(
cm
.
thtg
)
e3
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e4
:
SetCategory
(
CATEGORY_TOHAND
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e4
:
SetCondition
(
cm
.
retcon
)
e4
:
SetTarget
(
cm
.
rettg
)
e4
:
SetOperation
(
cm
.
retop
)
c
:
RegisterEffect
(
e4
)
if
not
cm
.
global_check
then
cm
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
ge1
:
SetLabel
(
12895010
)
ge1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
ge1
:
SetOperation
(
aux
.
sumreg
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
local
e9
=
Effect
.
CreateEffect
(
c
)
e9
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e9
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e9
:
SetOperation
(
cm
.
rcop
)
c
:
RegisterEffect
(
e9
)
end
function
cm
.
spfilter
(
c
)
return
c
:
IsSetCard
(
0xa74
)
and
c
:
IsAbleToRemoveAsCost
()
end
function
cm
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
b1
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
return
b1
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
b1
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
if
b1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
Duel
.
Remove
(
tg
,
POS_FACEUP
,
REASON_COST
)
end
end
--效果1
function
cm
.
spnfilter
(
c
)
return
c
:
IsSetCard
(
0xa74
)
and
c
:
IsAbleToGrave
()
end
function
cm
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
~=
ep
and
Duel
.
GetCurrentChain
()
==
0
end
function
cm
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
spnfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spnfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
cm
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
eg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
eg
:
GetCount
(),
0
,
0
)
end
function
cm
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateSummon
(
eg
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
--效果2
function
cm
.
filter2
(
c
)
return
c
:
IsSetCard
(
0xa74
)
and
c
:
IsAbleToHand
()
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
cm
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
4
end
end
function
cm
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
<
5
then
return
end
Duel
.
ConfirmDecktop
(
tp
,
5
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
5
)
if
g
:
GetCount
()
>
0
and
g
:
FilterCount
(
cm
.
filter2
,
nil
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g2
=
g
:
FilterSelect
(
tp
,
cm
.
filter2
,
1
,
1
,
nil
)
Duel
.
Remove
(
g2
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g2
)
end
Duel
.
ShuffleDeck
(
tp
)
end
--效果3
function
cm
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
c
:
RegisterFlagEffect
(
12895310
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
cm
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
12895310
)
>
0
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
end
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
end
end
--效果4
function
cm
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
m
)
~=
0
end
function
cm
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
cm
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
--效果5
function
cm
.
rcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
cm
.
splimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
cm
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
not
c
:
IsSetCard
(
0xa74
)
end
\ No newline at end of file
expansions/script/c22348342.lua
View file @
e1588070
...
...
@@ -43,7 +43,7 @@ function chuoying.gaixiaoguo3(e,tp,res)
end
end
function
chuoying
.
thfilter
(
c
)
return
(
c
:
IsSetCard
(
0xb70a
)
or
c
:
IsCode
(
22348370
))
and
c
:
IsAbleToHand
(
)
return
(
c
:
IsSetCard
(
0xb70a
)
or
c
:
IsCode
(
22348370
))
and
(
c
:
IsAbleToHand
()
or
c
:
IsAbleToGrave
()
)
end
function
chuoying
.
gaixiaoguo4
(
e
,
tp
,
res
)
local
c
=
e
:
GetHandler
()
...
...
@@ -53,13 +53,16 @@ function chuoying.gaixiaoguo4(e,tp,res)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
22348362
,
3
))
then
if
res
~=
0
then
Duel
.
BreakEffect
()
end
Duel
.
Hint
(
HINT_CARD
,
0
,
22348362
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
ATOHAN
D
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
OPERATECAR
D
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
chuoying
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
tc
=
tg
:
GetFirst
()
if
tc
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
if
tc
:
IsAbleToHand
()
and
(
not
tc
:
IsAbleToGrave
()
or
Duel
.
SelectOption
(
tp
,
1190
,
1191
)
==
0
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
else
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
end
end
end
end
expansions/script/c88100302.lua
View file @
e1588070
...
...
@@ -83,7 +83,7 @@ function c88100302.thcon2(e,tp,eg,ep,ev,re,r,rp)
and
c
:
IsPreviousLocation
(
LOCATION_OVERLAY
)
end
function
c88100302
.
filter
(
c
)
return
c
:
Is
Code
(
24094653
)
and
c
:
Is
SetCard
(
0x5590
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x5590
)
and
c
:
IsAbleToHand
()
end
function
c88100302
.
thtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
...
...
expansions/script/c88100305.lua
View file @
e1588070
...
...
@@ -79,6 +79,7 @@ function c88100305.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c88100305
.
spfilter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
tp
)
end
function
c88100305
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
(
not
tc
:
IsAbleToHand
(
tp
)
or
not
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
88100305
,
3
)))
then
...
...
expansions/script/c88100306.lua
View file @
e1588070
...
...
@@ -12,10 +12,10 @@ function c88100306.initial_effect(c)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
88100306
,
1
))
e2
:
SetCategory
(
CATEGORY_
DESTROY
)
e2
:
SetCategory
(
CATEGORY_
SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetProperty
(
EFFECT_FLAG_
CARD_TARGET
+
EFFECT_FLAG_
DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
88200306
)
e2
:
SetCondition
(
c88100306
.
spcon
)
e2
:
SetCost
(
c88100306
.
spcost
)
...
...
@@ -92,7 +92,7 @@ end
function
c88100306
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsReason
(
REASON_COST
)
and
re
:
IsActivated
()
and
re
:
IsActiveType
(
TYPE_XYZ
)
and
c
:
IsFaceupEx
()
and
c
:
IsPreviousLocation
(
LOCATION_OVERLAY
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_MONSTER
)
and
c
:
IsPreviousLocation
(
LOCATION_OVERLAY
)
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_MONSTER
)
end
function
c88100306
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
1
)
...
...
@@ -117,7 +117,7 @@ function c88100306.spop(e,tp,eg,ep,ev,re,r,rp)
end
function
c88100306
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
1
-
tp
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_MONSTER
)
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
TYPE_MONSTER
)
end
function
c88100306
.
spfilter
(
c
,
e
,
tp
,
mc
)
return
c
:
IsSetCard
(
0x5590
)
and
c
:
IsRank
(
4
)
and
c
:
IsType
(
TYPE_XYZ
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
...
...
expansions/script/c88100308.lua
View file @
e1588070
...
...
@@ -75,6 +75,7 @@ function c88100308.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
1
,
0
,
0
)
end
function
c88100308
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SSet
(
tp
,
tc
)
...
...
expansions/script/c88100313.lua
View file @
e1588070
...
...
@@ -115,7 +115,7 @@ function c88100313.drop(e,tp,eg,ep,ev,re,r,rp)
local
ct
=
Duel
.
GetFieldGroupCount
(
p
,
LOCATION_MZONE
,
0
)
if
ct
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
GetFieldGroup
(
p
,
LOCATION_HAND
,
0
):
Select
(
t
p
,
ct
,
ct
,
nil
)
local
g
=
Duel
.
GetFieldGroup
(
p
,
LOCATION_HAND
,
0
):
Select
(
p
,
ct
,
ct
,
nil
)
if
g
:
GetCount
()
>
0
then
if
bk
then
bk
=
false
...
...
expansions/script/c91000401.lua
View file @
e1588070
...
...
@@ -60,15 +60,17 @@ function cm.op1(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
or
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
end
Duel
.
Equip
(
tp
,
c
,
tc
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
end
c
:
RegisterEffect
(
e3
)
end
function
cm
.
thfilter2
(
c
)
return
c
:
IsSetCard
(
0x9d2
)
and
not
c
:
IsForbidden
()
...
...
expansions/script/c91000402.lua
View file @
e1588070
...
...
@@ -67,18 +67,21 @@ function cm.tg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
function
cm
.
op1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
or
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
end
Duel
.
Equip
(
tp
,
c
,
tc
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
end
end
function
cm
.
con2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetEquipTarget
()
...
...
expansions/script/c91000403.lua
View file @
e1588070
...
...
@@ -59,18 +59,21 @@ function cm.tg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
function
cm
.
op1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
or
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
end
Duel
.
Equip
(
tp
,
c
,
tc
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
end
end
function
cm
.
con2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetEquipTarget
()
...
...
expansions/script/c91000405.lua
View file @
e1588070
...
...
@@ -51,15 +51,18 @@ function cm.op1(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
not
Duel
.
Equip
(
tp
,
c
,
tc
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
or
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
return
end
Duel
.
Equip
(
tp
,
c
,
tc
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
end
end
function
cm
.
thfilter2
(
c
)
return
c
:
IsSetCard
(
0x9d2
)
and
not
c
:
IsForbidden
()
...
...
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