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
bae07c87
Commit
bae07c87
authored
Jun 29, 2024
by
mercury233
Committed by
GitHub
Jun 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove empty wrap (#2567)
parent
156c66a8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
133 additions
and
141 deletions
+133
-141
c50907446.lua
c50907446.lua
+48
-52
procedure.lua
procedure.lua
+85
-89
No files found.
c50907446.lua
View file @
bae07c87
...
@@ -6,8 +6,8 @@ function c50907446.initial_effect(c)
...
@@ -6,8 +6,8 @@ function c50907446.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_FUSION_MATERIAL
)
e1
:
SetCode
(
EFFECT_FUSION_MATERIAL
)
e1
:
SetCondition
(
c50907446
.
FShaddollCondition
()
)
e1
:
SetCondition
(
c50907446
.
FShaddollCondition
)
e1
:
SetOperation
(
c50907446
.
FShaddollOperation
()
)
e1
:
SetOperation
(
c50907446
.
FShaddollOperation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--cannot spsummon
--cannot spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -131,8 +131,7 @@ function c50907446.FShaddollSpFilter2(c,fc,tp,mc,chkf)
...
@@ -131,8 +131,7 @@ function c50907446.FShaddollSpFilter2(c,fc,tp,mc,chkf)
or
(
c50907446
.
FShaddollFilter1
(
mc
,
sg
)
and
c50907446
.
FShaddollFilter2
(
c
)))
or
(
c50907446
.
FShaddollFilter1
(
mc
,
sg
)
and
c50907446
.
FShaddollFilter2
(
c
)))
and
(
chkf
==
PLAYER_NONE
or
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sg
,
fc
)
>
0
)
and
(
chkf
==
PLAYER_NONE
or
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
sg
,
fc
)
>
0
)
end
end
function
c50907446
.
FShaddollCondition
()
function
c50907446
.
FShaddollCondition
(
e
,
g
,
gc
,
chkf
)
return
function
(
e
,
g
,
gc
,
chkf
)
if
g
==
nil
then
return
aux
.
MustMaterialCheck
(
nil
,
e
:
GetHandlerPlayer
(),
EFFECT_MUST_BE_FMATERIAL
)
end
if
g
==
nil
then
return
aux
.
MustMaterialCheck
(
nil
,
e
:
GetHandlerPlayer
(),
EFFECT_MUST_BE_FMATERIAL
)
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
mg
=
g
:
Filter
(
c50907446
.
FShaddollFilter
,
nil
,
c
)
local
mg
=
g
:
Filter
(
c50907446
.
FShaddollFilter
,
nil
,
c
)
...
@@ -148,10 +147,8 @@ function c50907446.FShaddollCondition()
...
@@ -148,10 +147,8 @@ function c50907446.FShaddollCondition()
return
c50907446
.
FShaddollSpFilter1
(
gc
,
c
,
tp
,
mg
,
exg
,
chkf
)
return
c50907446
.
FShaddollSpFilter1
(
gc
,
c
,
tp
,
mg
,
exg
,
chkf
)
end
end
return
mg
:
IsExists
(
c50907446
.
FShaddollSpFilter1
,
1
,
nil
,
c
,
tp
,
mg
,
exg
,
chkf
)
return
mg
:
IsExists
(
c50907446
.
FShaddollSpFilter1
,
1
,
nil
,
c
,
tp
,
mg
,
exg
,
chkf
)
end
end
end
function
c50907446
.
FShaddollOperation
()
function
c50907446
.
FShaddollOperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
gc
,
chkf
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
gc
,
chkf
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
mg
=
eg
:
Filter
(
c50907446
.
FShaddollFilter
,
nil
,
c
)
local
mg
=
eg
:
Filter
(
c50907446
.
FShaddollFilter
,
nil
,
c
)
local
fc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_FZONE
,
0
)
local
fc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_FZONE
,
0
)
...
@@ -181,5 +178,4 @@ function c50907446.FShaddollOperation()
...
@@ -181,5 +178,4 @@ function c50907446.FShaddollOperation()
g
:
Merge
(
sg
)
g
:
Merge
(
sg
)
end
end
Duel
.
SetFusionMaterial
(
g
)
Duel
.
SetFusionMaterial
(
g
)
end
end
end
procedure.lua
View file @
bae07c87
...
@@ -1944,8 +1944,8 @@ function Auxiliary.EnablePendulumAttribute(c,reg)
...
@@ -1944,8 +1944,8 @@ function Auxiliary.EnablePendulumAttribute(c,reg)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC_G
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC_G
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetCondition
(
Auxiliary
.
PendCondition
()
)
e1
:
SetCondition
(
Auxiliary
.
PendCondition
)
e1
:
SetOperation
(
Auxiliary
.
PendOperation
()
)
e1
:
SetOperation
(
Auxiliary
.
PendOperation
)
e1
:
SetValue
(
SUMMON_TYPE_PENDULUM
)
e1
:
SetValue
(
SUMMON_TYPE_PENDULUM
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--register by default
--register by default
...
@@ -1985,8 +1985,7 @@ function Auxiliary.PConditionFilter(c,e,tp,lscale,rscale,eset)
...
@@ -1985,8 +1985,7 @@ function Auxiliary.PConditionFilter(c,e,tp,lscale,rscale,eset)
and
not
c
:
IsForbidden
()
and
not
c
:
IsForbidden
()
and
(
Auxiliary
.
PendulumChecklist
&
(
0x1
<<
tp
)
==
0
or
Auxiliary
.
PConditionExtraFilter
(
c
,
e
,
tp
,
lscale
,
rscale
,
eset
))
and
(
Auxiliary
.
PendulumChecklist
&
(
0x1
<<
tp
)
==
0
or
Auxiliary
.
PConditionExtraFilter
(
c
,
e
,
tp
,
lscale
,
rscale
,
eset
))
end
end
function
Auxiliary
.
PendCondition
()
function
Auxiliary
.
PendCondition
(
e
,
c
,
og
)
return
function
(
e
,
c
,
og
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
local
eset
=
{
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_EXTRA_PENDULUM_SUMMON
)}
local
eset
=
{
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_EXTRA_PENDULUM_SUMMON
)}
...
@@ -2007,7 +2006,6 @@ function Auxiliary.PendCondition()
...
@@ -2007,7 +2006,6 @@ function Auxiliary.PendCondition()
g
=
Duel
.
GetFieldGroup
(
tp
,
loc
,
0
)
g
=
Duel
.
GetFieldGroup
(
tp
,
loc
,
0
)
end
end
return
g
:
IsExists
(
Auxiliary
.
PConditionFilter
,
1
,
nil
,
e
,
tp
,
lscale
,
rscale
,
eset
)
return
g
:
IsExists
(
Auxiliary
.
PConditionFilter
,
1
,
nil
,
e
,
tp
,
lscale
,
rscale
,
eset
)
end
end
end
function
Auxiliary
.
PendOperationCheck
(
ft1
,
ft2
,
ft
)
function
Auxiliary
.
PendOperationCheck
(
ft1
,
ft2
,
ft
)
return
function
(
g
)
return
function
(
g
)
...
@@ -2016,8 +2014,7 @@ function Auxiliary.PendOperationCheck(ft1,ft2,ft)
...
@@ -2016,8 +2014,7 @@ function Auxiliary.PendOperationCheck(ft1,ft2,ft)
return
#
g
<=
ft
and
#
exg
<=
ft2
and
#
mg
<=
ft1
return
#
g
<=
ft
and
#
exg
<=
ft2
and
#
mg
<=
ft1
end
end
end
end
function
Auxiliary
.
PendOperation
()
function
Auxiliary
.
PendOperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
sg
,
og
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
sg
,
og
)
local
rpz
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
local
rpz
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
1
)
local
lscale
=
c
:
GetLeftScale
()
local
lscale
=
c
:
GetLeftScale
()
local
rscale
=
rpz
:
GetRightScale
()
local
rscale
=
rpz
:
GetRightScale
()
...
@@ -2079,7 +2076,6 @@ function Auxiliary.PendOperation()
...
@@ -2079,7 +2076,6 @@ function Auxiliary.PendOperation()
sg
:
Merge
(
g
)
sg
:
Merge
(
g
)
Duel
.
HintSelection
(
Group
.
FromCards
(
c
))
Duel
.
HintSelection
(
Group
.
FromCards
(
c
))
Duel
.
HintSelection
(
Group
.
FromCards
(
rpz
))
Duel
.
HintSelection
(
Group
.
FromCards
(
rpz
))
end
end
end
--enable revive limit for monsters that are also pendulum sumonable from certain locations (Odd-Eyes Revolution Dragon)
--enable revive limit for monsters that are also pendulum sumonable from certain locations (Odd-Eyes Revolution Dragon)
function
Auxiliary
.
EnableReviveLimitPendulumSummonable
(
c
,
loc
)
function
Auxiliary
.
EnableReviveLimitPendulumSummonable
(
c
,
loc
)
...
...
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