Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
MyCard
pre-release-database-cdb
Commits
d82c9973
Commit
d82c9973
authored
May 15, 2024
by
八宫一月
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c33900648.lua
parent
f1d6f5c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
31 deletions
+27
-31
script/c33900648.lua
script/c33900648.lua
+27
-31
No files found.
script/c33900648.lua
View file @
d82c9973
...
@@ -16,13 +16,6 @@ function c33900648.initial_effect(c)
...
@@ -16,13 +16,6 @@ function c33900648.initial_effect(c)
e2
:
SetCondition
(
c33900648
.
mtcon
)
e2
:
SetCondition
(
c33900648
.
mtcon
)
e2
:
SetOperation
(
c33900648
.
mtop
)
e2
:
SetOperation
(
c33900648
.
mtop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--adjust
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_ADJUST
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetOperation
(
c33900648
.
adjustop
)
c
:
RegisterEffect
(
e3
)
--light
--light
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -108,40 +101,40 @@ function c33900648.mtop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -108,40 +101,40 @@ function c33900648.mtop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_COST
)
end
end
end
end
c33900648
[
0
]
=
0
function
c33900648
.
attributechk
(
tp
)
c33900648
[
1
]
=
0
local
attchk
=
0
function
c33900648
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
100222010
)
then
for
p
=
0
,
1
do
attchk
=
ATTRIBUTE_LIGHT
+
ATTRIBUTE_DARK
+
ATTRIBUTE_EARTH
+
ATTRIBUTE_WATER
+
ATTRIBUTE_FIRE
+
ATTRIBUTE_WIND
if
Duel
.
IsPlayerAffectedByEffect
(
p
,
100222010
)
then
else
c33900648
[
p
]
=
ATTRIBUTE_LIGHT
+
ATTRIBUTE_DARK
+
ATTRIBUTE_EARTH
+
ATTRIBUTE_WATER
+
ATTRIBUTE_FIRE
+
ATTRIBUTE_WIND
local
rac
=
0
else
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
rac
=
0
local
tc
=
g
:
GetFirst
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
p
,
LOCATION_MZONE
,
0
,
nil
)
while
tc
do
local
tc
=
g
:
GetFirst
()
while
tc
do
rac
=
bit
.
bor
(
rac
,
tc
:
GetAttribute
())
rac
=
bit
.
bor
(
rac
,
tc
:
GetAttribute
())
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
c33900648
[
p
]
=
rac
end
end
attchk
=
rac
end
end
return
attchk
end
end
function
c33900648
.
lighttg
(
e
,
c
)
function
c33900648
.
lighttg
(
e
,
c
)
return
bit
.
band
(
c33900648
[
c
:
GetControler
()]
,
ATTRIBUTE_LIGHT
)
~=
0
return
bit
.
band
(
c33900648
.
attributechk
(
c
:
GetControler
())
,
ATTRIBUTE_LIGHT
)
~=
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
97811903
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
97811903
)
end
end
function
c33900648
.
darkcon1
(
e
)
function
c33900648
.
darkcon1
(
e
)
return
bit
.
band
(
c33900648
[
e
:
GetHandlerPlayer
()],
ATTRIBUTE_DARK
)
~=
0
local
tp
=
e
:
GetHandlerPlayer
()
return
bit
.
band
(
c33900648
.
attributechk
(
tp
),
ATTRIBUTE_DARK
)
~=
0
and
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
)
>=
2
and
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
)
>=
2
and
not
Duel
.
IsPlayerAffectedByEffect
(
e
:
GetHandlerPlayer
(),
97811903
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
e
:
GetHandlerPlayer
(),
97811903
)
end
end
function
c33900648
.
darkcon2
(
e
)
function
c33900648
.
darkcon2
(
e
)
return
bit
.
band
(
c33900648
[
1
-
e
:
GetHandlerPlayer
()],
ATTRIBUTE_DARK
)
~=
0
local
tp
=
e
:
GetHandlerPlayer
()
return
bit
.
band
(
c33900648
.
attributechk
(
1
-
tp
),
ATTRIBUTE_DARK
)
~=
0
and
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
0
,
LOCATION_MZONE
)
>=
2
and
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
0
,
LOCATION_MZONE
)
>=
2
and
not
Duel
.
IsPlayerAffectedByEffect
(
1
-
e
:
GetHandlerPlayer
(),
97811903
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
1
-
e
:
GetHandlerPlayer
(),
97811903
)
end
end
function
c33900648
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33900648
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
c33900648
[
Duel
.
GetTurnPlayer
()]
,
ATTRIBUTE_EARTH
)
~=
0
return
bit
.
band
(
c33900648
.
attributechk
(
Duel
.
GetTurnPlayer
())
,
ATTRIBUTE_EARTH
)
~=
0
end
end
function
c33900648
.
desfilter
(
c
)
function
c33900648
.
desfilter
(
c
)
return
c
:
IsPosition
(
POS_FACEUP_DEFENSE
)
return
c
:
IsPosition
(
POS_FACEUP_DEFENSE
)
...
@@ -158,7 +151,7 @@ function c33900648.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -158,7 +151,7 @@ function c33900648.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
33900648
,
1
))
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
33900648
,
1
))
end
end
function
c33900648
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33900648
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
bit
.
band
(
c33900648
[
Duel
.
GetTurnPlayer
()]
,
ATTRIBUTE_EARTH
)
==
0
if
bit
.
band
(
c33900648
.
attributechk
(
Duel
.
GetTurnPlayer
())
,
ATTRIBUTE_EARTH
)
==
0
or
Duel
.
IsPlayerAffectedByEffect
(
Duel
.
GetTurnPlayer
(),
97811903
)
then
return
end
or
Duel
.
IsPlayerAffectedByEffect
(
Duel
.
GetTurnPlayer
(),
97811903
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsControler
(
Duel
.
GetTurnPlayer
())
and
tc
:
IsType
(
TYPE_MONSTER
)
and
tc
:
IsPosition
(
POS_FACEUP_DEFENSE
)
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsControler
(
Duel
.
GetTurnPlayer
())
and
tc
:
IsType
(
TYPE_MONSTER
)
and
tc
:
IsPosition
(
POS_FACEUP_DEFENSE
)
then
...
@@ -166,7 +159,7 @@ function c33900648.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -166,7 +159,7 @@ function c33900648.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c33900648
.
hdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33900648
.
hdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
c33900648
[
Duel
.
GetTurnPlayer
()]
,
ATTRIBUTE_WATER
)
~=
0
return
bit
.
band
(
c33900648
.
attributechk
(
Duel
.
GetTurnPlayer
())
,
ATTRIBUTE_WATER
)
~=
0
end
end
function
c33900648
.
hdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c33900648
.
hdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
@@ -175,12 +168,12 @@ function c33900648.hdtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -175,12 +168,12 @@ function c33900648.hdtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
33900648
,
2
))
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
33900648
,
2
))
end
end
function
c33900648
.
hdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33900648
.
hdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
bit
.
band
(
c33900648
[
Duel
.
GetTurnPlayer
()]
,
ATTRIBUTE_WATER
)
==
0
if
bit
.
band
(
c33900648
.
attributechk
(
Duel
.
GetTurnPlayer
())
,
ATTRIBUTE_WATER
)
==
0
or
Duel
.
IsPlayerAffectedByEffect
(
Duel
.
GetTurnPlayer
(),
97811903
)
then
return
end
or
Duel
.
IsPlayerAffectedByEffect
(
Duel
.
GetTurnPlayer
(),
97811903
)
then
return
end
Duel
.
DiscardHand
(
Duel
.
GetTurnPlayer
(),
nil
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
DiscardHand
(
Duel
.
GetTurnPlayer
(),
nil
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
end
end
function
c33900648
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33900648
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
c33900648
[
Duel
.
GetTurnPlayer
()]
,
ATTRIBUTE_FIRE
)
~=
0
return
bit
.
band
(
c33900648
.
attributechk
(
Duel
.
GetTurnPlayer
())
,
ATTRIBUTE_FIRE
)
~=
0
end
end
function
c33900648
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c33900648
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
@@ -189,16 +182,18 @@ function c33900648.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -189,16 +182,18 @@ function c33900648.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
33900648
,
3
))
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
aux
.
Stringid
(
33900648
,
3
))
end
end
function
c33900648
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33900648
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
bit
.
band
(
c33900648
[
Duel
.
GetTurnPlayer
()]
,
ATTRIBUTE_FIRE
)
==
0
if
bit
.
band
(
c33900648
.
attributechk
(
Duel
.
GetTurnPlayer
())
,
ATTRIBUTE_FIRE
)
==
0
or
Duel
.
IsPlayerAffectedByEffect
(
Duel
.
GetTurnPlayer
(),
97811903
)
then
return
end
or
Duel
.
IsPlayerAffectedByEffect
(
Duel
.
GetTurnPlayer
(),
97811903
)
then
return
end
Duel
.
Damage
(
Duel
.
GetTurnPlayer
(),
1000
,
REASON_EFFECT
)
Duel
.
Damage
(
Duel
.
GetTurnPlayer
(),
1000
,
REASON_EFFECT
)
end
end
function
c33900648
.
windcon1
(
e
)
function
c33900648
.
windcon1
(
e
)
return
bit
.
band
(
c33900648
[
e
:
GetHandlerPlayer
()],
ATTRIBUTE_WIND
)
~=
0
local
tp
=
e
:
GetHandlerPlayer
()
return
bit
.
band
(
c33900648
.
attributechk
(
tp
),
ATTRIBUTE_WIND
)
~=
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
e
:
GetHandlerPlayer
(),
97811903
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
e
:
GetHandlerPlayer
(),
97811903
)
end
end
function
c33900648
.
windcon2
(
e
)
function
c33900648
.
windcon2
(
e
)
return
bit
.
band
(
c33900648
[
1
-
e
:
GetHandlerPlayer
()],
ATTRIBUTE_WIND
)
~=
0
local
tp
=
e
:
GetHandlerPlayer
()
return
bit
.
band
(
c33900648
.
attributechk
(
1
-
tp
),
ATTRIBUTE_WIND
)
~=
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
1
-
e
:
GetHandlerPlayer
(),
97811903
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
1
-
e
:
GetHandlerPlayer
(),
97811903
)
end
end
function
c33900648
.
actarget
(
e
,
te
,
tp
)
function
c33900648
.
actarget
(
e
,
te
,
tp
)
...
@@ -210,3 +205,4 @@ end
...
@@ -210,3 +205,4 @@ end
function
c33900648
.
costop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33900648
.
costop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
PayLPCost
(
tp
,
500
)
Duel
.
PayLPCost
(
tp
,
500
)
end
end
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