Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Soulgamer
ygopro-222DIY-cards
Commits
ddd0f5dc
Commit
ddd0f5dc
authored
Apr 10, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i wanna
parent
52becc42
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
expansions/script/c33331100.lua
expansions/script/c33331100.lua
+6
-7
expansions/script/c33331105.lua
expansions/script/c33331105.lua
+4
-4
No files found.
expansions/script/c33331100.lua
View file @
ddd0f5dc
...
@@ -18,7 +18,7 @@ function rslf.SpecialSummonFunction(c,code,con,op,buff)
...
@@ -18,7 +18,7 @@ function rslf.SpecialSummonFunction(c,code,con,op,buff)
aux
.
EnablePendulumAttribute
(
c
)
aux
.
EnablePendulumAttribute
(
c
)
if
not
c
:
IsStatus
(
STATUS_COPYING_EFFECT
)
then
if
not
c
:
IsStatus
(
STATUS_COPYING_EFFECT
)
then
local
mt
=
getmetatable
(
c
)
local
mt
=
getmetatable
(
c
)
if
not
mt
.
lflist
then
if
not
mt
.
lflist
and
buff
then
mt
.
lflist
=
buff
mt
.
lflist
=
buff
end
end
end
end
...
@@ -42,14 +42,13 @@ function rslf.ssop(op,buff)
...
@@ -42,14 +42,13 @@ function rslf.ssop(op,buff)
end
end
end
end
function
rslf
.
buffop
(
c1
,
c2
,
buff
,
bool
)
function
rslf
.
buffop
(
c1
,
c2
,
buff
,
bool
)
--just optimize,no problem there. if crash, must have other problems
if
buff
and
type
(
buff
)
==
"function"
then
if
buff
and
type
(
buff
)
==
"function"
then
local
reset
=
not
bool
and
RESET_EVENT
+
RESETS_STANDARD
-
RESET_LEAVE
-
RESET_TOFIELD
+
RESET_OVERLAY
or
RESET_EVENT
+
RESETS_STANDARD
local
reset
=
not
bool
and
rsreset
.
est
-
RESET_TOFIELD
or
rsreset
.
est
local
list
=
{
buff
(
c2
)}
local
list
=
{
buff
(
{
c2
,
true
}
)}
if
#
list
==
0
then
return
end
if
#
list
==
0
then
return
end
for
k
,
buffeffect
in
pairs
(
list
)
do
for
k
,
buffeffect
in
pairs
(
list
)
do
buffeffect
:
SetRange
(
LOCATION_MZONE
)
buffeffect
:
SetRange
(
LOCATION_MZONE
)
buffeffect
:
SetReset
(
reset
)
--
buffeffect:SetReset(reset)
end
end
c2
:
RegisterFlagEffect
(
m
,
reset
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
c1
:
GetOriginalCode
(),
2
))
c2
:
RegisterFlagEffect
(
m
,
reset
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
c1
:
GetOriginalCode
(),
2
))
if
not
c2
:
IsType
(
TYPE_EFFECT
)
then
if
not
c2
:
IsType
(
TYPE_EFFECT
)
then
...
@@ -78,7 +77,7 @@ end
...
@@ -78,7 +77,7 @@ end
function
cm
.
spop
(
e
,
tp
)
function
cm
.
spop
(
e
,
tp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
...
@@ -99,7 +98,7 @@ function cm.op(e,tp)
...
@@ -99,7 +98,7 @@ function cm.op(e,tp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SELF
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SELF
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
cfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
):
GetFirst
()
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
cfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tp
):
GetFirst
()
local
b2
=
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
local
b2
=
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
local
op
=
rso
f
.
SelectOption
(
tp
,
true
,{
m
,
0
},
b2
,{
m
,
1
})
local
op
=
rso
p
.
SelectOption
(
tp
,
true
,{
m
,
0
},
b2
,{
m
,
1
})
if
op
==
1
then
if
op
==
1
then
Duel
.
SendtoExtraP
(
tc
,
nil
,
REASON_COST
)
Duel
.
SendtoExtraP
(
tc
,
nil
,
REASON_COST
)
else
else
...
...
expansions/script/c33331105.lua
View file @
ddd0f5dc
...
@@ -17,9 +17,9 @@ function cm.op(e,tp)
...
@@ -17,9 +17,9 @@ function cm.op(e,tp)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
end
end
function
cm
.
buff
(
c
)
function
cm
.
buff
(
c
)
local
e1
=
rsef
.
FV_LIMIT_PLAYER
(
{
c
,
true
}
,
"rm"
,
nil
,
cm
.
tg
,{
1
,
0
})
local
e1
=
rsef
.
FV_LIMIT_PLAYER
(
c
,
"rm"
,
nil
,
cm
.
tg
,{
1
,
0
})
local
e2
=
rsef
.
FV_LIMIT
(
{
c
,
true
}
,
"dis"
,
nil
,
cm
.
distg
,{
0
,
LOCATION_EXTRA
},
cm
.
discon
)
local
e2
=
rsef
.
FV_LIMIT
(
c
,
"dis"
,
nil
,
cm
.
distg
,{
0
,
LOCATION_EXTRA
},
cm
.
discon
)
local
e3
=
rsef
.
FV_LIMIT_PLAYER
(
{
c
,
true
}
,
"sp"
,
nil
,
cm
.
distg
,{
0
,
1
},
cm
.
discon
)
local
e3
=
rsef
.
FV_LIMIT_PLAYER
(
c
,
"sp"
,
nil
,
cm
.
distg
,{
0
,
1
},
cm
.
discon
)
return
e1
,
e2
,
e3
return
e1
,
e2
,
e3
end
end
function
cm
.
tg
(
e
,
c
)
function
cm
.
tg
(
e
,
c
)
...
@@ -29,5 +29,5 @@ function cm.distg(e,c)
...
@@ -29,5 +29,5 @@ function cm.distg(e,c)
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_EXTRA
)
and
c
:
IsControler
(
1
-
e
:
GetHandlerPlayer
())
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_EXTRA
)
and
c
:
IsControler
(
1
-
e
:
GetHandlerPlayer
())
end
end
function
cm
.
discon
(
e
,
tp
)
function
cm
.
discon
(
e
,
tp
)
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsFaceup
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
<
Duel
.
GetMatchingGroupCount
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_EXTRA
,
nil
)
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsFaceup
,
e
:
GetHandlerPlayer
(),
LOCATION_EXTRA
,
0
,
nil
)
<
Duel
.
GetMatchingGroupCount
(
Card
.
IsFaceup
,
e
:
GetHandlerPlayer
()
,
0
,
LOCATION_EXTRA
,
nil
)
end
end
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