Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-scripts-888
Commits
956d4138
Commit
956d4138
authored
Jan 28, 2024
by
Chen Bill
Committed by
GitHub
Jan 28, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use ATTRIBUTE_ALL & ~X (#2381)
parent
fe6f4d50
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
25 additions
and
25 deletions
+25
-25
c10352095.lua
c10352095.lua
+1
-1
c12421694.lua
c12421694.lua
+1
-1
c18214905.lua
c18214905.lua
+1
-1
c19036557.lua
c19036557.lua
+1
-1
c20127343.lua
c20127343.lua
+1
-1
c20426176.lua
c20426176.lua
+1
-1
c25704359.lua
c25704359.lua
+1
-1
c38049541.lua
c38049541.lua
+1
-1
c40410110.lua
c40410110.lua
+1
-1
c43739056.lua
c43739056.lua
+1
-1
c45115956.lua
c45115956.lua
+1
-1
c45702014.lua
c45702014.lua
+1
-1
c46425662.lua
c46425662.lua
+1
-1
c54757758.lua
c54757758.lua
+1
-1
c5908650.lua
c5908650.lua
+1
-1
c60226558.lua
c60226558.lua
+1
-1
c63288573.lua
c63288573.lua
+1
-1
c72819261.lua
c72819261.lua
+1
-1
c74567889.lua
c74567889.lua
+1
-1
c83032858.lua
c83032858.lua
+1
-1
c8491308.lua
c8491308.lua
+1
-1
c90673288.lua
c90673288.lua
+1
-1
c94331452.lua
c94331452.lua
+2
-2
c9505425.lua
c9505425.lua
+1
-1
No files found.
c10352095.lua
View file @
956d4138
...
@@ -31,7 +31,7 @@ function c10352095.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -31,7 +31,7 @@ function c10352095.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
local
rc
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
-
g
:
GetFirst
():
GetAttribute
())
local
rc
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
&~
g
:
GetFirst
():
GetAttribute
())
e
:
GetLabelObject
():
SetLabel
(
rc
)
e
:
GetLabelObject
():
SetLabel
(
rc
)
e
:
GetHandler
():
SetHint
(
CHINT_ATTRIBUTE
,
rc
)
e
:
GetHandler
():
SetHint
(
CHINT_ATTRIBUTE
,
rc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
...
...
c12421694.lua
View file @
956d4138
...
@@ -30,7 +30,7 @@ function c12421694.initial_effect(c)
...
@@ -30,7 +30,7 @@ function c12421694.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c12421694
.
matfilter
(
c
)
function
c12421694
.
matfilter
(
c
)
return
c
:
IsLinkSetCard
(
0x1115
)
and
c
:
IsLinkAttribute
(
ATTRIBUTE_ALL
-
ATTRIBUTE_EARTH
)
return
c
:
IsLinkSetCard
(
0x1115
)
and
c
:
IsLinkAttribute
(
ATTRIBUTE_ALL
&~
ATTRIBUTE_EARTH
)
end
end
function
c12421694
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c12421694
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsFaceup
()
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsFaceup
()
end
...
...
c18214905.lua
View file @
956d4138
...
@@ -58,7 +58,7 @@ end
...
@@ -58,7 +58,7 @@ end
function
c18214905
.
atttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c18214905
.
atttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
-
e
:
GetHandler
():
GetAttribute
())
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
&~
e
:
GetHandler
():
GetAttribute
())
e
:
SetLabel
(
att
)
e
:
SetLabel
(
att
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_GRAVE
)
end
end
...
...
c19036557.lua
View file @
956d4138
...
@@ -56,7 +56,7 @@ end
...
@@ -56,7 +56,7 @@ end
function
c19036557
.
atttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c19036557
.
atttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
-
e
:
GetHandler
():
GetAttribute
())
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
&~
e
:
GetHandler
():
GetAttribute
())
e
:
SetLabel
(
att
)
e
:
SetLabel
(
att
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_GRAVE
)
end
end
...
...
c20127343.lua
View file @
956d4138
...
@@ -17,7 +17,7 @@ function c20127343.costg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -17,7 +17,7 @@ function c20127343.costg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
-
g
:
GetFirst
():
GetAttribute
())
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
&~
g
:
GetFirst
():
GetAttribute
())
e
:
SetLabel
(
att
)
e
:
SetLabel
(
att
)
end
end
function
c20127343
.
cosop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20127343
.
cosop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c20426176.lua
View file @
956d4138
...
@@ -37,7 +37,7 @@ function c20426176.atrtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -37,7 +37,7 @@ function c20426176.atrtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
-
g
:
GetFirst
():
GetAttribute
())
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
&~
g
:
GetFirst
():
GetAttribute
())
e
:
SetLabel
(
att
)
e
:
SetLabel
(
att
)
end
end
function
c20426176
.
thfilter
(
c
,
e
,
tp
,
ft
)
function
c20426176
.
thfilter
(
c
,
e
,
tp
,
ft
)
...
...
c25704359.lua
View file @
956d4138
...
@@ -66,7 +66,7 @@ function c25704359.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -66,7 +66,7 @@ function c25704359.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
att
=
bit
.
band
(
att
,
tc
:
GetOriginalAttribute
())
att
=
bit
.
band
(
att
,
tc
:
GetOriginalAttribute
())
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
att
=
ATTRIBUTE_ALL
-
att
att
=
ATTRIBUTE_ALL
&~
att
e
:
SetLabel
(
att
)
e
:
SetLabel
(
att
)
return
Duel
.
IsExistingMatchingCard
(
c25704359
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
att
)
return
Duel
.
IsExistingMatchingCard
(
c25704359
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
att
)
end
end
...
...
c38049541.lua
View file @
956d4138
...
@@ -26,7 +26,7 @@ function c38049541.costg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -26,7 +26,7 @@ function c38049541.costg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c38049541
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c38049541
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
-
g
:
GetFirst
():
GetAttribute
())
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
&~
g
:
GetFirst
():
GetAttribute
())
e
:
SetLabel
(
att
)
e
:
SetLabel
(
att
)
end
end
function
c38049541
.
cosop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c38049541
.
cosop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c40410110.lua
View file @
956d4138
...
@@ -14,7 +14,7 @@ function c40410110.attop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -14,7 +14,7 @@ function c40410110.attop(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
local
catt
=
c
:
GetAttribute
()
local
catt
=
c
:
GetAttribute
()
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
-
catt
)
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
&~
catt
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
)
...
...
c43739056.lua
View file @
956d4138
...
@@ -41,7 +41,7 @@ function c43739056.ctop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -41,7 +41,7 @@ function c43739056.ctop(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
GetControl
(
c
,
1
-
tp
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
43739056
,
0
))
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
GetControl
(
c
,
1
-
tp
)
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
43739056
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
local
aat
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
-
e
:
GetHandler
():
GetAttribute
())
local
aat
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
&~
e
:
GetHandler
():
GetAttribute
())
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_ATTRIBUTE
)
e1
:
SetCode
(
EFFECT_CHANGE_ATTRIBUTE
)
...
...
c45115956.lua
View file @
956d4138
...
@@ -66,7 +66,7 @@ function c45115956.attop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -66,7 +66,7 @@ function c45115956.attop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
local
catt
=
tc
:
GetAttribute
()
local
catt
=
tc
:
GetAttribute
()
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
-
catt
)
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
&~
catt
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
...
...
c45702014.lua
View file @
956d4138
...
@@ -59,7 +59,7 @@ end
...
@@ -59,7 +59,7 @@ end
function
c45702014
.
atttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c45702014
.
atttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
-
e
:
GetHandler
():
GetAttribute
())
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
&~
e
:
GetHandler
():
GetAttribute
())
e
:
SetLabel
(
att
)
e
:
SetLabel
(
att
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_GRAVE
)
end
end
...
...
c46425662.lua
View file @
956d4138
...
@@ -57,7 +57,7 @@ end
...
@@ -57,7 +57,7 @@ end
function
c46425662
.
atttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c46425662
.
atttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
-
e
:
GetHandler
():
GetAttribute
())
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
&~
e
:
GetHandler
():
GetAttribute
())
e
:
SetLabel
(
att
)
e
:
SetLabel
(
att
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_GRAVE
)
end
end
...
...
c54757758.lua
View file @
956d4138
...
@@ -42,7 +42,7 @@ end
...
@@ -42,7 +42,7 @@ end
function
c54757758
.
atttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c54757758
.
atttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
local
aat
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
-
e
:
GetHandler
():
GetAttribute
())
local
aat
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
&~
e
:
GetHandler
():
GetAttribute
())
e
:
SetLabel
(
aat
)
e
:
SetLabel
(
aat
)
end
end
function
c54757758
.
attop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c54757758
.
attop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c5908650.lua
View file @
956d4138
...
@@ -16,7 +16,7 @@ function c5908650.initial_effect(c)
...
@@ -16,7 +16,7 @@ function c5908650.initial_effect(c)
end
end
function
c5908650
.
chainfilter
(
re
,
tp
,
cid
)
function
c5908650
.
chainfilter
(
re
,
tp
,
cid
)
local
attr
=
Duel
.
GetChainInfo
(
cid
,
CHAININFO_TRIGGERING_ATTRIBUTE
)
local
attr
=
Duel
.
GetChainInfo
(
cid
,
CHAININFO_TRIGGERING_ATTRIBUTE
)
return
not
(
re
:
IsActiveType
(
TYPE_MONSTER
)
and
attr
&
(
ATTRIBUTE_ALL
-
ATTRIBUTE_LIGHT
)
~=
0
)
return
not
(
re
:
IsActiveType
(
TYPE_MONSTER
)
and
attr
&
(
ATTRIBUTE_ALL
&~
ATTRIBUTE_LIGHT
)
~=
0
)
end
end
function
c5908650
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c5908650
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
5908650
,
tp
,
ACTIVITY_CHAIN
)
==
0
end
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
5908650
,
tp
,
ACTIVITY_CHAIN
)
==
0
end
...
...
c60226558.lua
View file @
956d4138
...
@@ -38,7 +38,7 @@ function c60226558.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -38,7 +38,7 @@ function c60226558.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c60226558
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c60226558
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
-
g
:
GetFirst
():
GetAttribute
())
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
&~
g
:
GetFirst
():
GetAttribute
())
e
:
SetLabel
(
att
)
e
:
SetLabel
(
att
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
...
...
c63288573.lua
View file @
956d4138
...
@@ -24,7 +24,7 @@ function c63288573.initial_effect(c)
...
@@ -24,7 +24,7 @@ function c63288573.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c63288573
.
matfilter
(
c
)
function
c63288573
.
matfilter
(
c
)
return
c
:
IsLinkSetCard
(
0x1115
)
and
c
:
IsLinkAttribute
(
ATTRIBUTE_ALL
-
ATTRIBUTE_FIRE
)
return
c
:
IsLinkSetCard
(
0x1115
)
and
c
:
IsLinkAttribute
(
ATTRIBUTE_ALL
&~
ATTRIBUTE_FIRE
)
end
end
function
c63288573
.
atkval
(
e
)
function
c63288573
.
atkval
(
e
)
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_GRAVE
,
0
,
nil
,
TYPE_SPELL
)
*
100
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_GRAVE
,
0
,
nil
,
TYPE_SPELL
)
*
100
...
...
c72819261.lua
View file @
956d4138
...
@@ -55,7 +55,7 @@ end
...
@@ -55,7 +55,7 @@ end
function
c72819261
.
atttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c72819261
.
atttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
-
e
:
GetHandler
():
GetAttribute
())
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
&~
e
:
GetHandler
():
GetAttribute
())
e
:
SetLabel
(
att
)
e
:
SetLabel
(
att
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_GRAVE
)
end
end
...
...
c74567889.lua
View file @
956d4138
...
@@ -73,7 +73,7 @@ function c74567889.seqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -73,7 +73,7 @@ function c74567889.seqop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
MoveSequence
(
c
,
nseq
)
Duel
.
MoveSequence
(
c
,
nseq
)
if
c
:
GetSequence
()
==
nseq
and
Duel
.
SelectEffectYesNo
(
tp
,
c
,
aux
.
Stringid
(
74567889
,
2
))
then
if
c
:
GetSequence
()
==
nseq
and
Duel
.
SelectEffectYesNo
(
tp
,
c
,
aux
.
Stringid
(
74567889
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
local
attr
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
-
c
:
GetAttribute
())
local
attr
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
&~
c
:
GetAttribute
())
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_ATTRIBUTE
)
e1
:
SetCode
(
EFFECT_CHANGE_ATTRIBUTE
)
...
...
c83032858.lua
View file @
956d4138
...
@@ -58,7 +58,7 @@ end
...
@@ -58,7 +58,7 @@ end
function
c83032858
.
atttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c83032858
.
atttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
-
e
:
GetHandler
():
GetAttribute
())
local
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
&~
e
:
GetHandler
():
GetAttribute
())
e
:
SetLabel
(
att
)
e
:
SetLabel
(
att
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
e
:
GetHandler
(),
1
,
tp
,
LOCATION_GRAVE
)
end
end
...
...
c8491308.lua
View file @
956d4138
...
@@ -19,7 +19,7 @@ function c8491308.initial_effect(c)
...
@@ -19,7 +19,7 @@ function c8491308.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c8491308
.
matfilter
(
c
)
function
c8491308
.
matfilter
(
c
)
return
c
:
IsLinkSetCard
(
0x1115
)
and
c
:
IsLinkAttribute
(
ATTRIBUTE_ALL
-
ATTRIBUTE_WIND
)
return
c
:
IsLinkSetCard
(
0x1115
)
and
c
:
IsLinkAttribute
(
ATTRIBUTE_ALL
&~
ATTRIBUTE_WIND
)
end
end
function
c8491308
.
tgfilter
(
c
)
function
c8491308
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x115
)
and
c
:
IsAbleToGrave
()
return
c
:
IsSetCard
(
0x115
)
and
c
:
IsAbleToGrave
()
...
...
c90673288.lua
View file @
956d4138
...
@@ -35,7 +35,7 @@ function c90673288.initial_effect(c)
...
@@ -35,7 +35,7 @@ function c90673288.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c90673288
.
matfilter
(
c
)
function
c90673288
.
matfilter
(
c
)
return
c
:
IsLinkSetCard
(
0x1115
)
and
c
:
IsLinkAttribute
(
ATTRIBUTE_ALL
-
ATTRIBUTE_WATER
)
return
c
:
IsLinkSetCard
(
0x1115
)
and
c
:
IsLinkAttribute
(
ATTRIBUTE_ALL
&~
ATTRIBUTE_WATER
)
end
end
function
c90673288
.
atkval
(
e
)
function
c90673288
.
atkval
(
e
)
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_GRAVE
,
0
,
nil
,
TYPE_SPELL
)
*-
100
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
e
:
GetHandlerPlayer
(),
LOCATION_GRAVE
,
0
,
nil
,
TYPE_SPELL
)
*-
100
...
...
c94331452.lua
View file @
956d4138
...
@@ -29,7 +29,7 @@ function c94331452.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -29,7 +29,7 @@ function c94331452.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c94331452
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c94331452
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
local
rc
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
-
g
:
GetFirst
():
GetAttribute
())
local
rc
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
&~
g
:
GetFirst
():
GetAttribute
())
e
:
SetLabel
(
rc
)
e
:
SetLabel
(
rc
)
end
end
function
c94331452
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c94331452
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
@@ -38,7 +38,7 @@ function c94331452.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -38,7 +38,7 @@ function c94331452.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c94331452
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c94331452
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
local
rc
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
-
g
:
GetFirst
():
GetAttribute
())
local
rc
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
&~
g
:
GetFirst
():
GetAttribute
())
e
:
SetLabel
(
rc
)
e
:
SetLabel
(
rc
)
end
end
function
c94331452
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94331452
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c9505425.lua
View file @
956d4138
...
@@ -55,7 +55,7 @@ end
...
@@ -55,7 +55,7 @@ end
function
c9505425
.
atttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c9505425
.
atttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATTRIBUTE
)
local
aat
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
-
e
:
GetHandler
():
GetAttribute
())
local
aat
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
ATTRIBUTE_ALL
&~
e
:
GetHandler
():
GetAttribute
())
e
:
SetLabel
(
aat
)
e
:
SetLabel
(
aat
)
end
end
function
c9505425
.
attop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9505425
.
attop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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