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
80e0fd45
Commit
80e0fd45
authored
Nov 19, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5d2c607b
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
45 additions
and
25 deletions
+45
-25
script/c18988391.lua
script/c18988391.lua
+1
-1
script/c19700943.lua
script/c19700943.lua
+1
-1
script/c22653490.lua
script/c22653490.lua
+9
-8
script/c23776077.lua
script/c23776077.lua
+11
-8
script/c26533075.lua
script/c26533075.lua
+1
-1
script/c43748308.lua
script/c43748308.lua
+4
-2
script/c52823314.lua
script/c52823314.lua
+4
-0
script/c56105047.lua
script/c56105047.lua
+1
-1
script/c56981417.lua
script/c56981417.lua
+1
-1
script/c74298287.lua
script/c74298287.lua
+1
-1
script/c82293134.lua
script/c82293134.lua
+4
-0
script/c83108603.lua
script/c83108603.lua
+4
-0
script/c9560338.lua
script/c9560338.lua
+2
-0
script/c96381979.lua
script/c96381979.lua
+1
-1
No files found.
script/c18988391.lua
View file @
80e0fd45
...
...
@@ -12,7 +12,7 @@ end
function
c18988391
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
18988391
)
==
0
and
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
Duel
.
RegisterFlagEffect
(
tp
,
18988391
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
18988391
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
end
function
c18988391
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
script/c19700943.lua
View file @
80e0fd45
...
...
@@ -27,4 +27,4 @@ function c19700943.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
c
:
RegisterEffect
(
e1
)
end
\ No newline at end of file
end
script/c22653490.lua
View file @
80e0fd45
...
...
@@ -18,6 +18,7 @@ function c22653490.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
22653490
,
1
))
e2
:
SetCategory
(
CATEGORY_TODECK
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCountLimit
(
1
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCost
(
c22653490
.
tdcost2
)
...
...
@@ -51,16 +52,16 @@ end
function
c22653490
.
tdfilter2
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAbleToDeck
()
end
function
c22653490
.
tdtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c22653490
.
tdfilter2
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c22653490
.
tdfilter2
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
function
c22653490
.
tdtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsOnField
()
and
c22653490
.
tdfilter2
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c22653490
.
tdfilter2
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c22653490
.
tdfilter2
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
end
function
c22653490
.
tdop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c22653490
.
tdfilter2
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
SendtoDeck
(
g
,
nil
,
0
,
REASON_EFFECT
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoDeck
(
tc
,
nil
,
0
,
REASON_EFFECT
)
end
end
script/c23776077.lua
View file @
80e0fd45
...
...
@@ -8,6 +8,7 @@ function c23776077.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
23776077
,
0
))
e1
:
SetCategory
(
CATEGORY_REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCost
(
c23776077
.
rmcost
)
...
...
@@ -50,17 +51,19 @@ function c23776077.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
c23776077
.
rmfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
end
function
c23776077
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c23776077
.
rmfilter
,
tp
,
0
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
1
-
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
)
function
c23776077
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
+
LOCATION_GRAVE
)
and
c23776077
.
rmfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c23776077
.
rmfilter
,
tp
,
0
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c23776077
.
rmfilter
,
tp
,
0
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
end
function
c23776077
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c23776077
.
rmfilter
,
tp
,
0
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
function
c23776077
.
adcon
(
e
)
...
...
script/c26533075.lua
View file @
80e0fd45
...
...
@@ -44,7 +44,7 @@ function c26533075.descon(e,tp,eg,ep,ev,re,r,rp)
and
e
:
GetHandler
():
IsPreviousPosition
(
POS_FACEDOWN
)
end
function
c26533075
.
desfilter
(
c
)
return
c
:
Is
Faceup
()
and
c
:
Is
Destructable
()
return
c
:
IsDestructable
()
end
function
c26533075
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
c26533075
.
desfilter
(
chkc
)
end
...
...
script/c43748308.lua
View file @
80e0fd45
...
...
@@ -5,7 +5,7 @@ function c43748308.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
43748308
,
0
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CHAIN_UNIQUE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c43748308
.
setcon
)
...
...
@@ -33,10 +33,12 @@ function c43748308.filter(c)
return
c
:
IsSetCard
(
0x7c
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsSSetable
()
end
function
c43748308
.
settg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
e
:
GetHandler
():
IsFaceup
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c43748308
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
end
function
c43748308
.
setop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
e
:
GetHandler
():
IsFacedown
()
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c43748308
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
...
...
script/c52823314.lua
View file @
80e0fd45
...
...
@@ -7,10 +7,14 @@ function c52823314.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetCondition
(
c52823314
.
condition
)
e1
:
SetTarget
(
c52823314
.
target
)
e1
:
SetOperation
(
c52823314
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
c52823314
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsReason
(
REASON_RETURN
)
end
function
c52823314
.
filter
(
c
)
return
c
:
GetCode
()
~=
52823314
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
()
end
...
...
script/c56105047.lua
View file @
80e0fd45
...
...
@@ -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
+
EFFECT_FLAG_CHAIN_UNIQUE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CHAIN_UNIQUE
+
EFFECT_FLAG_DELAY
)
e1
:
SetCost
(
c56105047
.
spcost
)
e1
:
SetTarget
(
c56105047
.
sptg
)
e1
:
SetOperation
(
c56105047
.
spop
)
...
...
script/c56981417.lua
View file @
80e0fd45
...
...
@@ -26,7 +26,7 @@ function c56981417.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c56981417
.
cffilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ShuffleHand
(
tp
)
Duel
.
RegisterFlagEffect
(
tp
,
56981417
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
56981417
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
end
function
c56981417
.
filter
(
c
)
return
c
:
IsSetCard
(
0x106e
)
and
c
:
GetCode
()
~=
56981417
and
c
:
GetType
()
==
TYPE_SPELL
and
c
:
CheckActivateEffect
(
true
,
true
,
false
)
~=
nil
...
...
script/c74298287.lua
View file @
80e0fd45
...
...
@@ -5,7 +5,7 @@ function c74298287.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
74298287
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_CHAIN_UNIQUE
+
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_CHAIN_UNIQUE
+
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetCode
(
EVENT_TO_HAND
)
e1
:
SetCondition
(
c74298287
.
spcon1
)
e1
:
SetCost
(
c74298287
.
spcost
)
...
...
script/c82293134.lua
View file @
80e0fd45
...
...
@@ -19,6 +19,7 @@ function c82293134.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetProperty
(
EFFECT_FLAG_CHAIN_UNIQUE
)
e2
:
SetCondition
(
c82293134
.
thcon
)
e2
:
SetCost
(
c82293134
.
thcost
)
e2
:
SetTarget
(
c82293134
.
thtg
)
e2
:
SetOperation
(
c82293134
.
thop
)
...
...
@@ -38,6 +39,9 @@ function c82293134.desop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
c
,
REASON_EFFECT
)
end
end
function
c82293134
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsReason
(
REASON_RETURN
)
end
function
c82293134
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
82293134
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
82293134
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
...
...
script/c83108603.lua
View file @
80e0fd45
...
...
@@ -45,6 +45,10 @@ function c83108603.matop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c83108603
.
matfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_HAND
,
0
,
1
,
1
,
tc
)
if
g
:
GetCount
()
>
0
then
local
mg
=
g
:
GetFirst
():
GetOverlayGroup
()
if
mg
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
mg
,
REASON_RULE
)
end
Duel
.
Overlay
(
tc
,
g
)
end
end
...
...
script/c9560338.lua
View file @
80e0fd45
...
...
@@ -53,6 +53,7 @@ function c9560338.effop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e1
)
end
if
ct
>=
4
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c9560338
.
filter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
...
...
@@ -61,6 +62,7 @@ function c9560338.effop(e,tp,eg,ep,ev,re,r,rp)
end
end
if
ct
>=
5
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c9560338
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
...
...
script/c96381979.lua
View file @
80e0fd45
...
...
@@ -28,7 +28,7 @@ function c96381979.initial_effect(c)
e3
:
SetDescription
(
aux
.
Stringid
(
96381979
,
2
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_CHAIN_UNIQUE
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetCondition
(
c96381979
.
spcon
)
e3
:
SetCost
(
c96381979
.
spcost
)
...
...
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