Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-THC-cards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
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
HiiragiGuardians
ygopro-THC-cards
Commits
ff12f4e5
Commit
ff12f4e5
authored
Jul 28, 2022
by
伊蕾娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:小k修复bug
parent
89b983b2
Pipeline
#15009
passed with stage
in 49 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
4 deletions
+51
-4
script/c74563034.lua
script/c74563034.lua
+46
-1
script/c77002001.lua
script/c77002001.lua
+5
-3
No files found.
script/c74563034.lua
View file @
ff12f4e5
...
...
@@ -4,7 +4,16 @@ function c74563034.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetOperation
(
c74563034
.
activate
)
c
:
RegisterEffect
(
e1
)
--adjust
local
e21
=
Effect
.
CreateEffect
(
c
)
e21
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e21
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e21
:
SetCode
(
EVENT_ADJUST
)
e21
:
SetRange
(
LOCATION_FZONE
)
e21
:
SetOperation
(
c74563034
.
adjustop
)
c
:
RegisterEffect
(
e21
)
--synchro level
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -23,12 +32,26 @@ function c74563034.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_SYNCHRO_MATERIAL
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetTarget
(
c74563034
.
synfilter
)
e2
:
SetValue
(
c74563034
.
mtval
)
c
:
RegisterEffect
(
e2
)
end
function
c74563034
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
tc
=
g
:
GetFirst
()
if
g
:
GetCount
()
>
0
then
while
tc
do
if
tc
:
GetFlagEffect
(
77002001
)
>
0
then
tc
:
ResetEffect
(
EFFECT_ALLOW_SYNCHRO_KOISHI
,
RESET_CODE
)
tc
:
ResetFlagEffect
(
77002001
)
end
tc
=
g
:
GetNext
()
end
end
end
function
c74563034
.
synfilter
(
e
,
c
)
if
c
:
IsType
(
TYPE_LINK
)
or
c
:
IsType
(
TYPE_XYZ
)
then
return
c
:
IsFaceup
()
and
not
c
:
IsHasEffect
(
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
)
...
...
@@ -37,7 +60,7 @@ function c74563034.synfilter(e,c)
end
end
function
c74563034
.
attg
(
e
,
c
)
return
c
:
IsType
(
TYPE_XYZ
)
or
c
:
IsType
(
TYPE_LINK
)
return
(
c
:
IsType
(
TYPE_XYZ
)
or
c
:
IsType
(
TYPE_LINK
))
and
c
:
GetFlagEffect
(
77002001
)
==
0
end
function
c74563034
.
slevel
(
e
,
c
)
local
tc
=
e
:
GetHandler
()
...
...
@@ -50,4 +73,26 @@ end
function
c74563034
.
mtval
(
e
,
c
)
if
not
c
then
return
false
end
return
c
:
IsRace
(
RACE_FAIRY
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
end
function
c74563034
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsDisabled
()
then
c
:
RegisterFlagEffect
(
74563034
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
--Duel.Readjust()
end
if
not
c
:
IsDisabled
()
and
c
:
GetFlagEffect
(
74563034
)
>
0
then
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
tc
=
g
:
GetFirst
()
if
g
:
GetCount
()
>
0
then
while
tc
do
if
tc
:
GetFlagEffect
(
77002001
)
>
0
then
tc
:
ResetEffect
(
EFFECT_ALLOW_SYNCHRO_KOISHI
,
RESET_CODE
)
tc
:
ResetFlagEffect
(
77002001
)
end
tc
=
g
:
GetNext
()
end
end
c
:
ResetFlagEffect
(
74563034
)
--Duel.Readjust()
end
end
\ No newline at end of file
script/c77002001.lua
View file @
ff12f4e5
...
...
@@ -14,6 +14,7 @@ function c77002001.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c77002001
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
--Debug.Message(e:GetHandler():GetFlagEffect(77002001))
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
77002001
,
0
))
e
:
SetLabel
(
Duel
.
AnnounceLevel
(
tp
,
1
,
12
))
...
...
@@ -23,17 +24,18 @@ function c77002001.op(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABL
E
)
e1
:
SetProperty
(
EFFECT_FLAG_
UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUN
E
)
e1
:
SetCode
(
EFFECT_ALLOW_SYNCHRO_KOISHI
)
e1
:
SetValue
(
e
:
GetLabel
())
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_
DISABLE
+
RESET_
PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
local
e11
=
Effect
.
CreateEffect
(
c
)
e11
:
SetType
(
EFFECT_TYPE_SINGLE
)
e11
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABL
E
)
e11
:
SetProperty
(
EFFECT_FLAG_
UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUN
E
)
e11
:
SetCode
(
EFFECT_ADD_TYPE
)
e11
:
SetValue
(
TYPE_TUNER
)
e11
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e11
)
c
:
RegisterFlagEffect
(
77002001
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
\ No newline at end of file
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