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
ac52ac82
Commit
ac52ac82
authored
Nov 06, 2024
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove bit.band, bit.bor
parent
e2402fc5
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
21 additions
and
27 deletions
+21
-27
c10515412.lua
c10515412.lua
+1
-1
c11464648.lua
c11464648.lua
+1
-1
c12686296.lua
c12686296.lua
+1
-1
c24521325.lua
c24521325.lua
+2
-2
c2674965.lua
c2674965.lua
+2
-4
c27704731.lua
c27704731.lua
+1
-1
c31552317.lua
c31552317.lua
+1
-1
c39881252.lua
c39881252.lua
+1
-1
c41739381.lua
c41739381.lua
+1
-3
c47736165.lua
c47736165.lua
+1
-1
c54611591.lua
c54611591.lua
+1
-1
c58071334.lua
c58071334.lua
+1
-2
c63941169.lua
c63941169.lua
+1
-1
c65033975.lua
c65033975.lua
+1
-1
c81005500.lua
c81005500.lua
+1
-1
c91284003.lua
c91284003.lua
+1
-1
c91438674.lua
c91438674.lua
+3
-4
No files found.
c10515412.lua
View file @
ac52ac82
...
...
@@ -43,7 +43,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
return
r
&
(
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
end
function
s
.
setfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSSetable
()
...
...
c11464648.lua
View file @
ac52ac82
...
...
@@ -66,7 +66,7 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
eqfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1b0
)
and
bit
.
band
(
c
:
GetType
(),
TYPE_SPELL
+
TYPE_EQUIP
)
==
TYPE_SPELL
+
TYPE_EQUIP
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x1b0
)
and
c
:
IsAllTypes
(
TYPE_SPELL
+
TYPE_EQUIP
)
end
function
s
.
imcon
(
e
)
local
sg
=
e
:
GetHandler
():
GetEquipGroup
()
...
...
c12686296.lua
View file @
ac52ac82
...
...
@@ -90,5 +90,5 @@ function s.condition(e)
end
function
s
.
aclimit
(
e
,
re
,
tp
)
local
loc
=
re
:
GetActivateLocation
()
return
bit
.
band
(
loc
,
LOCATION_ONFIELD
)
~=
0
and
re
:
IsActiveType
(
TYPE_MONSTER
)
return
loc
&
LOCATION_ONFIELD
~=
0
and
re
:
IsActiveType
(
TYPE_MONSTER
)
end
c24521325.lua
View file @
ac52ac82
...
...
@@ -30,9 +30,9 @@ function s.checkzone(tp)
local
zone
=
0
local
g
=
Duel
.
GetMatchingGroup
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
for
tc
in
aux
.
Next
(
g
)
do
zone
=
bit
.
bor
(
zone
,
tc
:
GetLinkedZone
(
tp
)
)
zone
=
zone
|
tc
:
GetLinkedZone
(
tp
)
end
return
bit
.
band
(
zone
,
0x1f
)
return
zone
&
0x1f
end
function
s
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
c2674965.lua
View file @
ac52ac82
...
...
@@ -60,8 +60,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
cfilter
(
c
,
tp
)
return
bit
.
band
(
c
:
GetType
(),
TYPE_TRAP
+
TYPE_CONTINUOUS
)
==
TYPE_TRAP
+
TYPE_CONTINUOUS
and
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
and
c
:
IsControler
(
tp
)
return
c
:
IsAllTypes
(
TYPE_TRAP
+
TYPE_CONTINUOUS
)
and
c
:
IsPreviousLocation
(
LOCATION_SZONE
)
and
c
:
IsControler
(
tp
)
end
function
s
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
s
.
cfilter
,
1
,
nil
,
tp
)
...
...
@@ -75,8 +74,7 @@ function s.cfilter2(c)
end
function
s
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
return
bit
.
band
(
rc
:
GetType
(),
TYPE_TRAP
+
TYPE_CONTINUOUS
)
==
TYPE_TRAP
+
TYPE_CONTINUOUS
and
re
:
GetActivateLocation
()
==
LOCATION_MZONE
return
rc
:
IsAllTypes
(
TYPE_TRAP
+
TYPE_CONTINUOUS
)
and
re
:
GetActivateLocation
()
==
LOCATION_MZONE
and
Duel
.
IsExistingMatchingCard
(
s
.
cfilter2
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
function
s
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c27704731.lua
View file @
ac52ac82
...
...
@@ -39,7 +39,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
s
.
mfilter
(
ft
,
lv
,
race
,
att
)
return
ft
==
1
and
lv
>=
5
and
bit
.
band
(
race
,
RACE_WARRIOR
)
==
RACE_WARRIOR
return
ft
==
1
and
lv
>=
5
and
race
&
RACE_WARRIOR
~=
0
end
s
.
Metallization_material
=
s
.
mfilter
function
s
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c31552317.lua
View file @
ac52ac82
...
...
@@ -48,7 +48,7 @@ function s.indtg(e,c)
return
c
:
IsSetCard
(
0xea
)
end
function
s
.
indct
(
e
,
re
,
r
,
rp
)
if
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
then
if
r
&
REASON_BATTLE
~=
0
then
return
1
else
return
0
end
end
...
...
c39881252.lua
View file @
ac52ac82
...
...
@@ -28,7 +28,7 @@ end
function
s
.
cfilter
(
c
,
re
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsReason
(
REASON_COST
)
and
re
:
IsActivated
()
and
(
not
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
or
bit
.
band
(
c
:
GetPreviousTypeOnField
(),
TYPE_SPELL
+
TYPE_TRAP
)
~=
0
)
and
(
not
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
or
c
:
GetPreviousTypeOnField
()
&
(
TYPE_SPELL
+
TYPE_TRAP
)
~=
0
)
end
function
s
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
s
.
cfilter
,
1
,
nil
,
re
)
...
...
c41739381.lua
View file @
ac52ac82
...
...
@@ -38,9 +38,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
end
function
s
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
bit
.
band
(
c
:
GetType
(),
TYPE_SPELL
+
TYPE_CONTINUOUS
)
==
TYPE_SPELL
+
TYPE_CONTINUOUS
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsFaceup
()
and
c
:
IsAllTypes
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
and
c
:
IsAbleToGraveAsCost
()
end
function
s
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
...
...
c47736165.lua
View file @
ac52ac82
...
...
@@ -61,7 +61,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
and
bit
.
band
(
r
,
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
and
r
&
(
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
end
function
s
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceupEx
()
and
c
:
IsSetCard
(
0xea
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c54611591.lua
View file @
ac52ac82
...
...
@@ -49,7 +49,7 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
return
r
&
(
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
end
function
s
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
...
...
c58071334.lua
View file @
ac52ac82
...
...
@@ -39,8 +39,7 @@ function s.mfilter2(c)
return
c
:
IsRace
(
RACE_ILLUSION
)
end
function
s
.
sprfilter
(
c
)
return
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_MONSTER
)
==
TYPE_MONSTER
and
c
:
IsFaceup
()
and
c
:
IsAbleToGraveAsCost
()
return
c
:
GetOriginalType
()
&
TYPE_MONSTER
~=
0
and
c
:
IsFaceup
()
and
c
:
IsAbleToGraveAsCost
()
end
function
s
.
sgchk
(
g
,
tp
,
sc
)
return
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
g
,
sc
)
>
0
...
...
c63941169.lua
View file @
ac52ac82
...
...
@@ -66,7 +66,7 @@ end
function
s
.
cfilter2
(
c
,
tp
,
se
)
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
IsPreviousControler
(
tp
)
and
bit
.
band
(
c
:
GetPreviousAttributeOnField
(),
ATTRIBUTE_WATER
)
~=
0
and
c
:
GetPreviousAttributeOnField
()
&
ATTRIBUTE_WATER
~=
0
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
(
se
==
nil
or
c
:
GetReasonEffect
()
~=
se
)
end
function
s
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c65033975.lua
View file @
ac52ac82
...
...
@@ -32,7 +32,7 @@ function s.initial_effect(c)
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_HAND
+
LOCATION_ONFIELD
)
and
e
:
GetHandler
():
IsPreviousControler
(
tp
)
and
re
and
re
:
IsActivated
()
and
bit
.
band
(
r
,
REASON_EFFECT
)
==
REASON_EFFECT
and
re
and
re
:
IsActivated
()
and
r
&
REASON_EFFECT
~=
0
end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
c81005500.lua
View file @
ac52ac82
...
...
@@ -49,7 +49,7 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
return
r
&
(
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
end
function
s
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c91284003.lua
View file @
ac52ac82
...
...
@@ -45,7 +45,7 @@ function s.indfilter(e,c)
return
c
:
IsRace
(
RACE_WARRIOR
)
end
function
s
.
cfilter
(
c
)
return
c
:
IsFaceupEx
()
and
bit
.
band
(
c
:
GetType
(),
TYPE_TRAP
+
TYPE_CONTINUOUS
)
==
TYPE_TRAP
+
TYPE_CONTINUOUS
return
c
:
IsFaceupEx
()
and
c
:
IsAllTypes
(
TYPE_TRAP
+
TYPE_CONTINUOUS
)
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
...
c91438674.lua
View file @
ac52ac82
...
...
@@ -34,8 +34,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
s
.
cfilter
(
c
)
return
bit
.
band
(
c
:
GetType
(),
TYPE_TRAP
+
TYPE_CONTINUOUS
)
==
TYPE_TRAP
+
TYPE_CONTINUOUS
and
c
:
IsFaceup
()
return
c
:
IsAllTypes
(
TYPE_TRAP
+
TYPE_CONTINUOUS
)
and
c
:
IsFaceup
()
end
function
s
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
...
...
@@ -69,7 +68,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
s
.
actop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
if
bit
.
band
(
rc
:
GetType
(),
TYPE_TRAP
+
TYPE_CONTINUOUS
)
==
TYPE_TRAP
+
TYPE_CONTINUOUS
and
ep
==
tp
then
if
rc
:
IsAllTypes
(
TYPE_TRAP
+
TYPE_CONTINUOUS
)
and
ep
==
tp
then
Duel
.
SetChainLimit
(
s
.
chainlm
)
end
end
...
...
@@ -78,7 +77,7 @@ function s.chainlm(e,rp,tp)
end
function
s
.
setfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x1c1
)
and
c
:
CheckUniqueOnField
(
tp
)
and
not
c
:
IsForbidden
()
and
bit
.
band
(
c
:
GetType
(),
TYPE_TRAP
+
TYPE_CONTINUOUS
)
==
TYPE_TRAP
+
TYPE_CONTINUOUS
and
c
:
IsAllTypes
(
TYPE_TRAP
+
TYPE_CONTINUOUS
)
end
function
s
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
setfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
nil
,
tp
)
...
...
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