Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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-scripts
Commits
2da67847
Commit
2da67847
authored
Jul 24, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ebaf8503
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
14 deletions
+10
-14
c30757127.lua
c30757127.lua
+3
-3
c51345461.lua
c51345461.lua
+7
-11
No files found.
c30757127.lua
View file @
2da67847
...
...
@@ -25,15 +25,15 @@ end
function
c30757127
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
end
function
c30757127
.
cfilter
(
c
)
function
c30757127
.
cfilter
(
c
,
tp
)
return
c
:
IsDiscardable
()
and
Duel
.
IsExistingMatchingCard
(
c30757127
.
tgfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
c
)
end
function
c30757127
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0xc008
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGrave
()
end
function
c30757127
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c30757127
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
DiscardHand
(
tp
,
c30757127
.
cfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c30757127
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
tp
)
end
Duel
.
DiscardHand
(
tp
,
c30757127
.
cfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
nil
,
tp
)
end
function
c30757127
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
c51345461.lua
View file @
2da67847
...
...
@@ -15,9 +15,8 @@ end
function
c51345461
.
filter
(
c
,
rc
,
tid
)
return
c
:
IsReason
(
REASON_BATTLE
)
and
c
:
GetReasonCard
()
==
rc
and
c
:
GetTurnID
()
==
tid
and
not
c
:
IsForbidden
()
end
function
c51345461
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c51345461
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
,
e
:
GetHandler
(),
Duel
.
GetTurnCount
())
end
function
c51345461
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
g
=
Duel
.
GetMatchingGroup
(
c51345461
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
,
e
:
GetHandler
(),
Duel
.
GetTurnCount
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
g
,
g
:
GetCount
(),
0
,
0
)
end
...
...
@@ -26,13 +25,10 @@ function c51345461.eqop(e,tp,eg,ep,ev,re,r,rp)
if
ft
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
local
gc
=
Duel
.
GetMatchingGroup
(
c51345461
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
,
e
:
GetHandler
(),
Duel
.
GetTurnCount
())
if
gc
:
GetCount
()
==
0
then
return
end
if
gc
:
GetCount
()
>
ft
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
gc
=
gc
:
Select
(
tp
,
ft
,
ft
,
nil
)
end
local
tc
=
gc
:
GetFirst
()
local
g
=
Duel
.
GetMatchingGroup
(
c51345461
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
,
e
:
GetHandler
(),
Duel
.
GetTurnCount
())
if
g
:
GetCount
()
==
0
then
return
end
if
g
:
GetCount
()
>
ft
then
return
end
local
tc
=
g
:
GetFirst
()
while
tc
do
Duel
.
Equip
(
tp
,
tc
,
c
,
false
,
true
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -49,7 +45,7 @@ function c51345461.eqop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e2
:
SetValue
(
200
)
tc
:
RegisterEffect
(
e2
)
tc
=
g
c
:
GetNext
()
tc
=
g
:
GetNext
()
end
Duel
.
EquipComplete
()
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