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
3
Merge Requests
3
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
4e0fbaf3
Commit
4e0fbaf3
authored
Jul 02, 2024
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update クリアー・ワールド
parent
cd1633e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
59 deletions
+55
-59
c33900648.lua
c33900648.lua
+55
-59
No files found.
c33900648.lua
View file @
4e0fbaf3
...
@@ -7,6 +7,7 @@ function c33900648.initial_effect(c)
...
@@ -7,6 +7,7 @@ function c33900648.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--maintain
--maintain
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
33900648
,
4
))
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
...
@@ -15,21 +16,18 @@ function c33900648.initial_effect(c)
...
@@ -15,21 +16,18 @@ 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
)
e4
:
SetCode
(
EFFECT_PUBLIC
)
e4
:
SetCode
(
EFFECT_PUBLIC
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetTargetRange
(
LOCATION_HAND
,
LOCATION_HAND
)
e4
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e4
:
Set
Target
(
c33900648
.
lighttg
)
e4
:
Set
Condition
(
c33900648
.
lightcon1
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
local
e4_
=
e4
:
Clone
()
e4_
:
SetTargetRange
(
0
,
LOCATION_HAND
)
e4_
:
SetCondition
(
c33900648
.
lightcon2
)
c
:
RegisterEffect
(
e4_
)
--dark
--dark
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -48,7 +46,7 @@ function c33900648.initial_effect(c)
...
@@ -48,7 +46,7 @@ function c33900648.initial_effect(c)
e7
:
SetDescription
(
aux
.
Stringid
(
33900648
,
1
))
e7
:
SetDescription
(
aux
.
Stringid
(
33900648
,
1
))
e7
:
SetCategory
(
CATEGORY_DESTROY
)
e7
:
SetCategory
(
CATEGORY_DESTROY
)
e7
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e7
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e7
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_
TRIGGER_F
)
e7
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_
CONTINUOUS
)
e7
:
SetRange
(
LOCATION_FZONE
)
e7
:
SetRange
(
LOCATION_FZONE
)
e7
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e7
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e7
:
SetCountLimit
(
1
)
e7
:
SetCountLimit
(
1
)
...
@@ -61,7 +59,7 @@ function c33900648.initial_effect(c)
...
@@ -61,7 +59,7 @@ function c33900648.initial_effect(c)
e8
:
SetDescription
(
aux
.
Stringid
(
33900648
,
2
))
e8
:
SetDescription
(
aux
.
Stringid
(
33900648
,
2
))
e8
:
SetCategory
(
CATEGORY_HANDES
)
e8
:
SetCategory
(
CATEGORY_HANDES
)
e8
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e8
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_
TRIGGER_F
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_
CONTINUOUS
)
e8
:
SetRange
(
LOCATION_FZONE
)
e8
:
SetRange
(
LOCATION_FZONE
)
e8
:
SetCountLimit
(
1
)
e8
:
SetCountLimit
(
1
)
e8
:
SetCondition
(
c33900648
.
hdcon
)
e8
:
SetCondition
(
c33900648
.
hdcon
)
...
@@ -73,7 +71,7 @@ function c33900648.initial_effect(c)
...
@@ -73,7 +71,7 @@ function c33900648.initial_effect(c)
e9
:
SetDescription
(
aux
.
Stringid
(
33900648
,
3
))
e9
:
SetDescription
(
aux
.
Stringid
(
33900648
,
3
))
e9
:
SetCategory
(
CATEGORY_DAMAGE
)
e9
:
SetCategory
(
CATEGORY_DAMAGE
)
e9
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e9
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e9
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_
TRIGGER_F
)
e9
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_
CONTINUOUS
)
e9
:
SetRange
(
LOCATION_FZONE
)
e9
:
SetRange
(
LOCATION_FZONE
)
e9
:
SetCountLimit
(
1
)
e9
:
SetCountLimit
(
1
)
e9
:
SetCondition
(
c33900648
.
damcon
)
e9
:
SetCondition
(
c33900648
.
damcon
)
...
@@ -107,91 +105,89 @@ function c33900648.mtop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -107,91 +105,89 @@ 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
,
97811903
)
then
for
p
=
0
,
1
do
attchk
=
0
local
rac
=
0
elseif
Duel
.
IsPlayerAffectedByEffect
(
tp
,
6089145
)
then
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
p
,
LOCATION_MZONE
,
0
,
nil
)
attchk
=
ATTRIBUTE_LIGHT
|
ATTRIBUTE_DARK
|
ATTRIBUTE_EARTH
|
ATTRIBUTE_WATER
|
ATTRIBUTE_FIRE
|
ATTRIBUTE_WIND
else
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
rac
=
bit
.
bor
(
rac
,
tc
:
GetAttribute
()
)
attchk
=
attchk
|
tc
:
GetAttribute
(
)
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
c33900648
[
p
]
=
rac
end
end
return
attchk
end
function
c33900648
.
lightcon1
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
c33900648
.
attributechk
(
tp
)
&
ATTRIBUTE_LIGHT
~=
0
end
end
function
c33900648
.
light
tg
(
e
,
c
)
function
c33900648
.
light
con2
(
e
)
return
bit
.
band
(
c33900648
[
c
:
GetControler
()],
ATTRIBUTE_LIGHT
)
~=
0
local
tp
=
e
:
GetHandlerPlayer
()
and
not
Duel
.
IsPlayerAffectedByEffect
(
c
:
GetControler
(),
97811903
)
return
c33900648
.
attributechk
(
1
-
tp
)
&
ATTRIBUTE_LIGHT
~=
0
end
end
function
c33900648
.
darkcon1
(
e
)
function
c33900648
.
darkcon1
(
e
)
return
bit
.
band
(
c33900648
[
e
:
GetHandlerPlayer
()],
ATTRIBUTE_DARK
)
~=
0
local
tp
=
e
:
GetHandlerPlayer
()
and
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
)
>=
2
return
c33900648
.
attributechk
(
tp
)
&
ATTRIBUTE_DARK
~=
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
e
:
GetHandlerPlayer
(),
97811903
)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
>=
2
end
end
function
c33900648
.
darkcon2
(
e
)
function
c33900648
.
darkcon2
(
e
)
return
bit
.
band
(
c33900648
[
1
-
e
:
GetHandlerPlayer
()],
ATTRIBUTE_DARK
)
~=
0
local
tp
=
e
:
GetHandlerPlayer
()
and
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
0
,
LOCATION_MZONE
)
>=
2
return
c33900648
.
attributechk
(
1
-
tp
)
&
ATTRIBUTE_DARK
~=
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
1
-
e
:
GetHandlerPlayer
(),
97811903
)
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>=
2
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
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
)
end
end
function
c33900648
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c33900648
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
turnp
=
Duel
.
GetTurnPlayer
()
local
turnp
=
Duel
.
GetTurnPlayer
()
if
chkc
then
return
chkc
:
IsControler
(
turnp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c33900648
.
desfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c33900648
.
desfilter
,
turnp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
turnp
,
aux
.
Stringid
(
33900648
,
1
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
turnp
,
c33900648
.
desfilter
,
turnp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
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
local
turnp
=
Duel
.
GetTurnPlayer
()
or
Duel
.
IsPlayerAffectedByEffect
(
Duel
.
GetTurnPlayer
(),
97811903
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
turnp
,
HINTMSG_DESTROY
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tg
=
Duel
.
SelectMatchingCard
(
turnp
,
c33900648
.
desfilter
,
turnp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsPosition
(
POS_FACEUP_DEFENSE
)
then
Duel
.
HintSelection
(
tg
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
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
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
local
turnp
=
Duel
.
GetTurnPlayer
()
local
turnp
=
Duel
.
GetTurnPlayer
()
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
turnp
,
1
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
turnp
,
LOCATION_HAND
,
0
)
>
0
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
turnp
,
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
local
turnp
=
Duel
.
GetTurnPlayer
()
or
Duel
.
IsPlayerAffectedByEffect
(
Duel
.
GetTurnPlayer
(),
97811903
)
then
return
end
Duel
.
DiscardHand
(
turnp
,
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
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
local
turnp
=
Duel
.
GetTurnPlayer
()
local
turnp
=
Duel
.
GetTurnPlayer
()
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
turnp
,
1000
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
turnp
,
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
local
turnp
=
Duel
.
GetTurnPlayer
()
or
Duel
.
IsPlayerAffectedByEffect
(
Duel
.
GetTurnPlayer
(),
97811903
)
then
return
end
Duel
.
Damage
(
turnp
,
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
()
and
not
Duel
.
IsPlayerAffectedByEffect
(
e
:
GetHandlerPlayer
(),
97811903
)
return
bit
.
band
(
c33900648
.
attributechk
(
tp
),
ATTRIBUTE_WIND
)
~=
0
end
end
function
c33900648
.
windcon2
(
e
)
function
c33900648
.
windcon2
(
e
)
return
bit
.
band
(
c33900648
[
1
-
e
:
GetHandlerPlayer
()],
ATTRIBUTE_WIND
)
~=
0
local
tp
=
e
:
GetHandlerPlayer
()
and
not
Duel
.
IsPlayerAffectedByEffect
(
1
-
e
:
GetHandlerPlayer
(),
97811903
)
return
bit
.
band
(
c33900648
.
attributechk
(
1
-
tp
),
ATTRIBUTE_WIND
)
~=
0
end
end
function
c33900648
.
actarget
(
e
,
te
,
tp
)
function
c33900648
.
actarget
(
e
,
te
,
tp
)
return
te
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
te
:
IsActiveType
(
TYPE_SPELL
)
return
te
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
te
:
IsActiveType
(
TYPE_SPELL
)
...
...
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