Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
赤子奈落
ygopro
Commits
dd0d556a
Commit
dd0d556a
authored
May 17, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
bf517793
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
15 deletions
+23
-15
script/c11082056.lua
script/c11082056.lua
+2
-1
script/c46232525.lua
script/c46232525.lua
+2
-1
script/c53315891.lua
script/c53315891.lua
+6
-6
script/c5832914.lua
script/c5832914.lua
+8
-4
script/c79447365.lua
script/c79447365.lua
+1
-0
script/c83743222.lua
script/c83743222.lua
+2
-1
script/c84565800.lua
script/c84565800.lua
+2
-2
No files found.
script/c11082056.lua
View file @
dd0d556a
...
...
@@ -35,11 +35,12 @@ 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
:
IsFacedown
()
then
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
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
sc
=
sg
:
GetFirst
()
if
sc
then
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
sc
:
CompleteProcedure
()
...
...
script/c46232525.lua
View file @
dd0d556a
...
...
@@ -37,11 +37,12 @@ function c46232525.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
GetFirst
()
if
tc
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
tc
:
IsFacedown
()
then
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
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
,
c46232525
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
tc
:
GetRace
())
local
sc
=
sg
:
GetFirst
()
if
sc
then
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
sc
:
CompleteProcedure
()
...
...
script/c53315891.lua
View file @
dd0d556a
...
...
@@ -46,7 +46,7 @@ function c53315891.initial_effect(c)
c
:
RegisterEffect
(
e5
)
end
function
c53315891
.
sprfilter
(
c
,
code
)
return
c
:
IsCode
(
code
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsCode
(
code
)
and
c
:
IsAbleToGraveAsCost
()
end
function
c53315891
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
@@ -98,7 +98,6 @@ function c53315891.atkop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_DEFENCE_FINAL
)
e2
:
SetValue
(
atk
)
c
:
RegisterEffect
(
e2
)
end
end
...
...
@@ -113,9 +112,10 @@ function c53315891.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c53315891
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
3
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c53315891
.
spfilter
,
tp
,
0x13
,
0
,
3
,
3
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
true
,
true
,
POS_FACEUP
)
local
g
=
Duel
.
GetMatchingGroup
(
c53315891
.
spfilter
,
tp
,
0x13
,
0
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
Select
(
tp
,
3
,
3
,
nil
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
true
,
true
,
POS_FACEUP
)
end
end
script/c5832914.lua
View file @
dd0d556a
...
...
@@ -20,14 +20,18 @@ function c5832914.cfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_TOON
)
end
function
c5832914
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
Duel
.
IsExistingMatchingCard
(
c5832914
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c5832914
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c5832914
.
filter
(
c
,
tp
)
return
c
:
GetSummonPlayer
()
==
tp
and
c
:
IsAbleToDeck
()
end
function
c5832914
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
Card
.
IsAbleToDeck
,
1
,
nil
)
end
local
g
=
eg
:
Filter
(
Card
.
IsAbleToDeck
,
nil
)
if
chk
==
0
then
return
eg
:
IsExists
(
c5832914
.
filter
,
1
,
nil
,
1
-
tp
)
end
local
g
=
eg
:
Filter
(
c5832914
.
filter
,
nil
,
1
-
tp
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c5832914
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
eg
:
Filter
(
Card
.
IsAbleToDeck
,
nil
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
end
script/c79447365.lua
View file @
dd0d556a
...
...
@@ -38,6 +38,7 @@ function c79447365.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
)
end
function
c79447365
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsFacedown
()
then
return
end
local
lv
=
0
...
...
script/c83743222.lua
View file @
dd0d556a
...
...
@@ -57,7 +57,8 @@ function c83743222.eqlimit(e,c)
return
c
==
e
:
GetLabelObject
()
end
function
c83743222
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetEquipTarget
()
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
and
ep
~=
tp
local
ph
=
Duel
.
GetCurrentPhase
()
return
e
:
GetHandler
():
GetEquipTarget
()
and
(
ph
>
PHASE_MAIN1
and
ph
<
PHASE_MAIN2
)
and
ep
~=
tp
end
function
c83743222
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c84565800.lua
View file @
dd0d556a
...
...
@@ -44,7 +44,7 @@ function c84565800.rmop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c84565800
.
cpfilter
(
c
)
return
c
:
IsType
(
TYPE_EFFECT
)
and
not
c
:
IsCode
(
84565800
)
return
c
:
IsType
(
TYPE_EFFECT
)
end
function
c84565800
.
cptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c84565800
.
cpfilter
(
chkc
)
end
...
...
@@ -55,7 +55,7 @@ end
function
c84565800
.
cpop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
local
code
=
tc
:
GetCode
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
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