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
wyykak
ygopro
Commits
cb602dc4
Commit
cb602dc4
authored
Jul 26, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
509aee6b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
69 additions
and
10 deletions
+69
-10
script/c27062594.lua
script/c27062594.lua
+1
-1
script/c3734202.lua
script/c3734202.lua
+61
-6
script/c42940404.lua
script/c42940404.lua
+1
-1
script/c63060238.lua
script/c63060238.lua
+1
-1
script/c70245411.lua
script/c70245411.lua
+1
-0
script/c87602890.lua
script/c87602890.lua
+4
-1
No files found.
script/c27062594.lua
View file @
cb602dc4
...
...
@@ -19,7 +19,7 @@ function c27062594.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c27062594
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateAttack
()
==
0
then
return
end
if
not
Duel
.
NegateAttack
()
then
return
end
Duel
.
BreakEffect
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
...
...
script/c3734202.lua
View file @
cb602dc4
...
...
@@ -4,15 +4,17 @@ function c3734202.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c3734202
.
target
)
e1
:
SetOperation
(
c3734202
.
activate
)
c
:
RegisterEffect
(
e1
)
--spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
3734202
,
0
))
e2
:
SetCategory
(
CATEGORY_
TOGRAVE
+
CATEGORY_
SPECIAL_SUMMON
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_SINGLE
)
e2
:
SetCountLimit
(
1
,
3734202
)
e2
:
SetCost
(
c3734202
.
spcost1
)
e2
:
SetTarget
(
c3734202
.
sptg1
)
e2
:
SetOperation
(
c3734202
.
spop1
)
...
...
@@ -20,11 +22,11 @@ function c3734202.initial_effect(c)
--spsummon
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
3734202
,
1
))
e3
:
SetCategory
(
CATEGORY_
TOGRAVE
+
CATEGORY_
SPECIAL_SUMMON
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_SINGLE
)
e3
:
SetCountLimit
(
1
,
3734202
)
e3
:
SetCost
(
c3734202
.
spcost2
)
e3
:
SetTarget
(
c3734202
.
sptg2
)
e3
:
SetOperation
(
c3734202
.
spop2
)
...
...
@@ -40,11 +42,62 @@ function c3734202.initial_effect(c)
e4
:
SetOperation
(
c3734202
.
thop
)
c
:
RegisterEffect
(
e4
)
end
function
c3734202
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
b1
=
Duel
.
CheckReleaseGroup
(
tp
,
c3734202
.
cfilter1
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c3734202
.
spfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
local
b2
=
Duel
.
CheckReleaseGroup
(
tp
,
c3734202
.
cfilter2
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c3734202
.
spfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
if
Duel
.
GetFlagEffect
(
tp
,
3734202
)
==
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
(
b1
or
b2
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
3734202
,
3
))
then
local
opt
=
0
if
b1
and
b2
then
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
3734202
,
0
),
aux
.
Stringid
(
3734202
,
1
))
elseif
b1
then
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
3734202
,
0
))
else
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
3734202
,
1
))
+
1
end
if
opt
==
0
then
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c3734202
.
cfilter1
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
else
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c3734202
.
cfilter2
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
end
Duel
.
RegisterFlagEffect
(
tp
,
3734202
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e
:
SetLabel
(
opt
+
1
)
else
e
:
SetCategory
(
0
)
e
:
SetLabel
(
0
)
end
end
function
c3734202
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
opt
=
e
:
GetLabel
()
if
opt
==
0
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
opt
==
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c3734202
.
spfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c3734202
.
spfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
function
c3734202
.
cfilter1
(
c
)
return
c
:
IsRace
(
RACE_INSECT
)
and
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
end
function
c3734202
.
spcost1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c3734202
.
cfilter1
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
3734202
)
==
0
and
Duel
.
CheckReleaseGroup
(
tp
,
c3734202
.
cfilter1
,
1
,
nil
)
end
Duel
.
RegisterFlagEffect
(
tp
,
3734202
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c3734202
.
cfilter1
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
end
...
...
@@ -70,7 +123,9 @@ function c3734202.cfilter2(c)
return
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
end
function
c3734202
.
spcost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
c3734202
.
cfilter2
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
3734202
)
==
0
and
Duel
.
CheckReleaseGroup
(
tp
,
c3734202
.
cfilter2
,
1
,
nil
)
end
Duel
.
RegisterFlagEffect
(
tp
,
3734202
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c3734202
.
cfilter2
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
end
...
...
script/c42940404.lua
View file @
cb602dc4
...
...
@@ -84,7 +84,7 @@ function c42940404.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c42940404
.
sfilter
(
c
)
return
c
:
IsSetCard
(
0x36
)
and
c
:
GetCode
()
~=
42940404
and
c
:
Is
AbleToHand
()
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSetCard
(
0x36
)
and
c
:
GetCode
()
~=
42940404
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
(
)
end
function
c42940404
.
stg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c42940404
.
sfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
script/c63060238.lua
View file @
cb602dc4
...
...
@@ -6,7 +6,7 @@ function c63060238.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
,
63060238
)
e1
:
SetTarget
(
c63060238
.
thtg
)
e1
:
SetOperation
(
c63060238
.
thop
)
...
...
script/c70245411.lua
View file @
cb602dc4
...
...
@@ -40,6 +40,7 @@ function c70245411.spfilter(c,e,tp)
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c70245411
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
==
0
then
return
end
local
tc
=
Duel
.
GetOperatedGroup
():
GetFirst
()
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
...
...
script/c87602890.lua
View file @
cb602dc4
...
...
@@ -59,7 +59,10 @@ function c87602890.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
c87602890
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
tc
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
local
att
=
0
if
tc
:
IsFaceup
()
then
att
=
tc
:
GetAttribute
()
end
if
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
==
0
or
bit
.
band
(
att
,
ATTRIBUTE_LIGHT
)
==
0
then
return
end
local
lv
=
tc
:
GetLevel
()
if
tc
:
IsType
(
TYPE_XYZ
)
then
lv
=
tc
:
GetRank
()
...
...
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