Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
e3d747ce
Commit
e3d747ce
authored
Nov 15, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ba83c0f6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
40 deletions
+40
-40
script/c2521011.lua
script/c2521011.lua
+1
-1
script/c35842855.lua
script/c35842855.lua
+1
-1
script/c56105047.lua
script/c56105047.lua
+1
-1
script/c58242947.lua
script/c58242947.lua
+3
-4
script/c60992364.lua
script/c60992364.lua
+31
-31
script/c75132317.lua
script/c75132317.lua
+3
-2
No files found.
script/c2521011.lua
View file @
e3d747ce
...
...
@@ -14,7 +14,7 @@ function c2521011.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
2521011
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_CHAIN_UNIQUE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCost
(
c2521011
.
setcost
)
e2
:
SetTarget
(
c2521011
.
settg
)
...
...
script/c35842855.lua
View file @
e3d747ce
...
...
@@ -21,7 +21,7 @@ function c35842855.initial_effect(c)
e3
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DAMAGE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CHAIN_UNIQUE
)
e3
:
SetCost
(
c35842855
.
descost
)
e3
:
SetTarget
(
c35842855
.
destg
)
e3
:
SetOperation
(
c35842855
.
desop
)
...
...
script/c56105047.lua
View file @
e3d747ce
...
...
@@ -6,7 +6,7 @@ function c56105047.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CHAIN_UNIQUE
)
e1
:
SetCost
(
c56105047
.
spcost
)
e1
:
SetTarget
(
c56105047
.
sptg
)
e1
:
SetOperation
(
c56105047
.
spop
)
...
...
script/c58242947.lua
View file @
e3d747ce
...
...
@@ -11,7 +11,6 @@ function c58242947.initial_effect(c)
e1
:
SetTarget
(
c58242947
.
target
)
e1
:
SetOperation
(
c58242947
.
operation
)
c
:
RegisterEffect
(
e1
)
c58242947
[
0
]
=
nil
end
function
c58242947
.
filter
(
c
)
return
c
:
GetType
()
==
0x4
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
CheckActivateEffect
(
false
,
true
,
false
)
~=
nil
...
...
@@ -23,12 +22,12 @@ function c58242947.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
58242947
,
1
))
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c58242947
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
te
=
g
:
GetFirst
():
CheckActivateEffect
(
false
,
true
,
true
)
c58242947
[
0
]
=
te
c58242947
[
Duel
.
GetCurrentChain
()
]
=
te
g
:
AddCard
(
c
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
function
c58242947
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
te
=
c58242947
[
0
]
local
te
=
c58242947
[
Duel
.
GetCurrentChain
()
]
if
chkc
then
local
tg
=
te
:
GetTarget
()
return
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
,
true
)
...
...
@@ -41,7 +40,7 @@ function c58242947.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
tg
then
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
end
function
c58242947
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
te
=
c58242947
[
0
]
local
te
=
c58242947
[
Duel
.
GetCurrentChain
()
]
if
not
te
then
return
end
local
op
=
te
:
GetOperation
()
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
...
...
script/c60992
4
64.lua
→
script/c60992
3
64.lua
View file @
e3d747ce
--ZW-獣王獅子武装
function
c60992
4
64
.
initial_effect
(
c
)
function
c60992
3
64
.
initial_effect
(
c
)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
aux
.
XyzFilterFunction
(
c
,
5
),
2
)
c
:
EnableReviveLimit
()
...
...
@@ -11,66 +11,66 @@ function c60992464.initial_effect(c)
--search
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetDescription
(
aux
.
Stringid
(
60992
4
64
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
60992
3
64
,
0
))
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetCountLimit
(
1
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCost
(
c60992
4
64
.
cost
)
e2
:
SetTarget
(
c60992
4
64
.
target
)
e2
:
SetOperation
(
c60992
4
64
.
operation
)
e2
:
SetCost
(
c60992
3
64
.
cost
)
e2
:
SetTarget
(
c60992
3
64
.
target
)
e2
:
SetOperation
(
c60992
3
64
.
operation
)
c
:
RegisterEffect
(
e2
)
--equip
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
60992
4
64
,
1
))
e3
:
SetDescription
(
aux
.
Stringid
(
60992
3
64
,
1
))
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCategory
(
CATEGORY_EQUIP
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTarget
(
c60992
4
64
.
eqtg
)
e3
:
SetOperation
(
c60992
4
64
.
eqop
)
e3
:
SetTarget
(
c60992
3
64
.
eqtg
)
e3
:
SetOperation
(
c60992
3
64
.
eqop
)
c
:
RegisterEffect
(
e3
)
--
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
60992
4
64
,
2
))
e4
:
SetDescription
(
aux
.
Stringid
(
60992
3
64
,
2
))
e4
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetCondition
(
c60992
4
64
.
atcon
)
e4
:
SetCost
(
c60992
4
64
.
atcost
)
e4
:
SetTarget
(
c60992
4
64
.
attg
)
e4
:
SetOperation
(
c60992
4
64
.
atop
)
e4
:
SetCondition
(
c60992
3
64
.
atcon
)
e4
:
SetCost
(
c60992
3
64
.
atcost
)
e4
:
SetTarget
(
c60992
3
64
.
attg
)
e4
:
SetOperation
(
c60992
3
64
.
atop
)
c
:
RegisterEffect
(
e4
)
end
function
c60992
4
64
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60992
3
64
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
c60992
4
64
.
thfilter
(
c
)
function
c60992
3
64
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x7e
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c60992
4
64
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c60992
4
64
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
function
c60992
3
64
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c60992
3
64
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c60992
4
64
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60992
3
64
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60992
4
64
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c60992
3
64
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
c60992
4
64
.
filter
(
c
)
function
c60992
3
64
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x7f
)
end
function
c60992
4
64
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c60992
4
64
.
filter
(
chkc
)
end
function
c60992
3
64
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c60992
3
64
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c60992
4
64
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingTarget
(
c60992
3
64
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c60992
4
64
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c60992
3
64
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c60992
4
64
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60992
3
64
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
...
...
@@ -83,7 +83,7 @@ function c60992464.eqop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetValue
(
c60992
4
64
.
eqlimit
)
e1
:
SetValue
(
c60992
3
64
.
eqlimit
)
c
:
RegisterEffect
(
e1
)
--atkup
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -93,23 +93,23 @@ function c60992464.eqop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e2
)
end
function
c60992
4
64
.
eqlimit
(
e
,
c
)
function
c60992
3
64
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x7f
)
end
function
c60992
4
64
.
atcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60992
3
64
.
atcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
and
Duel
.
GetCurrentChain
()
==
0
end
function
c60992
4
64
.
atcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60992
3
64
.
atcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
e
:
SetLabelObject
(
e
:
GetHandler
():
GetEquipTarget
())
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c60992
4
64
.
attg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60992
3
64
.
attg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
eqc
=
e
:
GetHandler
():
GetEquipTarget
()
if
chk
==
0
then
return
eqc
and
eqc
:
GetAttackedCount
()
==
1
and
eqc
:
GetEffectCount
(
EFFECT_EXTRA_ATTACK
)
==
0
end
Duel
.
SetTargetCard
(
e
:
GetLabelObject
())
end
function
c60992
4
64
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60992
3
64
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
...
...
script/c75132317.lua
View file @
e3d747ce
...
...
@@ -5,7 +5,7 @@ function c75132317.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
75132317
,
0
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CHAIN_UNIQUE
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c75132317
.
setcon
)
...
...
@@ -36,7 +36,8 @@ function c75132317.filter(c)
return
c
:
IsSetCard
(
0x7c
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
end
function
c75132317
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c75132317
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
IsExistingMatchingCard
(
c75132317
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
end
function
c75132317
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
...
...
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