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
17fbc3a3
Commit
17fbc3a3
authored
Jan 06, 2021
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dededededededededededede
parent
dd48128a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
16 deletions
+17
-16
expansions/script/c33330109.lua
expansions/script/c33330109.lua
+2
-2
expansions/script/c81022053.lua
expansions/script/c81022053.lua
+15
-14
No files found.
expansions/script/c33330109.lua
View file @
17fbc3a3
...
@@ -58,14 +58,14 @@ function cm.spop(e,tp)
...
@@ -58,14 +58,14 @@ function cm.spop(e,tp)
rsop
.
SelectSpecialSummon
(
tp
,
rscf
.
spfilter2
(
Card
.
IsType
,
TYPE_LINK
),
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
1
,
nil
,{},
e
,
tp
)
rsop
.
SelectSpecialSummon
(
tp
,
rscf
.
spfilter2
(
Card
.
IsType
,
TYPE_LINK
),
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
1
,
nil
,{},
e
,
tp
)
end
end
function
cm
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
tp
and
ev
>=
10
00
and
(
r
&
REASON_BATTLE
~=
0
or
(
r
&
REASON_EFFECT
~=
0
and
rp
~=
tp
))
return
ep
==
tp
and
ev
>=
5
00
and
(
r
&
REASON_BATTLE
~=
0
or
(
r
&
REASON_EFFECT
~=
0
and
rp
~=
tp
))
end
end
function
cm
.
setfilter
(
c
)
function
cm
.
setfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSSetable
()
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsSSetable
()
end
end
function
cm
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
local
st
=
math.floor
(
ev
/
10
00
)
local
st
=
math.floor
(
ev
/
5
00
)
if
ft
<=
0
then
return
end
if
ft
<=
0
then
return
end
rsop
.
SelectSolve
(
HINTMSG_SET
,
tp
,
cm
.
setfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
math.min
(
ft
,
st
),
nil
,
cm
.
setfun
,
tp
)
rsop
.
SelectSolve
(
HINTMSG_SET
,
tp
,
cm
.
setfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
math.min
(
ft
,
st
),
nil
,
cm
.
setfun
,
tp
)
end
end
...
...
expansions/script/c81022053.lua
View file @
17fbc3a3
...
@@ -37,12 +37,13 @@ function cm.initial_effect(c)
...
@@ -37,12 +37,13 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--direct attack
--direct attack
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
81022053
,
0
))
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCondition
(
c
53054164
.
dacon
)
e3
:
SetCondition
(
c
81022053
.
dacon
)
e3
:
SetCost
(
c
53054164
.
dacost
)
e3
:
SetCost
(
c
81022053
.
dacost
)
e3
:
SetTarget
(
c
53054164
.
datg
)
e3
:
SetTarget
(
c
81022053
.
datg
)
e3
:
SetOperation
(
c
53054164
.
daop
)
e3
:
SetOperation
(
c
81022053
.
daop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--pendulum
--pendulum
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
...
@@ -115,37 +116,37 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -115,37 +116,37 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
function
c
53054164
.
dacon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
81022053
.
dacon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsAbleToEnterBP
()
return
Duel
.
IsAbleToEnterBP
()
end
end
function
c
53054164
.
dacost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c
81022053
.
dacost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
end
function
c
53054164
.
datg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c
81022053
.
datg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
53054164
)
==
0
end
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
81022053
)
==
0
end
end
end
function
c
53054164
.
daop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
81022053
.
daop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e1
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTarget
(
c
m
.
dastg
)
e1
:
SetTarget
(
c
81022053
.
dastg
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
c
m
.
atktg
)
e2
:
SetTarget
(
c
81022053
.
atktg
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterFlagEffect
(
tp
,
53054164
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
81022053
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c
m
.
dastg
(
e
,
c
)
function
c
81022053
.
dastg
(
e
,
c
)
return
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsType
(
TYPE_PENDULUM
)
return
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsType
(
TYPE_PENDULUM
)
end
end
function
c
m
.
atktg
(
e
,
c
)
function
c
81022053
.
atktg
(
e
,
c
)
return
not
c
:
IsRace
(
RACE_PYRO
)
return
not
c
:
IsRace
(
RACE_PYRO
)
end
end
function
cm
.
pencon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
pencon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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