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
73e1b5d2
Commit
73e1b5d2
authored
Nov 29, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
counter
parent
2f46959e
Changes
55
Hide whitespace changes
Inline
Side-by-side
Showing
55 changed files
with
60 additions
and
60 deletions
+60
-60
c11501629.lua
c11501629.lua
+2
-2
c11741041.lua
c11741041.lua
+1
-1
c13478040.lua
c13478040.lua
+1
-1
c14148099.lua
c14148099.lua
+1
-1
c14306092.lua
c14306092.lua
+1
-1
c15317640.lua
c15317640.lua
+1
-1
c17601919.lua
c17601919.lua
+1
-1
c20630765.lua
c20630765.lua
+1
-1
c22790789.lua
c22790789.lua
+1
-1
c23740893.lua
c23740893.lua
+2
-2
c25518020.lua
c25518020.lua
+1
-1
c26493435.lua
c26493435.lua
+1
-1
c27918963.lua
c27918963.lua
+1
-1
c33695750.lua
c33695750.lua
+1
-1
c33904024.lua
c33904024.lua
+1
-1
c35787450.lua
c35787450.lua
+2
-2
c36099620.lua
c36099620.lua
+1
-1
c36625827.lua
c36625827.lua
+2
-2
c39892082.lua
c39892082.lua
+1
-1
c4404099.lua
c4404099.lua
+1
-1
c44954628.lua
c44954628.lua
+1
-1
c4694209.lua
c4694209.lua
+1
-1
c47408488.lua
c47408488.lua
+1
-1
c52518793.lua
c52518793.lua
+1
-1
c52665542.lua
c52665542.lua
+1
-1
c56074358.lua
c56074358.lua
+1
-1
c56111151.lua
c56111151.lua
+1
-1
c57543573.lua
c57543573.lua
+1
-1
c5914184.lua
c5914184.lua
+1
-1
c5973663.lua
c5973663.lua
+1
-1
c61156777.lua
c61156777.lua
+1
-1
c63259351.lua
c63259351.lua
+1
-1
c64163367.lua
c64163367.lua
+1
-1
c67234805.lua
c67234805.lua
+1
-1
c71071546.lua
c71071546.lua
+1
-1
c7200041.lua
c7200041.lua
+1
-1
c74329404.lua
c74329404.lua
+1
-1
c74402414.lua
c74402414.lua
+1
-1
c75041269.lua
c75041269.lua
+1
-1
c75304793.lua
c75304793.lua
+1
-1
c75937826.lua
c75937826.lua
+1
-1
c78009994.lua
c78009994.lua
+1
-1
c78574395.lua
c78574395.lua
+1
-1
c8062132.lua
c8062132.lua
+1
-1
c81057455.lua
c81057455.lua
+1
-1
c81524977.lua
c81524977.lua
+1
-1
c81788994.lua
c81788994.lua
+1
-1
c85541675.lua
c85541675.lua
+1
-1
c85754829.lua
c85754829.lua
+1
-1
c91438994.lua
c91438994.lua
+2
-2
c91607976.lua
c91607976.lua
+1
-1
c94243005.lua
c94243005.lua
+1
-1
c94807487.lua
c94807487.lua
+1
-1
c97151365.lua
c97151365.lua
+1
-1
c99342953.lua
c99342953.lua
+1
-1
No files found.
c11501629.lua
View file @
73e1b5d2
...
...
@@ -35,7 +35,7 @@ function c11501629.ctfilter(c,tp)
end
function
c11501629
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
eg
:
FilterCount
(
c11501629
.
ctfilter
,
nil
,
tp
)
if
ct
>
0
and
e
:
GetHandler
():
IsCanAddCounter
(
0x2d
,
ct
)
then
if
ct
>
0
and
e
:
GetHandler
():
IsCanAddCounter
(
0x2d
+
COUNTER_NEED_ENABLE
,
ct
)
then
e
:
SetLabel
(
ct
)
return
true
else
...
...
@@ -43,7 +43,7 @@ function c11501629.ctcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c11501629
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x2d
,
e
:
GetLabel
())
e
:
GetHandler
():
AddCounter
(
0x2d
+
COUNTER_NEED_ENABLE
,
e
:
GetLabel
())
end
function
c11501629
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
...
...
c11741041.lua
View file @
73e1b5d2
...
...
@@ -27,7 +27,7 @@ function c11741041.initial_effect(c)
end
function
c11741041
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetAttacker
():
IsControler
(
tp
)
then
e
:
GetHandler
():
AddCounter
(
0xc
,
1
)
e
:
GetHandler
():
AddCounter
(
0xc
+
COUNTER_NEED_ENABLE
,
1
)
end
end
function
c11741041
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c13478040.lua
View file @
73e1b5d2
...
...
@@ -24,7 +24,7 @@ function c13478040.cfilter(c,tp)
end
function
c13478040
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
c13478040
.
cfilter
,
1
,
nil
,
1
-
tp
)
then
e
:
GetHandler
():
AddCounter
(
0x17
,
1
)
e
:
GetHandler
():
AddCounter
(
0x17
+
COUNTER_NEED_ENABLE
,
1
)
end
end
function
c13478040
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c14148099.lua
View file @
73e1b5d2
...
...
@@ -40,7 +40,7 @@ function c14148099.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c14148099
.
addc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
e
:
GetHandler
():
AddCounter
(
0x1f
,
3
)
e
:
GetHandler
():
AddCounter
(
0x1f
+
COUNTER_NEED_ENABLE
,
3
)
end
end
function
c14148099
.
rctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c14306092.lua
View file @
73e1b5d2
...
...
@@ -30,7 +30,7 @@ end
function
c14306092
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
c
:
AddCounter
(
0x2e
,
1
)
c
:
AddCounter
(
0x2e
+
COUNTER_NEED_ENABLE
,
1
)
end
end
function
c14306092
.
atkcon
(
e
)
...
...
c15317640.lua
View file @
73e1b5d2
...
...
@@ -41,7 +41,7 @@ function c15317640.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c15317640
.
addc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
e
:
GetHandler
():
AddCounter
(
0x1f
,
2
)
e
:
GetHandler
():
AddCounter
(
0x1f
+
COUNTER_NEED_ENABLE
,
2
)
end
end
function
c15317640
.
rctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c17601919.lua
View file @
73e1b5d2
...
...
@@ -57,7 +57,7 @@ function c17601919.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c17601919
.
addc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
e
:
GetHandler
():
AddCounter
(
0x2f
,
1
)
e
:
GetHandler
():
AddCounter
(
0x2f
+
COUNTER_NEED_ENABLE
,
1
)
end
end
function
c17601919
.
adval
(
e
,
c
)
...
...
c20630765.lua
View file @
73e1b5d2
...
...
@@ -40,7 +40,7 @@ end
function
c20630765
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
re
:
GetHandler
()
if
re
:
IsActiveType
(
TYPE_MONSTER
)
and
c
~=
e
:
GetHandler
()
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x16
,
1
)
e
:
GetHandler
():
AddCounter
(
0x16
+
COUNTER_NEED_ENABLE
,
1
)
end
end
function
c20630765
.
defup
(
e
,
c
)
...
...
c22790789.lua
View file @
73e1b5d2
...
...
@@ -51,7 +51,7 @@ function c22790789.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c22790789
.
addc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
e
:
GetHandler
():
AddCounter
(
0x1f
,
3
)
e
:
GetHandler
():
AddCounter
(
0x1f
+
COUNTER_NEED_ENABLE
,
3
)
end
end
function
c22790789
.
rctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c23740893.lua
View file @
73e1b5d2
...
...
@@ -25,7 +25,7 @@ function c23740893.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c23740893
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
27918963
)
and
c
:
IsCanAddCounter
(
0x33
,
3
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
27918963
)
and
c
:
IsCanAddCounter
(
0x33
+
COUNTER_NEED_ENABLE
,
3
)
end
function
c23740893
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsOnField
()
and
c23740893
.
filter
(
chkc
)
end
...
...
@@ -37,7 +37,7 @@ end
function
c23740893
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
tc
:
AddCounter
(
0x33
,
3
)
tc
:
AddCounter
(
0x33
+
COUNTER_NEED_ENABLE
,
3
)
end
end
function
c23740893
.
sumcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c25518020.lua
View file @
73e1b5d2
...
...
@@ -42,7 +42,7 @@ function c25518020.ctcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c25518020
.
ctfilter
,
1
,
nil
)
end
function
c25518020
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x1d
,
2
)
e
:
GetHandler
():
AddCounter
(
0x1d
+
COUNTER_NEED_ENABLE
,
2
)
end
function
c25518020
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
...
...
c26493435.lua
View file @
73e1b5d2
...
...
@@ -44,7 +44,7 @@ function c26493435.ctcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c26493435
.
ctfilter
,
1
,
nil
,
tp
)
end
function
c26493435
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x30
,
1
)
e
:
GetHandler
():
AddCounter
(
0x30
+
COUNTER_NEED_ENABLE
,
1
)
end
function
c26493435
.
val
(
e
,
c
)
return
e
:
GetHandler
():
GetCounter
(
0x30
)
*
200
...
...
c27918963.lua
View file @
73e1b5d2
...
...
@@ -34,7 +34,7 @@ function c27918963.ctcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c27918963
.
cfilter
,
1
,
nil
)
end
function
c27918963
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x33
,
1
)
e
:
GetHandler
():
AddCounter
(
0x33
+
COUNTER_NEED_ENABLE
,
1
)
end
function
c27918963
.
filter1
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xb3
)
...
...
c33695750.lua
View file @
73e1b5d2
...
...
@@ -35,7 +35,7 @@ function c33695750.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c33695750
.
addc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
e
:
GetHandler
():
AddCounter
(
0x27
,
2
)
e
:
GetHandler
():
AddCounter
(
0x27
+
COUNTER_NEED_ENABLE
,
2
)
end
end
function
c33695750
.
attackup
(
e
,
c
)
...
...
c33904024.lua
View file @
73e1b5d2
...
...
@@ -26,7 +26,7 @@ function c33904024.initial_effect(c)
end
function
c33904024
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
ep
==
tp
and
r
==
REASON_RULE
then
e
:
GetHandler
():
AddCounter
(
0xd
,
1
)
e
:
GetHandler
():
AddCounter
(
0xd
+
COUNTER_NEED_ENABLE
,
1
)
end
end
function
c33904024
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c35787450.lua
View file @
73e1b5d2
...
...
@@ -19,10 +19,10 @@ end
function
c35787450
.
addc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
5
)
if
tc
and
tc
:
IsFaceup
()
and
tc
:
IsCode
(
75041269
)
then
tc
:
AddCounter
(
0x1b
,
2
)
tc
:
AddCounter
(
0x1b
+
COUNTER_NEED_ENABLE
,
2
)
end
tc
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_SZONE
,
5
)
if
tc
and
tc
:
IsFaceup
()
and
tc
:
IsCode
(
75041269
)
then
tc
:
AddCounter
(
0x1b
,
2
)
tc
:
AddCounter
(
0x1b
+
COUNTER_NEED_ENABLE
,
2
)
end
end
c36099620.lua
View file @
73e1b5d2
...
...
@@ -39,7 +39,7 @@ function c36099620.cfilter(c,tp)
end
function
c36099620
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
c36099620
.
cfilter
,
1
,
nil
,
tp
)
then
e
:
GetHandler
():
AddCounter
(
0x5
,
1
)
e
:
GetHandler
():
AddCounter
(
0x5
+
COUNTER_NEED_ENABLE
,
1
)
end
end
function
c36099620
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c36625827.lua
View file @
73e1b5d2
...
...
@@ -23,11 +23,11 @@ end
function
c36625827
.
addc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
5
)
if
tc
and
tc
:
IsFaceup
()
and
tc
:
IsCode
(
75041269
)
then
tc
:
AddCounter
(
0x1b
,
1
)
tc
:
AddCounter
(
0x1b
+
COUNTER_NEED_ENABLE
,
1
)
end
tc
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_SZONE
,
5
)
if
tc
and
tc
:
IsFaceup
()
and
tc
:
IsCode
(
75041269
)
then
tc
:
AddCounter
(
0x1b
,
1
)
tc
:
AddCounter
(
0x1b
+
COUNTER_NEED_ENABLE
,
1
)
end
end
function
c36625827
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c39892082.lua
View file @
73e1b5d2
...
...
@@ -33,7 +33,7 @@ function c39892082.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c39892082
.
addc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
e
:
GetHandler
():
AddCounter
(
0x29
,
1
)
e
:
GetHandler
():
AddCounter
(
0x29
+
COUNTER_NEED_ENABLE
,
1
)
end
end
function
c39892082
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c4404099.lua
View file @
73e1b5d2
...
...
@@ -26,7 +26,7 @@ function c4404099.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c4404099
.
addc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
e
:
GetHandler
():
AddCounter
(
0x23
,
1
)
e
:
GetHandler
():
AddCounter
(
0x23
+
COUNTER_NEED_ENABLE
,
1
)
end
end
function
c4404099
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c44954628.lua
View file @
73e1b5d2
...
...
@@ -52,7 +52,7 @@ function c44954628.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c44954628
.
addc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
e
:
GetHandler
():
AddCounter
(
0x1f
,
3
)
e
:
GetHandler
():
AddCounter
(
0x1f
+
COUNTER_NEED_ENABLE
,
3
)
end
end
function
c44954628
.
rctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c4694209.lua
View file @
73e1b5d2
...
...
@@ -38,7 +38,7 @@ function c4694209.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c4694209
.
addc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
e
:
GetHandler
():
AddCounter
(
0x21
,
1
)
e
:
GetHandler
():
AddCounter
(
0x21
+
COUNTER_NEED_ENABLE
,
1
)
end
end
function
c4694209
.
attackup
(
e
,
c
)
...
...
c47408488.lua
View file @
73e1b5d2
...
...
@@ -40,7 +40,7 @@ function c47408488.eqcon(e,tp,eg,ep,ev,re,r,rp)
return
tc
:
IsFaceup
()
and
tc
:
IsSetCard
(
0x1034
)
end
function
c47408488
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x6
,
1
)
e
:
GetHandler
():
AddCounter
(
0x6
+
COUNTER_NEED_ENABLE
,
1
)
end
function
c47408488
.
plcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
...
...
c52518793.lua
View file @
73e1b5d2
...
...
@@ -46,7 +46,7 @@ function c52518793.accon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c52518793
.
cfilter
,
1
,
nil
,
tp
)
end
function
c52518793
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x7
,
1
)
e
:
GetHandler
():
AddCounter
(
0x7
+
COUNTER_NEED_ENABLE
,
1
)
end
function
c52518793
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsReason
(
REASON_RULE
)
...
...
c52665542.lua
View file @
73e1b5d2
...
...
@@ -73,7 +73,7 @@ function c52665542.accon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c52665542
.
cfilter
,
1
,
nil
,
tp
)
end
function
c52665542
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x5
,
1
)
e
:
GetHandler
():
AddCounter
(
0x5
+
COUNTER_NEED_ENABLE
,
1
)
end
function
c52665542
.
dfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_ONFIELD
)
...
...
c56074358.lua
View file @
73e1b5d2
...
...
@@ -46,7 +46,7 @@ function c56074358.accon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c56074358
.
cfilter
,
1
,
nil
)
end
function
c56074358
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x8
,
1
)
e
:
GetHandler
():
AddCounter
(
0x8
+
COUNTER_NEED_ENABLE
,
1
)
end
function
c56074358
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c56111151.lua
View file @
73e1b5d2
...
...
@@ -39,7 +39,7 @@ end
function
c56111151
.
counter
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
eg
:
FilterCount
(
c56111151
.
cfilter
,
nil
)
if
ct
>
0
then
e
:
GetHandler
():
AddCounter
(
0x37
,
ct
)
e
:
GetHandler
():
AddCounter
(
0x37
+
COUNTER_NEED_ENABLE
,
ct
)
end
end
function
c56111151
.
thfilter
(
c
)
...
...
c57543573.lua
View file @
73e1b5d2
...
...
@@ -47,7 +47,7 @@ function c57543573.accon3(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c57543573
.
filter3
,
1
,
nil
,
tp
)
end
function
c57543573
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0xf
,
1
)
e
:
GetHandler
():
AddCounter
(
0xf
+
COUNTER_NEED_ENABLE
,
1
)
end
function
c57543573
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0xf
,
2
,
REASON_COST
)
end
...
...
c5914184.lua
View file @
73e1b5d2
...
...
@@ -15,7 +15,7 @@ function c5914184.actop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
local
ct
=
math.floor
(
ev
/
1000
)
c
:
AddCounter
(
0x1a
,
ct
)
c
:
AddCounter
(
0x1a
+
COUNTER_NEED_ENABLE
,
ct
)
--damage
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
5914184
,
0
))
...
...
c5973663.lua
View file @
73e1b5d2
...
...
@@ -54,7 +54,7 @@ function c5973663.ctcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c5973663
.
ctfilter
,
1
,
nil
)
end
function
c5973663
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x18
,
1
)
e
:
GetHandler
():
AddCounter
(
0x18
+
COUNTER_NEED_ENABLE
,
1
)
end
function
c5973663
.
cost1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanRemoveCounter
(
tp
,
0x18
,
1
,
REASON_COST
)
end
...
...
c61156777.lua
View file @
73e1b5d2
...
...
@@ -31,7 +31,7 @@ end
function
c61156777
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
c
:
AddCounter
(
0x34
,
1
)
c
:
AddCounter
(
0x34
+
COUNTER_NEED_ENABLE
,
1
)
end
end
function
c61156777
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c63259351.lua
View file @
73e1b5d2
...
...
@@ -30,7 +30,7 @@ function c63259351.ctfilter(c,tp)
end
function
c63259351
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
c63259351
.
ctfilter
,
1
,
nil
,
tp
)
then
e
:
GetHandler
():
AddCounter
(
0x14
,
2
)
e
:
GetHandler
():
AddCounter
(
0x14
+
COUNTER_NEED_ENABLE
,
2
)
end
end
function
c63259351
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c64163367.lua
View file @
73e1b5d2
...
...
@@ -22,7 +22,7 @@ function c64163367.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c64163367
.
ctop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0xe
,
1
)
e
:
GetHandler
():
AddCounter
(
0xe
+
COUNTER_NEED_ENABLE
,
1
)
end
function
c64163367
.
ctcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
e
:
GetHandler
():
GetCounter
(
0xe
)
...
...
c67234805.lua
View file @
73e1b5d2
...
...
@@ -42,7 +42,7 @@ end
function
c67234805
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
re
:
GetHandler
()
if
c
:
IsType
(
TYPE_MONSTER
)
then
e
:
GetHandler
():
AddCounter
(
0x16
,
1
)
e
:
GetHandler
():
AddCounter
(
0x16
+
COUNTER_NEED_ENABLE
,
1
)
end
end
function
c67234805
.
discon
(
e
)
...
...
c71071546.lua
View file @
73e1b5d2
...
...
@@ -32,7 +32,7 @@ end
function
c71071546
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
c
:
AddCounter
(
0x2c
,
1
)
c
:
AddCounter
(
0x2c
+
COUNTER_NEED_ENABLE
,
1
)
end
end
function
c71071546
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c7200041.lua
View file @
73e1b5d2
...
...
@@ -32,7 +32,7 @@ function c7200041.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c7200041
.
addc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
e
:
GetHandler
():
AddCounter
(
0x26
,
2
)
e
:
GetHandler
():
AddCounter
(
0x26
+
COUNTER_NEED_ENABLE
,
2
)
end
end
function
c7200041
.
attackup
(
e
,
c
)
...
...
c74329404.lua
View file @
73e1b5d2
...
...
@@ -36,7 +36,7 @@ function c74329404.ctcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c74329404
.
ctfilter
,
1
,
nil
,
tp
)
end
function
c74329404
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x1c
,
1
)
e
:
GetHandler
():
AddCounter
(
0x1c
+
COUNTER_NEED_ENABLE
,
1
)
end
function
c74329404
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
...
...
c74402414.lua
View file @
73e1b5d2
...
...
@@ -75,7 +75,7 @@ function c74402414.activate(e,tp,eg,ep,ev,re,r,rp)
end
function
c74402414
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
rp
~=
tp
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x25
,
1
)
e
:
GetHandler
():
AddCounter
(
0x25
+
COUNTER_NEED_ENABLE
,
1
)
end
end
function
c74402414
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c75041269.lua
View file @
73e1b5d2
...
...
@@ -43,7 +43,7 @@ function c75041269.ctcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
~=
tp
end
function
c75041269
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x1b
,
1
)
e
:
GetHandler
():
AddCounter
(
0x1b
+
COUNTER_NEED_ENABLE
,
1
)
end
function
c75041269
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c75304793.lua
View file @
73e1b5d2
...
...
@@ -36,7 +36,7 @@ function c75304793.ctcon(e,tp,eg,ep,ev,re,r,rp)
return
re
and
re
:
GetHandler
():
IsSetCard
(
0x1066
)
and
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
function
c75304793
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x35
,
1
)
e
:
GetHandler
():
AddCounter
(
0x35
+
COUNTER_NEED_ENABLE
,
1
)
end
function
c75304793
.
atkval
(
e
,
c
)
return
e
:
GetHandler
():
GetCounter
(
0x35
)
*
100
...
...
c75937826.lua
View file @
73e1b5d2
...
...
@@ -48,7 +48,7 @@ function c75937826.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c75937826
.
addc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
e
:
GetHandler
():
AddCounter
(
0x1f
,
3
)
e
:
GetHandler
():
AddCounter
(
0x1f
+
COUNTER_NEED_ENABLE
,
3
)
end
end
function
c75937826
.
rctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c78009994.lua
View file @
73e1b5d2
...
...
@@ -23,7 +23,7 @@ function c78009994.initial_effect(c)
end
function
c78009994
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
GetFirst
()
~=
e
:
GetHandler
()
then
e
:
GetHandler
():
AddCounter
(
0x22
,
1
)
e
:
GetHandler
():
AddCounter
(
0x22
+
COUNTER_NEED_ENABLE
,
1
)
end
end
function
c78009994
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c78574395.lua
View file @
73e1b5d2
...
...
@@ -40,6 +40,6 @@ end
function
c78574395
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
c
:
AddCounter
(
0x32
,
e
:
GetLabel
())
c
:
AddCounter
(
0x32
+
COUNTER_NEED_ENABLE
,
e
:
GetLabel
())
end
end
c8062132.lua
View file @
73e1b5d2
...
...
@@ -81,7 +81,7 @@ function c8062132.ctcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c8062132
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
c
:
AddCounter
(
0x11
,
1
)
c
:
AddCounter
(
0x11
+
COUNTER_NEED_ENABLE
,
1
)
if
c
:
GetCounter
(
0x11
)
>=
3
then
Duel
.
Win
(
tp
,
0x12
)
end
...
...
c81057455.lua
View file @
73e1b5d2
...
...
@@ -66,7 +66,7 @@ function c81057455.posop(e,tp,eg,ep,ev,re,r,rp)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
ChangePosition
(
tc
,
POS_FACEDOWN_DEFENCE
)
~=
0
then
e
:
GetHandler
():
AddCounter
(
0x37
,
1
)
e
:
GetHandler
():
AddCounter
(
0x37
+
COUNTER_NEED_ENABLE
,
1
)
end
end
function
c81057455
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c81524977.lua
View file @
73e1b5d2
...
...
@@ -40,7 +40,7 @@ function c81524977.ctcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c81524977
.
ctfilter
,
1
,
nil
)
end
function
c81524977
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x20
,
1
)
e
:
GetHandler
():
AddCounter
(
0x20
+
COUNTER_NEED_ENABLE
,
1
)
end
function
c81524977
.
damcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
...
...
c81788994.lua
View file @
73e1b5d2
...
...
@@ -40,7 +40,7 @@ function c81788994.ctcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c81788994
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
eg
:
FilterCount
(
c81788994
.
cfilter
,
nil
)
e
:
GetHandler
():
AddCounter
(
0x16
,
ct
)
e
:
GetHandler
():
AddCounter
(
0x16
+
COUNTER_NEED_ENABLE
,
ct
)
end
function
c81788994
.
atkcon
(
e
)
return
Duel
.
GetTurnPlayer
()
~=
e
:
GetHandlerPlayer
()
...
...
c85541675.lua
View file @
73e1b5d2
...
...
@@ -34,7 +34,7 @@ function c85541675.accon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c85541675
.
cfilter
,
1
,
nil
)
end
function
c85541675
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x12
,
1
)
e
:
GetHandler
():
AddCounter
(
0x12
+
COUNTER_NEED_ENABLE
,
1
)
end
function
c85541675
.
drcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
...
...
c85754829.lua
View file @
73e1b5d2
...
...
@@ -27,5 +27,5 @@ function c85754829.accon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c85754829
.
cfilter
,
1
,
e
:
GetHandler
())
end
function
c85754829
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0xf
,
1
)
e
:
GetHandler
():
AddCounter
(
0xf
+
COUNTER_NEED_ENABLE
,
1
)
end
c91438994.lua
View file @
73e1b5d2
...
...
@@ -44,7 +44,7 @@ function c91438994.filter1(c,tp)
end
function
c91438994
.
addc1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
c91438994
.
filter1
,
1
,
nil
,
tp
)
then
e
:
GetHandler
():
AddCounter
(
0xa
,
1
)
e
:
GetHandler
():
AddCounter
(
0xa
+
COUNTER_NEED_ENABLE
,
1
)
end
end
function
c91438994
.
filter2
(
c
,
tp
)
...
...
@@ -52,7 +52,7 @@ function c91438994.filter2(c,tp)
end
function
c91438994
.
addc2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
c91438994
.
filter2
,
1
,
nil
,
tp
)
then
e
:
GetHandler
():
AddCounter
(
0xa
,
2
)
e
:
GetHandler
():
AddCounter
(
0xa
+
COUNTER_NEED_ENABLE
,
2
)
end
end
function
c91438994
.
attackup
(
e
,
c
)
...
...
c91607976.lua
View file @
73e1b5d2
...
...
@@ -43,7 +43,7 @@ function c91607976.cond1(e,tp,eg,ep,ev,re,r,rp)
end
function
c91607976
.
opd1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
e
:
GetHandler
():
AddCounter
(
0x8
,
1
)
e
:
GetHandler
():
AddCounter
(
0x8
+
COUNTER_NEED_ENABLE
,
1
)
end
end
function
c91607976
.
cond2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c94243005.lua
View file @
73e1b5d2
...
...
@@ -41,7 +41,7 @@ end
function
c94243005
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
eg
:
FilterCount
(
c94243005
.
ctfilter
,
nil
)
if
ct
>
0
then
e
:
GetHandler
():
AddCounter
(
0x13
,
ct
)
e
:
GetHandler
():
AddCounter
(
0x13
+
COUNTER_NEED_ENABLE
,
ct
)
end
end
function
c94243005
.
spfilter
(
c
,
e
,
tp
)
...
...
c94807487.lua
View file @
73e1b5d2
...
...
@@ -68,7 +68,7 @@ function c94807487.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c94807487
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x31
,
1
)
e
:
GetHandler
():
AddCounter
(
0x31
+
COUNTER_NEED_ENABLE
,
1
)
end
function
c94807487
.
value
(
e
,
c
)
return
e
:
GetHandler
():
GetCounter
(
0x31
)
*
500
...
...
c97151365.lua
View file @
73e1b5d2
...
...
@@ -27,7 +27,7 @@ function c97151365.initial_effect(c)
end
function
c97151365
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetTurnPlayer
()
~=
tp
or
Duel
.
GetAttackTarget
()
~=
nil
then
e
:
GetHandler
():
AddCounter
(
0x1e
,
1
)
e
:
GetHandler
():
AddCounter
(
0x1e
+
COUNTER_NEED_ENABLE
,
1
)
end
end
function
c97151365
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c99342953.lua
View file @
73e1b5d2
...
...
@@ -32,7 +32,7 @@ function c99342953.ctcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c99342953
.
ctfilter
,
1
,
nil
)
end
function
c99342953
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0xe
,
1
)
e
:
GetHandler
():
AddCounter
(
0xe
+
COUNTER_NEED_ENABLE
,
1
)
end
function
c99342953
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
1
,
0xe
,
2
,
REASON_COST
)
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