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
Amiya
pre-release-database-cdb
Commits
57f8ba15
Commit
57f8ba15
authored
Oct 29, 2023
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix リペア・ジェネクス・コントローラー:
https://github.com/Fluorohydride/ygopro-pre-script/pull/1202
parent
0ed7950e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
125 additions
and
116 deletions
+125
-116
script/c100211051.lua
script/c100211051.lua
+125
-116
No files found.
script/c100211051.lua
View file @
57f8ba15
...
...
@@ -82,25 +82,34 @@ function s.smop(e,tp,eg,ep,ev,re,r,rp)
e0
:
SetTarget
(
s
.
splimit
)
e0
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e0
,
tp
)
--splimit2
local
e1
=
e0
:
Clone
()
e1
:
SetTarget
(
s
.
splimit1
)
Duel
.
RegisterEffect
(
e1
,
tp
)
--synchro level
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_SYNCHRO_MATERIAL_CUSTOM
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetTarget
(
s
.
syntg
)
e3
:
SetValue
(
1
)
e3
:
SetOperation
(
s
.
synop
)
local
e31
=
Effect
.
CreateEffect
(
c
)
e31
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_GRANT
)
e31
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e31
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e31
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e31
:
SetLabelObject
(
e3
)
Duel
.
RegisterEffect
(
e31
,
tp
)
end
function
s
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
se
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
and
bit
.
band
(
sumtype
,
SUMMON_TYPE_SYNCHRO
)
~=
SUMMON_TYPE_SYNCHRO
return
c
:
IsLocation
(
LOCATION_EXTRA
)
and
bit
.
band
(
sumtype
,
SUMMON_TYPE_SYNCHRO
)
~=
SUMMON_TYPE_SYNCHRO
end
function
s
.
smcfilter
(
c
)
return
c
:
IsSetCard
(
0x2
)
and
c
:
IsType
(
TYPE_TUNER
)
function
s
.
splimit1
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
se
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
and
c
:
IsLocation
(
LOCATION_EXTRA
)
end
function
s
.
smcfilter
(
c
,
sc
)
return
c
:
IsSetCard
(
0x2
)
and
c
:
IsTuner
(
sc
)
end
function
s
.
synfilter
(
c
,
syncard
,
tuner
,
f
)
return
c
:
IsFaceupEx
()
and
c
:
IsCanBeSynchroMaterial
(
syncard
,
tuner
)
and
(
f
==
nil
or
f
(
c
,
syncard
))
...
...
@@ -117,7 +126,7 @@ function s.syngoal(g,tp,lv,syncard,minc,ct)
return
ct
>=
minc
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
g
,
syncard
)
>
0
and
g
:
CheckWithSumEqual
(
Card
.
GetSynchroLevel
,
lv
,
ct
,
ct
,
syncard
)
and
aux
.
MustMaterialCheck
(
g
,
tp
,
EFFECT_MUST_BE_SMATERIAL
)
and
g
:
IsExists
(
s
.
smcfilter
,
1
,
nil
)
and
g
:
IsExists
(
s
.
smcfilter
,
1
,
nil
,
syncard
)
end
function
s
.
syntg
(
e
,
syncard
,
f
,
min
,
max
)
local
minc
=
min
+
1
...
...
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