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
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-scripts
Commits
edadf34e
Commit
edadf34e
authored
May 08, 2019
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix counter
https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=5&fid=10361
parent
7bdf4ca0
Changes
36
Hide whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
77 additions
and
62 deletions
+77
-62
c13474291.lua
c13474291.lua
+3
-3
c14306092.lua
c14306092.lua
+4
-0
c15475415.lua
c15475415.lua
+1
-1
c15610297.lua
c15610297.lua
+1
-1
c15893860.lua
c15893860.lua
+2
-2
c22138839.lua
c22138839.lua
+1
-1
c2561846.lua
c2561846.lua
+3
-3
c27548199.lua
c27548199.lua
+4
-4
c3070049.lua
c3070049.lua
+1
-1
c34541863.lua
c34541863.lua
+3
-3
c35058588.lua
c35058588.lua
+2
-2
c35787450.lua
c35787450.lua
+4
-4
c4694209.lua
c4694209.lua
+3
-3
c51192573.lua
c51192573.lua
+3
-3
c56292140.lua
c56292140.lua
+1
-1
c5914184.lua
c5914184.lua
+4
-0
c61844784.lua
c61844784.lua
+1
-1
c63253763.lua
c63253763.lua
+2
-2
c63741331.lua
c63741331.lua
+2
-2
c67547370.lua
c67547370.lua
+1
-1
c68319538.lua
c68319538.lua
+3
-2
c69031175.lua
c69031175.lua
+1
-1
c69105797.lua
c69105797.lua
+1
-1
c69170557.lua
c69170557.lua
+2
-2
c71442223.lua
c71442223.lua
+2
-1
c73262676.lua
c73262676.lua
+3
-3
c73659078.lua
c73659078.lua
+3
-2
c74974229.lua
c74974229.lua
+2
-2
c75433814.lua
c75433814.lua
+2
-2
c78574395.lua
c78574395.lua
+1
-1
c83604828.lua
c83604828.lua
+1
-1
c88210105.lua
c88210105.lua
+1
-1
c8837932.lua
c8837932.lua
+1
-1
c90135989.lua
c90135989.lua
+1
-1
c91231901.lua
c91231901.lua
+3
-3
c91607976.lua
c91607976.lua
+4
-0
No files found.
c13474291.lua
View file @
edadf34e
...
...
@@ -53,10 +53,10 @@ function c13474291.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
function
c13474291
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
Is
Faceup
(
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
Is
Faceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
Is
CanAddCounter
(
0x1019
,
1
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
Is
CanAddCounter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
0x1019
,
1
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
Card
.
Is
Faceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
Card
.
Is
CanAddCounter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
0x1019
,
1
)
end
function
c13474291
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c14306092.lua
View file @
edadf34e
...
...
@@ -12,6 +12,7 @@ function c14306092.initial_effect(c)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCost
(
c14306092
.
ctcost
)
e1
:
SetTarget
(
c14306092
.
cttg
)
e1
:
SetOperation
(
c14306092
.
ctop
)
c
:
RegisterEffect
(
e1
)
--atkup
...
...
@@ -28,6 +29,9 @@ function c14306092.ctcost(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
c14306092
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanAddCounter
(
0x2e
,
1
)
end
end
function
c14306092
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
...
...
c15475415.lua
View file @
edadf34e
...
...
@@ -38,7 +38,7 @@ function c15475415.ctcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_SPECIAL
+
1
end
function
c15475415
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
Faceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
CanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
0x100e
,
1
)
if
g
:
GetCount
()
==
0
then
return
end
for
i
=
1
,
2
do
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
...
...
c15610297.lua
View file @
edadf34e
...
...
@@ -31,7 +31,7 @@ end
function
c15610297
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
if
chk
==
0
then
return
bc
and
bc
:
IsFaceup
()
and
bc
:
IsRelateToBattle
()
if
chk
==
0
then
return
bc
and
bc
:
IsFaceup
()
and
bc
:
IsRelateToBattle
()
and
bc
:
IsCanAddCounter
(
0x1038
,
1
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsRelateToBattle
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
end
end
...
...
c15893860.lua
View file @
edadf34e
...
...
@@ -22,12 +22,12 @@ function c15893860.ctfilter(c)
end
function
c15893860
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c15893860
.
ctfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
Is
Faceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
Card
.
Is
CanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
0x1015
,
1
)
end
end
function
c15893860
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c15893860
.
ctfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
ct
==
0
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
Faceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
CanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
0x1015
,
1
)
if
g
:
GetCount
()
==
0
then
return
end
for
i
=
1
,
ct
do
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_COUNTER
)
...
...
c22138839.lua
View file @
edadf34e
...
...
@@ -37,7 +37,7 @@ function c22138839.ccon(e,tp,eg,ep,ev,re,r,rp)
end
function
c22138839
.
cop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
Faceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
CanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
0x1041
,
1
)
local
tc
=
g
:
GetFirst
()
while
tc
do
tc
:
AddCounter
(
0x1041
,
1
)
...
...
c2561846.lua
View file @
edadf34e
...
...
@@ -11,10 +11,10 @@ function c2561846.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c2561846
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
Is
Faceup
(
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
Is
Faceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
Is
CanAddCounter
(
0x100e
,
1
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
Is
CanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
0x100e
,
1
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
Is
Faceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
Is
CanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
0x100e
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
g
,
1
,
0x100e
,
1
)
end
function
c2561846
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c27548199.lua
View file @
edadf34e
...
...
@@ -33,12 +33,12 @@ end
function
c27548199
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
function
c27548199
.
eqfilter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_LINK
)
and
c
:
CheckUniqueOnField
(
tp
)
and
not
c
:
IsForbidden
()
function
c27548199
.
eqfilter
(
c
,
tp
,
mc
)
return
c
:
IsType
(
TYPE_LINK
)
and
c
:
CheckUniqueOnField
(
tp
)
and
not
c
:
IsForbidden
()
and
mc
:
IsCanAddCounter
(
0x4b
,
c
:
GetLink
())
end
function
c27548199
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c27548199
.
eqfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c27548199
.
eqfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
,
e
:
GetHandler
()
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
nil
,
1
,
tp
,
0
)
end
...
...
@@ -47,7 +47,7 @@ function c27548199.eqop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
if
c
:
IsFacedown
()
or
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c27548199
.
eqfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c27548199
.
eqfilter
),
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tp
,
c
)
local
tc
=
g
:
GetFirst
()
if
tc
then
if
not
Duel
.
Equip
(
tp
,
tc
,
c
,
true
)
then
return
end
...
...
c3070049.lua
View file @
edadf34e
...
...
@@ -13,7 +13,7 @@ function c3070049.condition(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
end
function
c3070049
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
Faceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
CanAddCounter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
0x1015
,
1
)
local
tc
=
g
:
GetFirst
()
while
tc
do
tc
:
AddCounter
(
0x1015
,
1
,
REASON_EFFECT
)
...
...
c34541863.lua
View file @
edadf34e
...
...
@@ -22,10 +22,10 @@ function c34541863.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
==
tp
end
function
c34541863
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
Is
Faceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
Is
Faceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
Is
CanAddCounter
(
0x100e
,
1
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
Is
CanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
0x100e
,
1
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
Is
Faceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
Is
CanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
0x100e
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
g
,
1
,
0x100e
,
1
)
end
function
c34541863
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c35058588.lua
View file @
edadf34e
...
...
@@ -61,10 +61,10 @@ function c35058588.cfilter(c)
return
c
:
IsSetCard
(
0xe3
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
end
function
c35058588
.
tgfilter
(
c
,
e
)
return
c
:
IsFaceup
()
and
c
:
IsCanBeEffectTarget
(
e
)
return
c
:
IsFaceup
()
and
c
:
IsCanBeEffectTarget
(
e
)
and
c
:
IsCanAddCounter
(
0x1038
,
1
)
end
function
c35058588
.
countertg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
Is
Faceup
(
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
Is
CanAddCounter
(
0x1038
,
1
)
end
local
tg
=
Duel
.
GetMatchingGroup
(
c35058588
.
tgfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
e
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
and
tg
:
GetCount
()
>
0
and
Duel
.
IsExistingMatchingCard
(
c35058588
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
c35787450.lua
View file @
edadf34e
...
...
@@ -5,16 +5,16 @@ function c35787450.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_COUNTER
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
Set
Condition
(
c35787450
.
addcon
)
e1
:
Set
Target
(
c35787450
.
addtg
)
e1
:
SetOperation
(
c35787450
.
addc
)
c
:
RegisterEffect
(
e1
)
end
function
c35787450
.
check
(
tp
)
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
5
)
return
tc
and
tc
:
IsFaceup
()
and
tc
:
IsCode
(
75041269
)
return
tc
and
tc
:
IsFaceup
()
and
tc
:
IsCode
(
75041269
)
and
tc
:
IsCanAddCounter
(
0x1b
,
2
)
end
function
c35787450
.
add
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
c35787450
.
check
(
0
)
or
c35787450
.
check
(
1
)
function
c35787450
.
add
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
c35787450
.
check
(
0
)
or
c35787450
.
check
(
1
)
end
end
function
c35787450
.
addc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
5
)
...
...
c4694209.lua
View file @
edadf34e
...
...
@@ -45,11 +45,11 @@ function c4694209.attackup(e,c)
return
c
:
GetCounter
(
0x1021
)
*
300
end
function
c4694209
.
addct2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
tp
)
and
chkc
:
Is
Faceup
(
)
end
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
tp
)
and
chkc
:
Is
CanAddCounter
(
0x1021
,
1
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0x1021
,
1
,
REASON_EFFECT
)
and
Duel
.
IsExistingTarget
(
Card
.
Is
Faceup
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
()
)
end
and
Duel
.
IsExistingTarget
(
Card
.
Is
CanAddCounter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
(),
0x1021
,
1
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
4694209
,
1
))
Duel
.
SelectTarget
(
tp
,
Card
.
Is
Faceup
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
()
)
Duel
.
SelectTarget
(
tp
,
Card
.
Is
CanAddCounter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
(),
0x1021
,
1
)
end
function
c4694209
.
addc2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c51192573.lua
View file @
edadf34e
...
...
@@ -51,10 +51,10 @@ function c51192573.otop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
function
c51192573
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
Is
Faceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
Is
Faceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
Is
CanAddCounter
(
0x100e
,
1
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
Is
CanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
0x100e
,
1
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
Is
Faceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
Is
CanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
0x100e
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
g
,
1
,
0x100e
,
1
)
end
function
c51192573
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c56292140.lua
View file @
edadf34e
...
...
@@ -40,7 +40,7 @@ function c56292140.ctcost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
c56292140
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanAddCounter
(
0x40
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
1
,
0
,
0x40
)
end
function
c56292140
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c5914184.lua
View file @
edadf34e
...
...
@@ -6,12 +6,16 @@ function c5914184.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_DAMAGE
)
e1
:
SetCondition
(
c5914184
.
actcon
)
e1
:
SetTarget
(
c5914184
.
acttg
)
e1
:
SetOperation
(
c5914184
.
actop
)
c
:
RegisterEffect
(
e1
)
end
function
c5914184
.
actcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
tp
and
1
-
tp
==
rp
and
ev
>=
1000
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
end
function
c5914184
.
acttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanAddCounter
(
0x1a
,
math.floor
(
ev
/
1000
))
end
end
function
c5914184
.
actop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
...
...
c61844784.lua
View file @
edadf34e
...
...
@@ -11,7 +11,7 @@ function c61844784.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c61844784
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SPELL
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsCanAddCounter
(
0x102a
,
1
)
end
function
c61844784
.
addct
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_SZONE
)
and
chkc
:
IsControler
(
tp
)
and
c61844784
.
filter
(
chkc
)
and
chkc
~=
e
:
GetHandler
()
end
...
...
c63253763.lua
View file @
edadf34e
...
...
@@ -43,10 +43,10 @@ function c63253763.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
RemoveCounter
(
tp
,
1
,
1
,
0x100e
,
2
,
REASON_COST
)
end
function
c63253763
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
Is
Faceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
Is
CanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
0x100e
,
1
)
end
end
function
c63253763
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
Faceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
CanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
0x100e
,
1
)
local
tc
=
g
:
GetFirst
()
while
tc
do
tc
:
AddCounter
(
0x100e
,
1
)
...
...
c63741331.lua
View file @
edadf34e
...
...
@@ -20,9 +20,9 @@ function c63741331.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c63741331
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
Is
Faceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
2
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
Is
CanAddCounter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
2
,
nil
,
0x1019
,
3
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
Card
.
Is
Faceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
Card
.
Is
CanAddCounter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
0x1019
,
3
)
end
function
c63741331
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c67547370.lua
View file @
edadf34e
...
...
@@ -70,7 +70,7 @@ function c67547370.countcost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RegisterEffect
(
e1
)
end
function
c67547370
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsLevel
(
1
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsLevel
(
1
)
and
c
:
IsCanAddCounter
(
0x1039
,
1
)
end
function
c67547370
.
counttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c67547370
.
filter
(
chkc
)
end
...
...
c68319538.lua
View file @
edadf34e
...
...
@@ -32,7 +32,8 @@ function c68319538.filter(c)
end
function
c68319538
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
c68319538
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c68319538
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c68319538
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCanAddCounter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
0x100e
,
1
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c68319538
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
16
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
...
...
@@ -42,7 +43,7 @@ function c68319538.operation(e,tp,eg,ep,ev,re,r,rp)
local
rg
=
tg
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
Duel
.
SendtoHand
(
rg
,
nil
,
REASON_EFFECT
)
local
ct
=
rg
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_HAND
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
Faceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
CanAddCounter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
0x100e
,
1
)
if
ct
==
0
or
g
:
GetCount
()
==
0
then
return
end
for
i
=
1
,
ct
do
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_COUNTER
)
...
...
c69031175.lua
View file @
edadf34e
...
...
@@ -35,7 +35,7 @@ function c69031175.initial_effect(c)
end
function
c69031175
.
condition1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
atg
=
Duel
.
GetAttackTarget
()
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
and
atg
and
atg
:
IsRelateToBattle
()
and
atg
:
GetCounter
(
0x1002
)
==
0
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
and
atg
and
atg
:
IsRelateToBattle
()
and
atg
:
GetCounter
(
0x1002
)
==
0
and
atg
:
IsCanAddCounter
(
0x1002
,
1
)
end
function
c69031175
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
atg
=
Duel
.
GetAttackTarget
()
...
...
c69105797.lua
View file @
edadf34e
...
...
@@ -53,7 +53,7 @@ function c69105797.ccon(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsPreviousPosition
(
POS_FACEUP
)
end
function
c69105797
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
return
c
:
IsFaceup
()
and
c
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
and
c
:
IsCanAddCounter
(
0x1041
,
1
)
end
function
c69105797
.
cop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c69170557.lua
View file @
edadf34e
...
...
@@ -51,10 +51,10 @@ function c69170557.ctcost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
c69170557
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
Is
Faceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
Is
CanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
0x1024
,
1
)
end
end
function
c69170557
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
Faceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
CanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
0x1024
,
1
)
local
tc
=
g
:
GetFirst
()
while
tc
do
tc
:
AddCounter
(
0x1024
,
1
)
...
...
c71442223.lua
View file @
edadf34e
...
...
@@ -21,7 +21,8 @@ function c71442223.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
at
=
Duel
.
GetAttacker
()
if
chkc
then
return
chkc
==
at
end
if
chk
==
0
then
return
at
:
IsOnField
()
and
at
:
IsCanBeEffectTarget
(
e
)
and
Duel
.
IsExistingMatchingCard
(
c71442223
.
spfilter1
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c71442223
.
spfilter1
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsCanAddCounter
(
tp
)
end
Duel
.
SetTargetCard
(
at
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
...
...
c73262676.lua
View file @
edadf34e
...
...
@@ -14,9 +14,9 @@ function c73262676.filter(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xc
)
and
c
:
GetLevel
()
>
0
end
function
c73262676
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c73262676
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c73262676
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c73262676
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
Is
Faceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
Card
.
Is
CanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
0x100e
,
1
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c73262676
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
...
...
@@ -26,7 +26,7 @@ function c73262676.operation(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
lv
=
tc
:
GetLevel
()
if
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
==
0
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
Faceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
CanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
nil
,
0x100e
,
1
)
if
g
:
GetCount
()
==
0
then
return
end
for
i
=
1
,
lv
do
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
c73659078.lua
View file @
edadf34e
...
...
@@ -31,10 +31,11 @@ function c73659078.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
c73659078
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c73659078
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c73659078
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsCanAddCounter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
0x1015
,
1
)
end
end
function
c73659078
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
Faceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
CanAddCounter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
0x1015
,
1
)
if
g
:
GetCount
()
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONFIRM
)
local
cg
=
Duel
.
SelectMatchingCard
(
tp
,
c73659078
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
99
,
nil
)
...
...
c74974229.lua
View file @
edadf34e
...
...
@@ -40,12 +40,12 @@ function c74974229.ctcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
g
,
REASON_COST
+
REASON_DISCARD
)
end
function
c74974229
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
Is
Faceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
Is
CanAddCounter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
0x100e
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
e
:
GetLabel
(),
0
,
0x100e
)
end
function
c74974229
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
e
:
GetLabel
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
Faceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
CanAddCounter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
0x100e
,
1
)
if
g
:
GetCount
()
==
0
then
return
end
for
i
=
1
,
ct
do
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_COUNTER
)
...
...
c75433814.lua
View file @
edadf34e
...
...
@@ -31,10 +31,10 @@ function c75433814.ctcost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
c75433814
.
cttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
Is
Faceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
()
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
Is
CanAddCounter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
(),
0x1024
,
1
)
end
end
function
c75433814
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
Faceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
aux
.
ExceptThisCard
(
e
)
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
CanAddCounter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
aux
.
ExceptThisCard
(
e
),
0x1024
,
1
)
local
tc
=
g
:
GetFirst
()
while
tc
do
tc
:
AddCounter
(
0x1024
,
1
)
...
...
c78574395.lua
View file @
edadf34e
...
...
@@ -35,7 +35,7 @@ function c78574395.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetLabel
(
ct
)
end
function
c78574395
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanAddCounter
(
0x32
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
e
:
GetLabel
(),
0
,
0x32
)
end
function
c78574395
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c83604828.lua
View file @
edadf34e
...
...
@@ -26,7 +26,7 @@ function c83604828.initial_effect(c)
end
function
c83604828
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
lv
=
e
:
GetHandler
():
GetBattleTarget
():
GetLevel
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
Faceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
CanAddCounter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
0x1019
,
1
)
if
g
:
GetCount
()
==
0
then
return
end
for
i
=
1
,
lv
do
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_COUNTER
)
...
...
c88210105.lua
View file @
edadf34e
...
...
@@ -32,7 +32,7 @@ function c88210105.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
DiscardHand
(
tp
,
c88210105
.
costfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
function
c88210105
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelAbove
(
1
)
return
c
:
IsFaceup
()
and
c
:
IsLevelAbove
(
1
)
and
c
:
IsCanAddCounter
(
0x1019
,
c
:
GetLevel
())
end
function
c88210105
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c88210105
.
filter
(
chkc
)
end
...
...
c8837932.lua
View file @
edadf34e
...
...
@@ -35,7 +35,7 @@ function c8837932.condition(e,tp,eg,ep,ev,re,r,rp)
end
function
c8837932
.
spfilter
(
c
,
e
,
tp
,
tid
)
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
GetTurnID
()
==
tid
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
1
-
tp
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
1
-
tp
)
and
Duel
.
IsCanAddCounter
(
tp
,
0x1038
,
1
,
c
)
end
function
c8837932
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
tid
=
Duel
.
GetTurnCount
()
...
...
c90135989.lua
View file @
edadf34e
...
...
@@ -21,7 +21,7 @@ function c90135989.condition(e,tp,eg,ep,ev,re,r,rp)
end
function
c90135989
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
Faceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
Is
CanAddCounter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
0x1019
,
1
)
local
tc
=
g
:
GetFirst
()
while
tc
do
tc
:
AddCounter
(
0x1019
,
1
)
...
...
c91231901.lua
View file @
edadf34e
...
...
@@ -25,11 +25,11 @@ function c91231901.filter(c)
return
c
:
GetLevel
()
>
0
and
c
:
IsSetCard
(
0xc
)
and
c
:
IsAbleToGrave
()
end
function
c91231901
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
Is
Faceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
Is
CanAddCounter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
0x100e
,
1
)
and
Duel
.
IsExistingMatchingCard
(
c91231901
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
Is
Faceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
Is
CanAddCounter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
0x100e
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
g
,
1
,
0x100e
,
1
)
end
...
...
c91607976.lua
View file @
edadf34e
...
...
@@ -18,6 +18,7 @@ function c91607976.initial_effect(c)
e2
:
SetCountLimit
(
1
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
c91607976
.
cond1
)
e2
:
SetTarget
(
c91607976
.
tgd1
)
e2
:
SetOperation
(
c91607976
.
opd1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -42,6 +43,9 @@ end
function
c91607976
.
cond1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsDisabled
()
and
e
:
GetHandler
():
IsDefensePos
()
end
function
c91607976
.
tgd1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanAddCounter
(
0x8
,
1
)
end
end
function
c91607976
.
opd1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
e
:
GetHandler
():
AddCounter
(
0x8
,
1
)
...
...
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