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
262473de
Commit
262473de
authored
Feb 21, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msg
parent
13782cbd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
3 deletions
+16
-3
script/c48063985.lua
script/c48063985.lua
+2
-0
script/c69750546.lua
script/c69750546.lua
+2
-0
script/c83236601.lua
script/c83236601.lua
+5
-3
script/c84401683.lua
script/c84401683.lua
+2
-0
script/utility.lua
script/utility.lua
+5
-0
No files found.
script/c48063985.lua
View file @
262473de
...
@@ -26,6 +26,7 @@ function c48063985.initial_effect(c)
...
@@ -26,6 +26,7 @@ function c48063985.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCost
(
aux
.
msgcost
)
e3
:
SetTarget
(
c48063985
.
thtg
)
e3
:
SetTarget
(
c48063985
.
thtg
)
e3
:
SetOperation
(
c48063985
.
thop
)
e3
:
SetOperation
(
c48063985
.
thop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
@@ -94,6 +95,7 @@ end
...
@@ -94,6 +95,7 @@ end
function
c48063985
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c48063985
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToExtraAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToExtraAsCost
()
end
Duel
.
SendtoDeck
(
e
:
GetHandler
(),
nil
,
0
,
REASON_COST
)
Duel
.
SendtoDeck
(
e
:
GetHandler
(),
nil
,
0
,
REASON_COST
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
end
function
c48063985
.
filter1
(
c
,
e
,
tp
)
function
c48063985
.
filter1
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10b5
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10b5
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
script/c69750546.lua
View file @
262473de
...
@@ -7,6 +7,7 @@ function c69750546.initial_effect(c)
...
@@ -7,6 +7,7 @@ function c69750546.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetCondition
(
c69750546
.
condition
)
e1
:
SetCondition
(
c69750546
.
condition
)
e1
:
SetCost
(
aux
.
msgcost
)
e1
:
SetTarget
(
c69750546
.
target
)
e1
:
SetTarget
(
c69750546
.
target
)
e1
:
SetOperation
(
c69750546
.
operation
)
e1
:
SetOperation
(
c69750546
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -47,6 +48,7 @@ function c69750546.descost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -47,6 +48,7 @@ function c69750546.descost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
GetMatchingGroup
(
c69750546
.
costfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c69750546
.
costfilter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
end
function
c69750546
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c69750546
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
...
...
script/c83236601.lua
View file @
262473de
...
@@ -8,6 +8,7 @@ function c83236601.initial_effect(c)
...
@@ -8,6 +8,7 @@ function c83236601.initial_effect(c)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
83236601
)
e1
:
SetCountLimit
(
1
,
83236601
)
e1
:
SetCondition
(
c83236601
.
tgcon
)
e1
:
SetCondition
(
c83236601
.
tgcon
)
e1
:
SetCost
(
aux
.
msgcost
)
e1
:
SetTarget
(
c83236601
.
tgtg
)
e1
:
SetTarget
(
c83236601
.
tgtg
)
e1
:
SetOperation
(
c83236601
.
tgop
)
e1
:
SetOperation
(
c83236601
.
tgop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -24,6 +25,7 @@ function c83236601.initial_effect(c)
...
@@ -24,6 +25,7 @@ function c83236601.initial_effect(c)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
83236602
)
e3
:
SetCountLimit
(
1
,
83236602
)
e3
:
SetCondition
(
c83236601
.
thcon
)
e3
:
SetCondition
(
c83236601
.
thcon
)
e3
:
SetCost
(
aux
.
msgcost
)
e3
:
SetTarget
(
c83236601
.
thtg
)
e3
:
SetTarget
(
c83236601
.
thtg
)
e3
:
SetOperation
(
c83236601
.
thop
)
e3
:
SetOperation
(
c83236601
.
thop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
@@ -42,7 +44,7 @@ end
...
@@ -42,7 +44,7 @@ end
function
c83236601
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c83236601
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
while
tc
do
while
tc
do
tc
:
RegisterFlagEffect
(
83236601
,
RESET_EVENT
+
0x1
f
c0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
tc
:
RegisterFlagEffect
(
83236601
,
RESET_EVENT
+
0x1
e
c0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
tc
=
eg
:
GetNext
()
tc
=
eg
:
GetNext
()
end
end
end
end
...
@@ -64,10 +66,10 @@ function c83236601.tgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -64,10 +66,10 @@ function c83236601.tgop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c83236601
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c83236601
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RegisterFlagEffect
(
8323660
1
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
e
:
GetHandler
():
RegisterFlagEffect
(
8323660
2
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c83236601
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c83236601
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
8323660
1
)
>
0
and
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
return
e
:
GetHandler
():
GetFlagEffect
(
8323660
2
)
>
0
and
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
end
end
function
c83236601
.
filter
(
c
)
function
c83236601
.
filter
(
c
)
return
c
:
IsSetCard
(
0x95
)
and
c
:
GetType
()
==
TYPE_SPELL
+
TYPE_QUICKPLAY
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x95
)
and
c
:
GetType
()
==
TYPE_SPELL
+
TYPE_QUICKPLAY
and
c
:
IsAbleToHand
()
...
...
script/c84401683.lua
View file @
262473de
...
@@ -27,6 +27,7 @@ function c84401683.initial_effect(c)
...
@@ -27,6 +27,7 @@ function c84401683.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCost
(
aux
.
msgcost
)
e2
:
SetTarget
(
c84401683
.
destg
)
e2
:
SetTarget
(
c84401683
.
destg
)
e2
:
SetOperation
(
c84401683
.
desop
)
e2
:
SetOperation
(
c84401683
.
desop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
@@ -37,6 +38,7 @@ end
...
@@ -37,6 +38,7 @@ end
function
c84401683
.
negcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c84401683
.
negcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
end
function
c84401683
.
filter
(
c
)
function
c84401683
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetAttack
()
>
0
return
c
:
IsFaceup
()
and
c
:
GetAttack
()
>
0
...
...
script/utility.lua
View file @
262473de
...
@@ -1117,3 +1117,8 @@ function Auxiliary.chainreg(e,tp,eg,ep,ev,re,r,rp)
...
@@ -1117,3 +1117,8 @@ function Auxiliary.chainreg(e,tp,eg,ep,ev,re,r,rp)
e
:
GetHandler
():
RegisterFlagEffect
(
1
,
RESET_EVENT
+
0x1fc0000
+
RESET_CHAIN
,
0
,
1
)
e
:
GetHandler
():
RegisterFlagEffect
(
1
,
RESET_EVENT
+
0x1fc0000
+
RESET_CHAIN
,
0
,
1
)
end
end
end
end
--cost function for message sending
function
Auxiliary
.
msgcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
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