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
0bce54dc
Commit
0bce54dc
authored
Sep 12, 2012
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
75ea0f10
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
24 additions
and
23 deletions
+24
-23
script/c10000020.lua
script/c10000020.lua
+1
-1
script/c10000021.lua
script/c10000021.lua
+1
-1
script/c57019473.lua
script/c57019473.lua
+1
-2
script/c61132951.lua
script/c61132951.lua
+2
-2
script/c67959180.lua
script/c67959180.lua
+1
-2
script/c68473226.lua
script/c68473226.lua
+8
-5
script/c86827882.lua
script/c86827882.lua
+3
-3
script/c88069166.lua
script/c88069166.lua
+2
-2
script/c90200789.lua
script/c90200789.lua
+5
-5
No files found.
script/c10000020.lua
View file @
0bce54dc
...
@@ -98,7 +98,7 @@ function c10000020.adval(e,c)
...
@@ -98,7 +98,7 @@ function c10000020.adval(e,c)
return
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
LOCATION_HAND
,
0
)
*
1000
return
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
LOCATION_HAND
,
0
)
*
1000
end
end
function
c10000020
.
atkfilter
(
c
,
e
,
tp
)
function
c10000020
.
atkfilter
(
c
,
e
,
tp
)
return
c
:
GetSummonPlayer
()
==
tp
and
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
(
not
e
or
c
:
IsRelateToEffect
(
e
))
return
c
:
IsControler
(
tp
)
and
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
(
not
e
or
c
:
IsRelateToEffect
(
e
))
end
end
function
c10000020
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10000020
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c10000020
.
atkfilter
,
1
,
nil
,
nil
,
1
-
tp
)
return
eg
:
IsExists
(
c10000020
.
atkfilter
,
1
,
nil
,
nil
,
1
-
tp
)
...
...
script/c10000021.lua
View file @
0bce54dc
...
@@ -98,7 +98,7 @@ function c10000021.adval(e,c)
...
@@ -98,7 +98,7 @@ function c10000021.adval(e,c)
return
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
LOCATION_HAND
,
0
)
*
1000
return
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
LOCATION_HAND
,
0
)
*
1000
end
end
function
c10000021
.
atkfilter
(
c
,
e
,
tp
)
function
c10000021
.
atkfilter
(
c
,
e
,
tp
)
return
c
:
GetSummonPlayer
()
==
tp
and
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
(
not
e
or
c
:
IsRelateToEffect
(
e
))
return
c
:
IsControler
(
tp
)
and
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
(
not
e
or
c
:
IsRelateToEffect
(
e
))
end
end
function
c10000021
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10000021
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c10000021
.
atkfilter
,
1
,
nil
,
nil
,
1
-
tp
)
return
eg
:
IsExists
(
c10000021
.
atkfilter
,
1
,
nil
,
nil
,
1
-
tp
)
...
...
script/c57019473.lua
View file @
0bce54dc
...
@@ -17,8 +17,7 @@ function c57019473.filter(c)
...
@@ -17,8 +17,7 @@ function c57019473.filter(c)
end
end
function
c57019473
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c57019473
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c57019473
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c57019473
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c57019473
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingTarget
(
c57019473
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c57019473
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c57019473
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
HINTMSG_REMOVE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
HINTMSG_REMOVE
,
g
,
1
,
0
,
0
)
...
...
script/c61132951.lua
View file @
0bce54dc
...
@@ -4,7 +4,7 @@ function c61132951.initial_effect(c)
...
@@ -4,7 +4,7 @@ function c61132951.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
61132951
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
61132951
,
0
))
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
F
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
O
)
e1
:
SetCode
(
EVENT_BATTLE_CONFIRM
)
e1
:
SetCode
(
EVENT_BATTLE_CONFIRM
)
e1
:
SetTarget
(
c61132951
.
destg
)
e1
:
SetTarget
(
c61132951
.
destg
)
e1
:
SetOperation
(
c61132951
.
desop
)
e1
:
SetOperation
(
c61132951
.
desop
)
...
@@ -12,7 +12,7 @@ function c61132951.initial_effect(c)
...
@@ -12,7 +12,7 @@ function c61132951.initial_effect(c)
end
end
function
c61132951
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c61132951
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
if
chk
==
0
then
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
and
d
and
d
:
IsDefencePos
()
and
d
:
IsDestructable
()
end
and
d
and
d
:
IsDefencePos
()
and
d
:
IsDestructable
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
d
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
d
,
1
,
0
,
0
)
end
end
...
...
script/c67959180.lua
View file @
0bce54dc
...
@@ -23,8 +23,7 @@ function c67959180.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -23,8 +23,7 @@ function c67959180.operation(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
if
opt
==
coin
then
if
opt
==
coin
then
e1
:
SetValue
(
c
:
GetBaseAttack
()
/
2
)
e1
:
SetValue
(
c
:
GetBaseAttack
()
/
2
)
else
else
...
...
script/c68473226.lua
View file @
0bce54dc
...
@@ -17,15 +17,18 @@ function c68473226.initial_effect(c)
...
@@ -17,15 +17,18 @@ function c68473226.initial_effect(c)
e2
:
SetOperation
(
c68473226
.
regop
)
e2
:
SetOperation
(
c68473226
.
regop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c68473226
.
spfilter
(
c
)
return
c
:
IsLevelAbove
(
8
)
and
c
:
IsAbleToGraveAsCost
()
end
function
c68473226
.
spcon
(
e
,
c
)
function
c68473226
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
and
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
Duel
.
IsExistingMatchingCard
(
Card
.
IsLevelAbove
,
c
:
GetControler
(),
LOCATION_HAND
,
0
,
1
,
c
,
8
)
and
Duel
.
IsExistingMatchingCard
(
c68473226
.
spfilter
,
c
:
GetControler
(),
LOCATION_HAND
,
0
,
1
,
c
)
end
end
function
c68473226
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c68473226
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
DISCARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_
TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsLevelAbove
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
c
,
8
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c68473226
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
c
)
Duel
.
SendtoGrave
(
g
,
REASON_
DISCARD
+
REASON_
COST
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
end
function
c68473226
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c68473226
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
e
:
GetHandler
():
GetReasonCard
()
local
rc
=
e
:
GetHandler
():
GetReasonCard
()
...
...
script/c86827882.lua
View file @
0bce54dc
...
@@ -19,10 +19,10 @@ function c86827882.filter(c)
...
@@ -19,10 +19,10 @@ function c86827882.filter(c)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x42
)
or
c
:
IsSetCard
(
0x4b
))
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x42
)
or
c
:
IsSetCard
(
0x4b
))
end
end
function
c86827882
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c86827882
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c86827882
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c
hkc
:
IsControler
(
tp
)
and
c
86827882
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c86827882
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c86827882
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c86827882
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c86827882
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
end
function
c86827882
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c86827882
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
...
...
script/c88069166.lua
View file @
0bce54dc
...
@@ -31,9 +31,9 @@ function c88069166.filter(c)
...
@@ -31,9 +31,9 @@ function c88069166.filter(c)
end
end
function
c88069166
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c88069166
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c88069166
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c88069166
.
filter
(
chkc
)
end
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c88069166
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c88069166
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c88069166
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetChainLimit
(
c88069166
.
chlimit
)
Duel
.
SetChainLimit
(
c88069166
.
chlimit
)
end
end
function
c88069166
.
chlimit
(
e
,
ep
,
tp
)
function
c88069166
.
chlimit
(
e
,
ep
,
tp
)
...
...
script/c90200789.lua
View file @
0bce54dc
...
@@ -18,12 +18,12 @@ function c90200789.initial_effect(c)
...
@@ -18,12 +18,12 @@ function c90200789.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c90200789
.
filter1
(
c
,
tp
,
slv
)
function
c90200789
.
filter1
(
c
,
tp
,
slv
)
local
lv1
=
c
:
Get
Original
Level
()
local
lv1
=
c
:
GetLevel
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x2b
)
and
lv1
>
0
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x2b
)
and
lv1
>
0
and
Duel
.
IsExistingTarget
(
c90200789
.
filter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
lv1
,
slv
)
and
Duel
.
IsExistingTarget
(
c90200789
.
filter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
lv1
,
slv
)
end
end
function
c90200789
.
filter2
(
c
,
lv1
,
slv
)
function
c90200789
.
filter2
(
c
,
lv1
,
slv
)
local
lv2
=
c
:
Get
Original
Level
()
local
lv2
=
c
:
GetLevel
()
return
c
:
IsFaceup
()
and
lv2
>
0
and
lv1
+
lv2
>=
slv
return
c
:
IsFaceup
()
and
lv2
>
0
and
lv1
+
lv2
>=
slv
end
end
function
c90200789
.
spfilter
(
c
,
e
,
tp
,
lv
)
function
c90200789
.
spfilter
(
c
,
e
,
tp
,
lv
)
...
@@ -34,15 +34,15 @@ function c90200789.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -34,15 +34,15 @@ function c90200789.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
sg
=
Duel
.
GetMatchingGroup
(
c90200789
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
local
sg
=
Duel
.
GetMatchingGroup
(
c90200789
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
if
chk
==
0
then
if
chk
==
0
then
if
sg
:
GetCount
()
==
0
then
return
false
end
if
sg
:
GetCount
()
==
0
then
return
false
end
local
m
lv
=
sg
:
GetMinGroup
(
Card
.
GetLevel
):
GetFirst
():
GetLevel
(
)
local
m
g
,
mlv
=
sg
:
GetMinGroup
(
Card
.
GetLevel
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
1
and
Duel
.
IsExistingTarget
(
c90200789
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
,
mlv
)
and
Duel
.
IsExistingTarget
(
c90200789
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
,
mlv
)
end
end
local
m
lv
=
sg
:
GetMinGroup
(
Card
.
GetLevel
):
GetFirst
():
GetLevel
(
)
local
m
g
,
mlv
=
sg
:
GetMinGroup
(
Card
.
GetLevel
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c90200789
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
,
mlv
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c90200789
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
,
mlv
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c90200789
.
filter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
g1
:
GetFirst
():
Get
Original
Level
(),
mlv
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c90200789
.
filter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
g1
:
GetFirst
():
GetLevel
(),
mlv
)
g1
:
Merge
(
g2
)
g1
:
Merge
(
g2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g1
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
g1
,
2
,
0
,
0
)
end
end
...
...
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