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-520DIY
ygopro
Commits
12c9432a
Commit
12c9432a
authored
Oct 10, 2012
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a654c75f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
14 deletions
+15
-14
script/c20951752.lua
script/c20951752.lua
+5
-5
script/c22751868.lua
script/c22751868.lua
+1
-1
script/c26708437.lua
script/c26708437.lua
+1
-1
script/c33900648.lua
script/c33900648.lua
+1
-1
script/c52097679.lua
script/c52097679.lua
+2
-2
script/c52823314.lua
script/c52823314.lua
+3
-3
script/c61650133.lua
script/c61650133.lua
+1
-1
script/c76763417.lua
script/c76763417.lua
+1
-0
No files found.
script/c20951752.lua
View file @
12c9432a
...
...
@@ -51,11 +51,11 @@ function c20951752.sumcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetLabel
()
==
1
end
function
c20951752
.
sumcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
nil
,
RACE_FAIRY
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
1
,
nil
)
end
local
g
=
Duel
.
GetReleaseGroup
(
tp
)
local
rg
=
g
:
Filter
(
Card
.
IsRace
,
nil
,
RACE_FAIRY
)
Duel
.
Release
(
r
g
,
REASON_COST
)
e
:
GetLabelObject
():
SetLabel
(
rg
:
GetCount
()
)
local
ct
=
g
:
FilterCount
(
Card
.
IsRace
,
nil
,
RACE_FAIRY
)
Duel
.
Release
(
g
,
REASON_COST
)
e
:
GetLabelObject
():
SetLabel
(
ct
)
end
function
c20951752
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
...
...
@@ -73,7 +73,7 @@ function c20951752.descon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_SPECIAL
+
1
end
function
c20951752
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
and
e
:
GetLabel
()
>
0
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
...
...
script/c22751868.lua
View file @
12c9432a
...
...
@@ -51,7 +51,7 @@ function c22751868.filter(c,e,tp)
return
c
:
IsLevelAbove
(
4
)
and
c
:
IsSetCard
(
0x11
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c22751868
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c22751868
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c22751868
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c22751868
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
script/c26708437.lua
View file @
12c9432a
...
...
@@ -25,7 +25,7 @@ end
function
c26708437
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
and
c
:
IsRelateToEffect
(
e
)
then
c
:
CancelToGrave
()
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
end
...
...
script/c33900648.lua
View file @
12c9432a
...
...
@@ -110,7 +110,7 @@ c33900648[0]=0
c33900648
[
1
]
=
0
function
c33900648
.
raccheck
(
p
)
local
rac
=
0
for
i
=
1
,
5
do
for
i
=
0
,
4
do
local
tc
=
Duel
.
GetFieldCard
(
p
,
LOCATION_MZONE
,
i
)
if
tc
and
tc
:
IsFaceup
()
then
rac
=
bit
.
bor
(
rac
,
tc
:
GetAttribute
())
...
...
script/c52097679.lua
View file @
12c9432a
...
...
@@ -21,13 +21,13 @@ function c52097679.activate(e,tp,eg,ep,ev,re,r,rp)
local
def
=
tc
:
GetBaseDefence
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_
ATTACK_FINAL
)
e1
:
SetCode
(
EFFECT_SET_
BASE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetValue
(
def
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_SET_
DEFENCE_FINAL
)
e2
:
SetCode
(
EFFECT_SET_
BASE_DEFENCE
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetValue
(
atk
)
tc
:
RegisterEffect
(
e2
)
...
...
script/c52823314.lua
View file @
12c9432a
...
...
@@ -16,14 +16,14 @@ function c52823314.filter(c)
end
function
c52823314
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c52823314
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c52823314
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c52823314
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
g
:
GetCount
()
,
0
,
0
)
end
function
c52823314
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoDeck
(
tc
,
nil
,
2
,
REASON_EFFECT
)
end
end
script/c61650133.lua
View file @
12c9432a
...
...
@@ -42,7 +42,7 @@ function c61650133.rmop(e,tp,eg,ep,ev,re,r,rp)
local
rm2
=
false
local
tc
=
eg
:
GetFirst
()
while
tc
do
if
tc
:
Is
Location
(
LOCATION_ONFIELD
)
and
tc
:
IsFaceup
()
then
if
tc
:
Is
OnField
()
then
if
tc
:
IsControler
(
tp
)
then
rm1
=
true
else
rm2
=
true
end
end
tc
=
eg
:
GetNext
()
...
...
script/c76763417.lua
View file @
12c9432a
...
...
@@ -7,6 +7,7 @@ function c76763417.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCost
(
c76763417
.
descost
)
e1
:
SetTarget
(
c76763417
.
destg
)
e1
:
SetOperation
(
c76763417
.
desop
)
...
...
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