Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
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
MyCard
ygopro-scripts
Commits
53cbd350
Commit
53cbd350
authored
Mar 11, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b7a23b3d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
9 deletions
+14
-9
c11082056.lua
c11082056.lua
+2
-1
c31759689.lua
c31759689.lua
+4
-1
c53266486.lua
c53266486.lua
+1
-1
c58582979.lua
c58582979.lua
+5
-5
c64454614.lua
c64454614.lua
+1
-1
c74063034.lua
c74063034.lua
+1
-0
No files found.
c11082056.lua
View file @
53cbd350
...
...
@@ -35,10 +35,11 @@ function c11082056.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
GetFirst
()
if
tc
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
tc
:
IsOnField
()
and
tc
:
IsFacedown
()
then
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
local
code
=
tc
:
GetCode
()
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
if
not
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c11082056
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
:
GetCode
()
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c11082056
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
code
)
local
sc
=
sg
:
GetFirst
()
if
sc
then
Duel
.
BreakEffect
()
...
...
c31759689.lua
View file @
53cbd350
...
...
@@ -53,8 +53,11 @@ function c31759689.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN_DEFENSE
)
end
end
function
c31759689
.
atkfilter
(
c
,
ec
)
return
(
c
:
GetLinkedGroup
()
and
c
:
GetLinkedGroup
():
IsContains
(
ec
))
or
(
ec
:
GetLinkedGroup
()
and
ec
:
GetLinkedGroup
():
IsContains
(
c
))
end
function
c31759689
.
val
(
e
,
c
)
return
c
:
GetLinkedGroupCount
(
)
*-
1000
return
Duel
.
GetMatchingGroupCount
(
c31759689
.
atkfilter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
c
,
c
)
*-
1000
end
function
c31759689
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c53266486.lua
View file @
53cbd350
...
...
@@ -53,7 +53,7 @@ function c53266486.desop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetValue
(
RESET_TURN_SET
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e2
)
local
e4
=
e1
:
Clone
()
e4
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
...
...
c58582979.lua
View file @
53cbd350
...
...
@@ -34,20 +34,20 @@ function c58582979.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c58582979
.
hspcfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
c
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c58582979
.
spcfilter1
(
c
,
tp
)
function
c58582979
.
spcfilter1
(
c
,
tp
,
ec
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
c58582979
.
spcfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
c
,
c
:
GetCode
())
and
Duel
.
IsExistingMatchingCard
(
c58582979
.
spcfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
Group
.
FromCards
(
ec
,
c
)
,
c
:
GetCode
())
end
function
c58582979
.
spcfilter2
(
c
,
code
)
return
c
:
IsCode
(
code
)
and
c
:
IsAbleToRemoveAsCost
()
end
function
c58582979
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c58582979
.
spcfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c58582979
.
spcfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
,
tp
,
c
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c58582979
.
spcfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
c
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c58582979
.
spcfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
c
,
tp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c58582979
.
spcfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
g
:
GetFirst
(
),
g
:
GetFirst
():
GetCode
())
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
c58582979
.
spcfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
2
,
2
,
Group
.
FromCards
(
c
,
g
:
GetFirst
()
),
g
:
GetFirst
():
GetCode
())
g
:
Merge
(
g2
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
...
...
c64454614.lua
View file @
53cbd350
...
...
@@ -67,7 +67,7 @@ function c64454614.spfilter(c,e,tp)
and
Duel
.
IsExistingMatchingCard
(
c64454614
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
c
)
end
function
c64454614
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
GetLevel
()
==
4
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAbleToHand
()
return
c
:
GetLevel
()
==
4
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAbleToHand
()
end
function
c64454614
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c74063034.lua
View file @
53cbd350
...
...
@@ -65,6 +65,7 @@ function c74063034.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
return
res
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
0
,
LOCATION_MZONE
+
LOCATION_GRAVE
)
end
function
c74063034
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
chkf
=
tp
...
...
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