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
9b19bce2
Commit
9b19bce2
authored
May 03, 2025
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
9aeaeb84
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
148 additions
and
103 deletions
+148
-103
expansions/script/c11451505.lua
expansions/script/c11451505.lua
+12
-3
expansions/script/c11451506.lua
expansions/script/c11451506.lua
+12
-3
expansions/script/c11451507.lua
expansions/script/c11451507.lua
+12
-3
expansions/script/c11451508.lua
expansions/script/c11451508.lua
+12
-3
expansions/script/c11451509.lua
expansions/script/c11451509.lua
+12
-3
expansions/script/c11451510.lua
expansions/script/c11451510.lua
+12
-3
expansions/script/c116968003.lua
expansions/script/c116968003.lua
+10
-23
expansions/script/c13131368.lua
expansions/script/c13131368.lua
+16
-22
expansions/script/c9310055.lua
expansions/script/c9310055.lua
+49
-39
expansions/script/c9910607.lua
expansions/script/c9910607.lua
+1
-1
No files found.
expansions/script/c11451505.lua
View file @
9b19bce2
...
@@ -96,7 +96,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -96,7 +96,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
local
b3
=
e
:
GetLabel
()
&
(
0x200
-
0x40
)
>
0
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
re
:
GetHandler
():
IsAbleToRemove
()
local
b3
=
e
:
GetLabel
()
&
(
0x200
-
0x40
)
>
0
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
re
:
GetHandler
():
IsAbleToRemove
()
local
b4
=
e
:
GetLabel
()
&
(
0x1000
-
0x200
)
>
0
local
b4
=
e
:
GetLabel
()
&
(
0x1000
-
0x200
)
>
0
local
b5
=
e
:
GetLabel
()
&
(
0x8000
-
0x1000
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
local
b5
=
e
:
GetLabel
()
&
(
0x8000
-
0x1000
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
local
b6
=
e
:
GetLabel
()
&
(
0x40000
-
0x8000
)
>
0
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
local
b6
=
e
:
GetLabel
()
&
(
0x40000
-
0x8000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
local
b7
=
e
:
GetLabel
()
&
(
0x200000
-
0x40000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
local
b7
=
e
:
GetLabel
()
&
(
0x200000
-
0x40000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
local
b8
=
e
:
GetLabel
()
&
(
0x1000000
-
0x200000
)
>
0
local
b8
=
e
:
GetLabel
()
&
(
0x1000000
-
0x200000
)
>
0
if
b1
then
if
b1
then
...
@@ -130,7 +130,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -130,7 +130,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
off
=
off
+
1
off
=
off
+
1
end
end
if
b7
then
if
b7
then
ops
[
off
]
=
aux
.
Stringid
(
9310055
,
1
)
ops
[
off
]
=
aux
.
Stringid
(
m
,
1
)
opval
[
off
-
1
]
=
7
opval
[
off
-
1
]
=
7
off
=
off
+
1
off
=
off
+
1
end
end
...
@@ -187,7 +187,16 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -187,7 +187,16 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
elseif
opval
[
op
]
==
6
then
elseif
opval
[
op
]
==
6
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
e
:
SetLabel
(
e
:
GetLabel
()
-
0x8000
)
e
:
SetLabel
(
e
:
GetLabel
()
-
0x8000
)
Duel
.
DiscardHand
(
1
-
tp
,
nil
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
11451031
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
+
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
g
:
GetFirst
():
RegisterEffect
(
e1
)
elseif
opval
[
op
]
==
7
then
elseif
opval
[
op
]
==
7
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
e
:
SetLabel
(
e
:
GetLabel
()
-
0x40000
)
e
:
SetLabel
(
e
:
GetLabel
()
-
0x40000
)
...
...
expansions/script/c11451506.lua
View file @
9b19bce2
...
@@ -111,7 +111,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -111,7 +111,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
local
b3
=
e
:
GetLabel
()
&
(
0x200
-
0x40
)
>
0
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
re
:
GetHandler
():
IsAbleToRemove
()
local
b3
=
e
:
GetLabel
()
&
(
0x200
-
0x40
)
>
0
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
re
:
GetHandler
():
IsAbleToRemove
()
local
b4
=
e
:
GetLabel
()
&
(
0x1000
-
0x200
)
>
0
local
b4
=
e
:
GetLabel
()
&
(
0x1000
-
0x200
)
>
0
local
b5
=
e
:
GetLabel
()
&
(
0x8000
-
0x1000
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
local
b5
=
e
:
GetLabel
()
&
(
0x8000
-
0x1000
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
local
b6
=
e
:
GetLabel
()
&
(
0x40000
-
0x8000
)
>
0
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
local
b6
=
e
:
GetLabel
()
&
(
0x40000
-
0x8000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
local
b7
=
e
:
GetLabel
()
&
(
0x200000
-
0x40000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
local
b7
=
e
:
GetLabel
()
&
(
0x200000
-
0x40000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
local
b8
=
e
:
GetLabel
()
&
(
0x1000000
-
0x200000
)
>
0
local
b8
=
e
:
GetLabel
()
&
(
0x1000000
-
0x200000
)
>
0
if
b1
then
if
b1
then
...
@@ -145,7 +145,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -145,7 +145,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
off
=
off
+
1
off
=
off
+
1
end
end
if
b7
then
if
b7
then
ops
[
off
]
=
aux
.
Stringid
(
9310055
,
1
)
ops
[
off
]
=
aux
.
Stringid
(
m
,
1
)
opval
[
off
-
1
]
=
7
opval
[
off
-
1
]
=
7
off
=
off
+
1
off
=
off
+
1
end
end
...
@@ -202,7 +202,16 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -202,7 +202,16 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
elseif
opval
[
op
]
==
6
then
elseif
opval
[
op
]
==
6
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
e
:
SetLabel
(
e
:
GetLabel
()
-
0x8000
)
e
:
SetLabel
(
e
:
GetLabel
()
-
0x8000
)
Duel
.
DiscardHand
(
1
-
tp
,
nil
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
11451031
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
+
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
g
:
GetFirst
():
RegisterEffect
(
e1
)
elseif
opval
[
op
]
==
7
then
elseif
opval
[
op
]
==
7
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
e
:
SetLabel
(
e
:
GetLabel
()
-
0x40000
)
e
:
SetLabel
(
e
:
GetLabel
()
-
0x40000
)
...
...
expansions/script/c11451507.lua
View file @
9b19bce2
...
@@ -130,7 +130,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -130,7 +130,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
local
b3
=
e
:
GetLabel
()
&
(
0x200
-
0x40
)
>
0
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
re
:
GetHandler
():
IsAbleToRemove
()
local
b3
=
e
:
GetLabel
()
&
(
0x200
-
0x40
)
>
0
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
re
:
GetHandler
():
IsAbleToRemove
()
local
b4
=
e
:
GetLabel
()
&
(
0x1000
-
0x200
)
>
0
local
b4
=
e
:
GetLabel
()
&
(
0x1000
-
0x200
)
>
0
local
b5
=
e
:
GetLabel
()
&
(
0x8000
-
0x1000
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
local
b5
=
e
:
GetLabel
()
&
(
0x8000
-
0x1000
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
local
b6
=
e
:
GetLabel
()
&
(
0x40000
-
0x8000
)
>
0
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
local
b6
=
e
:
GetLabel
()
&
(
0x40000
-
0x8000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
local
b7
=
e
:
GetLabel
()
&
(
0x200000
-
0x40000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
local
b7
=
e
:
GetLabel
()
&
(
0x200000
-
0x40000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
local
b8
=
e
:
GetLabel
()
&
(
0x1000000
-
0x200000
)
>
0
local
b8
=
e
:
GetLabel
()
&
(
0x1000000
-
0x200000
)
>
0
if
b1
then
if
b1
then
...
@@ -164,7 +164,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -164,7 +164,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
off
=
off
+
1
off
=
off
+
1
end
end
if
b7
then
if
b7
then
ops
[
off
]
=
aux
.
Stringid
(
9310055
,
1
)
ops
[
off
]
=
aux
.
Stringid
(
m
,
1
)
opval
[
off
-
1
]
=
7
opval
[
off
-
1
]
=
7
off
=
off
+
1
off
=
off
+
1
end
end
...
@@ -221,7 +221,16 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -221,7 +221,16 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
elseif
opval
[
op
]
==
6
then
elseif
opval
[
op
]
==
6
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
e
:
SetLabel
(
e
:
GetLabel
()
-
0x8000
)
e
:
SetLabel
(
e
:
GetLabel
()
-
0x8000
)
Duel
.
DiscardHand
(
1
-
tp
,
nil
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
11451031
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
+
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
g
:
GetFirst
():
RegisterEffect
(
e1
)
elseif
opval
[
op
]
==
7
then
elseif
opval
[
op
]
==
7
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
e
:
SetLabel
(
e
:
GetLabel
()
-
0x40000
)
e
:
SetLabel
(
e
:
GetLabel
()
-
0x40000
)
...
...
expansions/script/c11451508.lua
View file @
9b19bce2
...
@@ -97,7 +97,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -97,7 +97,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
local
b3
=
e
:
GetLabel
()
&
(
0x200
-
0x40
)
>
0
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
re
:
GetHandler
():
IsAbleToRemove
()
local
b3
=
e
:
GetLabel
()
&
(
0x200
-
0x40
)
>
0
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
re
:
GetHandler
():
IsAbleToRemove
()
local
b4
=
e
:
GetLabel
()
&
(
0x1000
-
0x200
)
>
0
local
b4
=
e
:
GetLabel
()
&
(
0x1000
-
0x200
)
>
0
local
b5
=
e
:
GetLabel
()
&
(
0x8000
-
0x1000
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
local
b5
=
e
:
GetLabel
()
&
(
0x8000
-
0x1000
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
local
b6
=
e
:
GetLabel
()
&
(
0x40000
-
0x8000
)
>
0
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
local
b6
=
e
:
GetLabel
()
&
(
0x40000
-
0x8000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
local
b7
=
e
:
GetLabel
()
&
(
0x200000
-
0x40000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
local
b7
=
e
:
GetLabel
()
&
(
0x200000
-
0x40000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
local
b8
=
e
:
GetLabel
()
&
(
0x1000000
-
0x200000
)
>
0
local
b8
=
e
:
GetLabel
()
&
(
0x1000000
-
0x200000
)
>
0
if
b1
then
if
b1
then
...
@@ -131,7 +131,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -131,7 +131,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
off
=
off
+
1
off
=
off
+
1
end
end
if
b7
then
if
b7
then
ops
[
off
]
=
aux
.
Stringid
(
9310055
,
1
)
ops
[
off
]
=
aux
.
Stringid
(
m
,
1
)
opval
[
off
-
1
]
=
7
opval
[
off
-
1
]
=
7
off
=
off
+
1
off
=
off
+
1
end
end
...
@@ -188,7 +188,16 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -188,7 +188,16 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
elseif
opval
[
op
]
==
6
then
elseif
opval
[
op
]
==
6
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
e
:
SetLabel
(
e
:
GetLabel
()
-
0x8000
)
e
:
SetLabel
(
e
:
GetLabel
()
-
0x8000
)
Duel
.
DiscardHand
(
1
-
tp
,
nil
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
11451031
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
+
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
g
:
GetFirst
():
RegisterEffect
(
e1
)
elseif
opval
[
op
]
==
7
then
elseif
opval
[
op
]
==
7
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
e
:
SetLabel
(
e
:
GetLabel
()
-
0x40000
)
e
:
SetLabel
(
e
:
GetLabel
()
-
0x40000
)
...
...
expansions/script/c11451509.lua
View file @
9b19bce2
...
@@ -128,7 +128,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -128,7 +128,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
local
b3
=
e
:
GetLabel
()
&
(
0x200
-
0x40
)
>
0
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
re
:
GetHandler
():
IsAbleToRemove
()
local
b3
=
e
:
GetLabel
()
&
(
0x200
-
0x40
)
>
0
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
re
:
GetHandler
():
IsAbleToRemove
()
local
b4
=
e
:
GetLabel
()
&
(
0x1000
-
0x200
)
>
0
local
b4
=
e
:
GetLabel
()
&
(
0x1000
-
0x200
)
>
0
local
b5
=
e
:
GetLabel
()
&
(
0x8000
-
0x1000
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
local
b5
=
e
:
GetLabel
()
&
(
0x8000
-
0x1000
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
local
b6
=
e
:
GetLabel
()
&
(
0x40000
-
0x8000
)
>
0
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
local
b6
=
e
:
GetLabel
()
&
(
0x40000
-
0x8000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
local
b7
=
e
:
GetLabel
()
&
(
0x200000
-
0x40000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
local
b7
=
e
:
GetLabel
()
&
(
0x200000
-
0x40000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
local
b8
=
e
:
GetLabel
()
&
(
0x1000000
-
0x200000
)
>
0
local
b8
=
e
:
GetLabel
()
&
(
0x1000000
-
0x200000
)
>
0
if
b1
then
if
b1
then
...
@@ -162,7 +162,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -162,7 +162,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
off
=
off
+
1
off
=
off
+
1
end
end
if
b7
then
if
b7
then
ops
[
off
]
=
aux
.
Stringid
(
9310055
,
1
)
ops
[
off
]
=
aux
.
Stringid
(
m
,
1
)
opval
[
off
-
1
]
=
7
opval
[
off
-
1
]
=
7
off
=
off
+
1
off
=
off
+
1
end
end
...
@@ -219,7 +219,16 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -219,7 +219,16 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
elseif
opval
[
op
]
==
6
then
elseif
opval
[
op
]
==
6
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
e
:
SetLabel
(
e
:
GetLabel
()
-
0x8000
)
e
:
SetLabel
(
e
:
GetLabel
()
-
0x8000
)
Duel
.
DiscardHand
(
1
-
tp
,
nil
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
11451031
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
+
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
g
:
GetFirst
():
RegisterEffect
(
e1
)
elseif
opval
[
op
]
==
7
then
elseif
opval
[
op
]
==
7
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
e
:
SetLabel
(
e
:
GetLabel
()
-
0x40000
)
e
:
SetLabel
(
e
:
GetLabel
()
-
0x40000
)
...
...
expansions/script/c11451510.lua
View file @
9b19bce2
...
@@ -208,7 +208,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -208,7 +208,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
local
b3
=
e
:
GetLabel
()
&
(
0x200
-
0x40
)
>
0
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
re
:
GetHandler
():
IsAbleToRemove
()
local
b3
=
e
:
GetLabel
()
&
(
0x200
-
0x40
)
>
0
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
re
:
GetHandler
():
IsAbleToRemove
()
local
b4
=
e
:
GetLabel
()
&
(
0x1000
-
0x200
)
>
0
local
b4
=
e
:
GetLabel
()
&
(
0x1000
-
0x200
)
>
0
local
b5
=
e
:
GetLabel
()
&
(
0x8000
-
0x1000
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
local
b5
=
e
:
GetLabel
()
&
(
0x8000
-
0x1000
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
local
b6
=
e
:
GetLabel
()
&
(
0x40000
-
0x8000
)
>
0
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
local
b6
=
e
:
GetLabel
()
&
(
0x40000
-
0x8000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
local
b7
=
e
:
GetLabel
()
&
(
0x200000
-
0x40000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
local
b7
=
e
:
GetLabel
()
&
(
0x200000
-
0x40000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
local
b8
=
e
:
GetLabel
()
&
(
0x1000000
-
0x200000
)
>
0
local
b8
=
e
:
GetLabel
()
&
(
0x1000000
-
0x200000
)
>
0
if
b1
then
if
b1
then
...
@@ -242,7 +242,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -242,7 +242,7 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
off
=
off
+
1
off
=
off
+
1
end
end
if
b7
then
if
b7
then
ops
[
off
]
=
aux
.
Stringid
(
9310055
,
1
)
ops
[
off
]
=
aux
.
Stringid
(
m
,
1
)
opval
[
off
-
1
]
=
7
opval
[
off
-
1
]
=
7
off
=
off
+
1
off
=
off
+
1
end
end
...
@@ -299,7 +299,16 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -299,7 +299,16 @@ function cm.addition(e,tp,eg,ep,ev,re,r,rp)
elseif
opval
[
op
]
==
6
then
elseif
opval
[
op
]
==
6
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
e
:
SetLabel
(
e
:
GetLabel
()
-
0x8000
)
e
:
SetLabel
(
e
:
GetLabel
()
-
0x8000
)
Duel
.
DiscardHand
(
1
-
tp
,
nil
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
11451031
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
+
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
g
:
GetFirst
():
RegisterEffect
(
e1
)
elseif
opval
[
op
]
==
7
then
elseif
opval
[
op
]
==
7
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
e
:
SetLabel
(
e
:
GetLabel
()
-
0x40000
)
e
:
SetLabel
(
e
:
GetLabel
()
-
0x40000
)
...
...
expansions/script/c116968003.lua
View file @
9b19bce2
...
@@ -57,29 +57,16 @@ function cm.cfilter(c,fc)
...
@@ -57,29 +57,16 @@ function cm.cfilter(c,fc)
return
c
:
IsAbleToGraveAsCost
()
and
(
c
:
IsControler
(
fc
:
GetControler
())
or
c
:
IsFaceup
())
return
c
:
IsAbleToGraveAsCost
()
and
(
c
:
IsControler
(
fc
:
GetControler
())
or
c
:
IsFaceup
())
end
end
function
cm
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsSummonLocation
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
LOCATION_EXTRA
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
local
tc
=
g
:
GetFirst
()
e3
:
SetCode
(
EFFECT_DISABLE
)
while
tc
do
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetTarget
(
cm
.
distg
)
e1
:
SetCode
(
EFFECT_DISABLE
)
Duel
.
RegisterEffect
(
e3
,
tp
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
end
tc
:
RegisterEffect
(
e1
)
function
cm
.
distg
(
e
,
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
return
c
:
IsSummonLocation
(
LOCATION_EXTRA
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
if
tc
:
IsType
(
TYPE_TRAPMONSTER
)
then
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e3
)
end
tc
=
g
:
GetNext
()
end
end
end
function
cm
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
pentg
(
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
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
end
...
...
expansions/script/c13131368.lua
View file @
9b19bce2
...
@@ -77,27 +77,21 @@ function cm.remtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -77,27 +77,21 @@ function cm.remtg(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
rmfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
rmfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
cm
.
remop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
ogfilter
(
c
)
return
c
:
IsType
(
TYPE_TOKEN
)
or
(
c
:
IsLocation
(
LOCATION_REMOVED
)
and
not
c
:
IsReason
(
REASON_REDIRECT
))
end
function
cm
.
remop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
rmfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
rmfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
x
=
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
if
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
==
0
then
return
end
if
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsCode
,
1
,
nil
,
57707471
)
and
x
>
0
then
local
og
=
Duel
.
GetOperatedGroup
():
Filter
(
cm
.
ogfilter
,
nil
)
if
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsCode
,
1
,
nil
,
57707471
)
and
#
og
>
0
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
800
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
#
og
*
800
,
REASON_EFFECT
)
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
og
:
IsExists
(
Card
.
IsCanOverlay
,
1
,
nil
)
then
local
og
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
Duel
.
Overlay
(
c
,
og
)
local
og
=
g
:
FilterSelect
(
tp
,
Card
.
IsCanOverlay
,
1
,
1
,
nil
)
end
Duel
.
Overlay
(
c
,
og
)
end
end
end
end
end
expansions/script/c9310055.lua
View file @
9b19bce2
--悠久之音:单调
--悠久之音:单调
function
c9310055
.
initial_effect
(
c
)
local
cm
,
m
=
GetID
()
aux
.
AddCodeList
(
c
,
9310055
)
function
cm
.
initial_effect
(
c
)
aux
.
AddCodeList
(
c
,
m
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_NEGATE
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_NEGATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e1
:
SetCondition
(
c
9310055
.
condition
)
e1
:
SetCondition
(
c
m
.
condition
)
e1
:
SetTarget
(
c
9310055
.
target
)
e1
:
SetTarget
(
c
m
.
target
)
e1
:
SetOperation
(
c
9310055
.
activate
)
e1
:
SetOperation
(
c
m
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--release
--release
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -18,10 +19,10 @@ function c9310055.initial_effect(c)
...
@@ -18,10 +19,10 @@ function c9310055.initial_effect(c)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e2
:
SetCondition
(
c
9310055
.
condition
)
e2
:
SetCondition
(
c
m
.
condition
)
e2
:
SetCost
(
c
9310055
.
cost
)
e2
:
SetCost
(
c
m
.
cost
)
e2
:
SetTarget
(
c
9310055
.
target
)
e2
:
SetTarget
(
c
m
.
target
)
e2
:
SetOperation
(
c
9310055
.
activate
)
e2
:
SetOperation
(
c
m
.
activate
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--remain field
--remain field
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
@@ -34,23 +35,23 @@ function c9310055.initial_effect(c)
...
@@ -34,23 +35,23 @@ function c9310055.initial_effect(c)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e4
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetCondition
(
c
9310055
.
chcon
)
e4
:
SetCondition
(
c
m
.
chcon
)
e4
:
SetOperation
(
c
9310055
.
chop
)
e4
:
SetOperation
(
c
m
.
chop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c
9310055
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
m
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c
9310055
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c
m
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c
9310055
.
disfilter
(
c
)
function
c
m
.
disfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAbleToHand
()
and
not
c
:
IsCode
(
9310055
)
return
c
:
IsFaceup
()
and
c
:
IsAbleToHand
()
and
not
c
:
IsCode
(
m
)
end
end
function
c
9310055
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c
m
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c
9310055
.
disfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c
m
.
disfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_ONFIELD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_ONFIELD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
@@ -59,31 +60,31 @@ function c9310055.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -59,31 +60,31 @@ function c9310055.target(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e1
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetLabel
(
Duel
.
GetCurrentChain
())
e1
:
SetLabel
(
Duel
.
GetCurrentChain
())
e1
:
SetCondition
(
c
9310055
.
rscon
)
e1
:
SetCondition
(
c
m
.
rscon
)
e1
:
SetOperation
(
c
9310055
.
rsop
)
e1
:
SetOperation
(
c
m
.
rsop
)
e1
:
SetReset
(
RESET_CHAIN
)
e1
:
SetReset
(
RESET_CHAIN
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c
9310055
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
m
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c
9310055
.
disfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c
m
.
disfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
if
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
~=
0
then
if
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
~=
0
then
if
not
re
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
then
return
end
if
not
re
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
then
return
end
Duel
.
NegateActivation
(
ev
)
Duel
.
NegateActivation
(
ev
)
end
end
end
end
function
c
9310055
.
rscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
m
.
rscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ev
==
e
:
GetLabel
()
return
ev
==
e
:
GetLabel
()
end
end
function
c
9310055
.
rsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
m
.
rsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
re
:
SetOperation
(
c
9310055
.
activate
)
re
:
SetOperation
(
c
m
.
activate
)
re
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_NEGATE
)
re
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_NEGATE
)
re
:
SetLabel
(
0
)
re
:
SetLabel
(
0
)
end
end
function
c
9310055
.
chcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
m
.
chcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsStatus
(
STATUS_EFFECT_ENABLED
)
and
re
:
GetHandler
():
IsSetCard
(
0x97d
)
and
re
:
GetHandler
():
GetType
()
&
0x100004
==
0x100004
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
e
:
GetHandler
():
IsStatus
(
STATUS_EFFECT_ENABLED
)
and
re
:
GetHandler
():
IsSetCard
(
0x97d
)
and
re
:
GetHandler
():
GetType
()
&
0x100004
==
0x100004
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c
9310055
.
addition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
m
.
addition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
while
1
==
1
do
while
1
==
1
do
local
off
=
1
local
off
=
1
local
ops
=
{}
local
ops
=
{}
...
@@ -93,7 +94,7 @@ function c9310055.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -93,7 +94,7 @@ function c9310055.addition(e,tp,eg,ep,ev,re,r,rp)
local
b3
=
e
:
GetLabel
()
&
(
0x200
-
0x40
)
>
0
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
re
:
GetHandler
():
IsAbleToRemove
()
local
b3
=
e
:
GetLabel
()
&
(
0x200
-
0x40
)
>
0
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
re
:
GetHandler
():
IsAbleToRemove
()
local
b4
=
e
:
GetLabel
()
&
(
0x1000
-
0x200
)
>
0
local
b4
=
e
:
GetLabel
()
&
(
0x1000
-
0x200
)
>
0
local
b5
=
e
:
GetLabel
()
&
(
0x8000
-
0x1000
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
local
b5
=
e
:
GetLabel
()
&
(
0x8000
-
0x1000
)
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
local
b6
=
e
:
GetLabel
()
&
(
0x40000
-
0x8000
)
>
0
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
>
0
local
b6
=
e
:
GetLabel
()
&
(
0x40000
-
0x8000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
local
b7
=
e
:
GetLabel
()
&
(
0x200000
-
0x40000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
local
b7
=
e
:
GetLabel
()
&
(
0x200000
-
0x40000
)
>
0
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
local
b8
=
e
:
GetLabel
()
&
(
0x1000000
-
0x200000
)
>
0
local
b8
=
e
:
GetLabel
()
&
(
0x1000000
-
0x200000
)
>
0
if
b1
then
if
b1
then
...
@@ -127,7 +128,7 @@ function c9310055.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -127,7 +128,7 @@ function c9310055.addition(e,tp,eg,ep,ev,re,r,rp)
off
=
off
+
1
off
=
off
+
1
end
end
if
b7
then
if
b7
then
ops
[
off
]
=
aux
.
Stringid
(
9310055
,
1
)
ops
[
off
]
=
aux
.
Stringid
(
m
,
1
)
opval
[
off
-
1
]
=
7
opval
[
off
-
1
]
=
7
off
=
off
+
1
off
=
off
+
1
end
end
...
@@ -184,7 +185,16 @@ function c9310055.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -184,7 +185,16 @@ function c9310055.addition(e,tp,eg,ep,ev,re,r,rp)
elseif
opval
[
op
]
==
6
then
elseif
opval
[
op
]
==
6
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
e
:
SetLabel
(
e
:
GetLabel
()
-
0x8000
)
e
:
SetLabel
(
e
:
GetLabel
()
-
0x8000
)
Duel
.
DiscardHand
(
1
-
tp
,
nil
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
11451031
,
2
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
+
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
g
:
GetFirst
():
RegisterEffect
(
e1
)
elseif
opval
[
op
]
==
7
then
elseif
opval
[
op
]
==
7
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
e
:
SetLabel
(
e
:
GetLabel
()
-
0x40000
)
e
:
SetLabel
(
e
:
GetLabel
()
-
0x40000
)
...
@@ -197,7 +207,7 @@ function c9310055.addition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -197,7 +207,7 @@ function c9310055.addition(e,tp,eg,ep,ev,re,r,rp)
elseif
opval
[
op
]
==
8
then
break
end
elseif
opval
[
op
]
==
8
then
break
end
end
end
end
end
function
c
9310055
.
regsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
m
.
regsop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
--if Duel.GetFlagEffect(tp,11451928)>0 then return end
--if Duel.GetFlagEffect(tp,11451928)>0 then return end
--Duel.RegisterFlagEffect(tp,11451928,RESET_PHASE+PHASE_END,0,1)
--Duel.RegisterFlagEffect(tp,11451928,RESET_PHASE+PHASE_END,0,1)
...
@@ -218,8 +228,8 @@ function c9310055.regsop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -218,8 +228,8 @@ function c9310055.regsop(e,tp,eg,ep,ev,re,r,rp)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e3
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e3
:
SetCondition
(
c
9310055
.
disscon
)
e3
:
SetCondition
(
c
m
.
disscon
)
e3
:
SetOperation
(
c
9310055
.
dissop
)
e3
:
SetOperation
(
c
m
.
dissop
)
--e3:SetReset(RESET_PHASE+PHASE_END)
--e3:SetReset(RESET_PHASE+PHASE_END)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
--indes
--indes
...
@@ -228,37 +238,37 @@ function c9310055.regsop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -228,37 +238,37 @@ function c9310055.regsop(e,tp,eg,ep,ev,re,r,rp)
e4
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e4
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e4
:
SetCondition
(
function
()
return
Duel
.
GetTurnPlayer
()
==
tp
end
)
e4
:
SetCondition
(
function
()
return
Duel
.
GetTurnPlayer
()
==
tp
end
)
e4
:
SetTarget
(
c
9310055
.
indtg
)
e4
:
SetTarget
(
c
m
.
indtg
)
e4
:
SetValue
(
function
(
e
)
e
:
SetLabel
(
1
)
return
1
end
)
e4
:
SetValue
(
function
(
e
)
e
:
SetLabel
(
1
)
return
1
end
)
--e4:SetReset(RESET_PHASE+PHASE_END)
--e4:SetReset(RESET_PHASE+PHASE_END)
Duel
.
RegisterEffect
(
e4
,
tp
)
Duel
.
RegisterEffect
(
e4
,
tp
)
end
end
function
c
9310055
.
indtg
(
e
,
c
)
function
c
m
.
indtg
(
e
,
c
)
local
tc
=
e
:
GetHandler
()
local
tc
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
e
:
GetLabel
()
==
0
return
c
:
IsFaceup
()
and
e
:
GetLabel
()
==
0
end
end
function
c
9310055
.
disscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
m
.
disscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsActiveType
(
TYPE_SPELL
)
and
Duel
.
GetTurnPlayer
()
==
tp
return
re
:
IsActiveType
(
TYPE_SPELL
)
and
Duel
.
GetTurnPlayer
()
==
tp
end
end
function
c
9310055
.
dissop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
m
.
dissop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Remove
(
re
:
GetHandler
(),
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
re
:
GetHandler
(),
POS_FACEUP
,
REASON_EFFECT
)
end
end
e
:
Reset
()
e
:
Reset
()
end
end
function
c
9310055
.
chop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
m
.
chop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
--re:SetCategory(re:GetCategory()|CATEGORY_TODECK|CATEGORY_GRAVE_ACTION)
--re:SetCategory(re:GetCategory()|CATEGORY_TODECK|CATEGORY_GRAVE_ACTION)
if
re
:
GetLabel
()
&
0x49421
~=
0
then
re
:
SetLabel
(
re
:
GetLabel
()
+
0x40000
)
return
end
if
re
:
GetLabel
()
&
0x49421
~=
0
then
re
:
SetLabel
(
re
:
GetLabel
()
+
0x40000
)
return
end
re
:
SetLabel
(
re
:
GetLabel
()
+
0x40000
)
re
:
SetLabel
(
re
:
GetLabel
()
+
0x40000
)
local
op
=
re
:
GetOperation
()
local
op
=
re
:
GetOperation
()
local
repop
=
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
repop
=
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
c
9310055
.
addition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
c
m
.
addition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
if
re
:
GetHandler
():
GetOriginalCode
()
==
11451510
or
(
aux
.
GetValueType
(
re
:
GetLabelObject
())
==
"Effect"
and
re
:
GetLabelObject
():
GetHandler
():
GetOriginalCode
()
==
11451510
)
then
if
re
:
GetHandler
():
GetOriginalCode
()
==
11451510
or
(
aux
.
GetValueType
(
re
:
GetLabelObject
())
==
"Effect"
and
re
:
GetLabelObject
():
GetHandler
():
GetOriginalCode
()
==
11451510
)
then
repop
=
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
repop
=
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
c
9310055
.
addition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
c
m
.
addition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
end
end
...
...
expansions/script/c9910607.lua
View file @
9b19bce2
...
@@ -33,7 +33,7 @@ function c9910607.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -33,7 +33,7 @@ function c9910607.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
end
end
function
c9910607
.
ogfilter
(
c
)
function
c9910607
.
ogfilter
(
c
)
return
c
:
Is
Location
(
LOCATION_REMOVED
)
and
not
c
:
IsReason
(
REASON_REDIRECT
)
return
c
:
Is
Type
(
TYPE_TOKEN
)
or
(
c
:
IsLocation
(
LOCATION_REMOVED
)
and
not
c
:
IsReason
(
REASON_REDIRECT
)
)
end
end
function
c9910607
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9910607
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
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