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
Ai
ygopro-222DIY-cards
Commits
02d3b945
Commit
02d3b945
authored
Jun 26, 2019
by
篁楠
Committed by
GitHub
Jun 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix-2
parent
f107e091
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
807 additions
and
805 deletions
+807
-805
expansions/script/c1000417.lua
expansions/script/c1000417.lua
+96
-98
expansions/script/c26807032.lua
expansions/script/c26807032.lua
+200
-196
expansions/script/c81012029.lua
expansions/script/c81012029.lua
+129
-129
expansions/script/c9980237.lua
expansions/script/c9980237.lua
+111
-111
expansions/script/c9980287.lua
expansions/script/c9980287.lua
+108
-108
expansions/script/c9980512.lua
expansions/script/c9980512.lua
+63
-63
expansions/script/c9980590.lua
expansions/script/c9980590.lua
+100
-100
No files found.
expansions/script/c1000417.lua
View file @
02d3b945
...
@@ -41,11 +41,9 @@ function c1000417.filter1(c)
...
@@ -41,11 +41,9 @@ function c1000417.filter1(c)
return
c
:
IsType
(
TYPE_CONTINUOUS
)
and
c
:
IsFaceup
()
and
c
:
IsAbleToGrave
()
and
not
c
:
IsCode
(
1000417
)
return
c
:
IsType
(
TYPE_CONTINUOUS
)
and
c
:
IsFaceup
()
and
c
:
IsAbleToGrave
()
and
not
c
:
IsCode
(
1000417
)
end
end
function
c1000417
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c1000417
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c1000417
.
filter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c1000417
.
filter1
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
nil
,
e
,
tp
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c1000417
.
filter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c1000417
.
filter1
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
local
g
=
Duel
.
GetMatchingGroup
(
c1000417
.
filter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
end
function
c1000417
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1000417
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
--destroy
--destroy
...
...
expansions/script/c26807032.lua
View file @
02d3b945
...
@@ -153,7 +153,11 @@ function c26807032.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -153,7 +153,11 @@ function c26807032.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c26807032
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c26807032
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c26807032
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c26807032
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
,
tp
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
26807041
)
then
Duel
.
Remove
(
g
,
POS_FACEDOWN
,
REASON_COST
)
else
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
end
end
function
c26807032
.
spfilter
(
c
,
e
,
tp
)
function
c26807032
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
expansions/script/c81012029.lua
View file @
02d3b945
...
@@ -51,11 +51,11 @@ function c81012029.drcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,11 +51,11 @@ function c81012029.drcon(e,tp,eg,ep,ev,re,r,rp)
local
des
=
eg
:
GetFirst
()
local
des
=
eg
:
GetFirst
()
if
des
:
IsReason
(
REASON_BATTLE
)
then
if
des
:
IsReason
(
REASON_BATTLE
)
then
local
rc
=
des
:
GetReasonCard
()
local
rc
=
des
:
GetReasonCard
()
return
rc
and
rc
:
IsType
(
TYPE_RITUAL
)
and
r
e
:
IsType
(
TYPE_PENDULUM
)
and
rc
:
IsControler
(
tp
)
and
rc
:
IsRelateToBattle
()
return
rc
and
rc
:
IsType
(
TYPE_RITUAL
)
and
r
c
:
IsType
(
TYPE_PENDULUM
)
and
rc
:
IsControler
(
tp
)
and
rc
:
IsRelateToBattle
()
elseif
re
then
elseif
re
then
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
return
eg
:
IsExists
(
c81012029
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c81012029
.
cfilter
,
1
,
nil
,
tp
)
and
rc
and
rc
:
IsType
(
TYPE_RITUAL
)
and
r
e
:
IsType
(
TYPE_PENDULUM
)
and
rc
:
IsControler
(
tp
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
rc
and
rc
:
IsType
(
TYPE_RITUAL
)
and
r
c
:
IsType
(
TYPE_PENDULUM
)
and
rc
:
IsControler
(
tp
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
end
end
return
false
return
false
end
end
...
...
expansions/script/c9980237.lua
View file @
02d3b945
...
@@ -41,7 +41,7 @@ function c9980237.initial_effect(c)
...
@@ -41,7 +41,7 @@ function c9980237.initial_effect(c)
e4
:
SetDescription
(
aux
.
Stringid
(
9980237
,
0
))
e4
:
SetDescription
(
aux
.
Stringid
(
9980237
,
0
))
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD
)
e4
:
SetProperty
(
EFFECT_FLAG_
DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e4
:
SetProperty
(
EFFECT_FLAG_
CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCondition
(
c9980237
.
spcon
)
e4
:
SetCondition
(
c9980237
.
spcon
)
...
...
expansions/script/c9980287.lua
View file @
02d3b945
expansions/script/c9980512.lua
View file @
02d3b945
...
@@ -16,7 +16,7 @@ function c9980513.cfilter(c)
...
@@ -16,7 +16,7 @@ function c9980513.cfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xcbcc
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xcbcc
)
end
end
function
c9980512
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9980512
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
and
Duel
.
IsExistingMatchingCard
(
c9980513
.
cfilter
,
tp
,
LOCATION_PZONE
+
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
and
Duel
.
IsExistingMatchingCard
(
c9980513
.
cfilter
,
tp
,
LOCATION_PZONE
+
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
c9980512
.
filter
(
c
)
function
c9980512
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x5bcc
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x5bcc
)
...
...
expansions/script/c9980590.lua
View file @
02d3b945
...
@@ -79,7 +79,7 @@ function c9980590.op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -79,7 +79,7 @@ function c9980590.op(e,tp,eg,ep,ev,re,r,rp)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
function
c9980590
.
filter1
(
e
,
c
)
function
c9980590
.
filter1
(
e
,
c
)
return
c
:
IsSetCard
(
0x6bca
)
return
c
:
IsSetCard
(
0x6bca
)
...
...
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