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
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
Vee4
ygopro-scripts-888
Commits
911b01b2
Commit
911b01b2
authored
Dec 14, 2022
by
Chrono-Genex
Committed by
GitHub
Dec 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Clear World (#2003)
parent
b1a22d4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
19 deletions
+21
-19
c33900648.lua
c33900648.lua
+21
-19
No files found.
c33900648.lua
View file @
911b01b2
...
@@ -109,34 +109,31 @@ function c33900648.mtop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -109,34 +109,31 @@ function c33900648.mtop(e,tp,eg,ep,ev,re,r,rp)
end
end
c33900648
[
0
]
=
0
c33900648
[
0
]
=
0
c33900648
[
1
]
=
0
c33900648
[
1
]
=
0
function
c33900648
.
raccheck
(
p
)
local
rac
=
0
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
p
,
LOCATION_MZONE
,
0
,
nil
)
local
tc
=
g
:
GetFirst
()
while
tc
do
rac
=
bit
.
bor
(
rac
,
tc
:
GetAttribute
())
tc
=
g
:
GetNext
()
end
c33900648
[
p
]
=
rac
end
function
c33900648
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33900648
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
IsPlayerAffectedByEffect
(
0
,
97811903
)
then
for
p
=
0
,
1
do
c33900648
.
raccheck
(
0
)
local
rac
=
0
else
c33900648
[
0
]
=
0
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
p
,
LOCATION_MZONE
,
0
,
nil
)
if
not
Duel
.
IsPlayerAffectedByEffect
(
1
,
97811903
)
then
local
tc
=
g
:
GetFirst
()
c33900648
.
raccheck
(
1
)
while
tc
do
else
c33900648
[
1
]
=
0
end
rac
=
bit
.
bor
(
rac
,
tc
:
GetAttribute
())
tc
=
g
:
GetNext
()
end
c33900648
[
p
]
=
rac
end
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
[
c
:
GetControler
()],
ATTRIBUTE_LIGHT
)
~=
0
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
return
bit
.
band
(
c33900648
[
e
:
GetHandlerPlayer
()],
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
)
end
end
function
c33900648
.
darkcon2
(
e
)
function
c33900648
.
darkcon2
(
e
)
return
bit
.
band
(
c33900648
[
1
-
e
:
GetHandlerPlayer
()],
ATTRIBUTE_DARK
)
~=
0
return
bit
.
band
(
c33900648
[
1
-
e
:
GetHandlerPlayer
()],
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
)
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
[
Duel
.
GetTurnPlayer
()],
ATTRIBUTE_EARTH
)
~=
0
...
@@ -155,7 +152,8 @@ function c33900648.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -155,7 +152,8 @@ function c33900648.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
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
then
return
end
if
bit
.
band
(
c33900648
[
Duel
.
GetTurnPlayer
()],
ATTRIBUTE_EARTH
)
==
0
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
:
IsPosition
(
POS_FACEUP_DEFENSE
)
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsPosition
(
POS_FACEUP_DEFENSE
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
...
@@ -170,7 +168,8 @@ function c33900648.hdtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -170,7 +168,8 @@ function c33900648.hdtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
turnp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
turnp
,
1
)
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
then
return
end
if
bit
.
band
(
c33900648
[
Duel
.
GetTurnPlayer
()],
ATTRIBUTE_WATER
)
==
0
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
)
...
@@ -182,14 +181,17 @@ function c33900648.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -182,14 +181,17 @@ function c33900648.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
turnp
,
1000
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
turnp
,
1000
)
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
then
return
end
if
bit
.
band
(
c33900648
[
Duel
.
GetTurnPlayer
()],
ATTRIBUTE_FIRE
)
==
0
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
return
bit
.
band
(
c33900648
[
e
:
GetHandlerPlayer
()],
ATTRIBUTE_WIND
)
~=
0
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
return
bit
.
band
(
c33900648
[
1
-
e
:
GetHandlerPlayer
()],
ATTRIBUTE_WIND
)
~=
0
and
not
Duel
.
IsPlayerAffectedByEffect
(
1
-
e
:
GetHandlerPlayer
(),
97811903
)
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