Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
4
Merge Requests
4
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
MyCard
ygopro-scripts-888
Commits
11b3a427
Commit
11b3a427
authored
Nov 04, 2023
by
Chen Bill
Committed by
GitHub
Nov 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace 1 to FLAG_ID_CHAINING (#2172)
parent
500b0dd7
Changes
46
Show whitespace changes
Inline
Side-by-side
Showing
46 changed files
with
47 additions
and
47 deletions
+47
-47
c10239627.lua
c10239627.lua
+1
-1
c12421694.lua
c12421694.lua
+1
-1
c13235258.lua
c13235258.lua
+1
-1
c18013090.lua
c18013090.lua
+1
-1
c19162134.lua
c19162134.lua
+2
-2
c20630765.lua
c20630765.lua
+1
-1
c21051146.lua
c21051146.lua
+1
-1
c24429467.lua
c24429467.lua
+1
-1
c27354732.lua
c27354732.lua
+1
-1
c28570310.lua
c28570310.lua
+1
-1
c29436665.lua
c29436665.lua
+1
-1
c3322931.lua
c3322931.lua
+1
-1
c39000945.lua
c39000945.lua
+1
-1
c43930492.lua
c43930492.lua
+1
-1
c45462639.lua
c45462639.lua
+1
-1
c46363422.lua
c46363422.lua
+1
-1
c48276469.lua
c48276469.lua
+1
-1
c51481927.lua
c51481927.lua
+1
-1
c53666449.lua
c53666449.lua
+1
-1
c53842431.lua
c53842431.lua
+1
-1
c54082269.lua
c54082269.lua
+1
-1
c54965929.lua
c54965929.lua
+1
-1
c55424270.lua
c55424270.lua
+1
-1
c5556499.lua
c5556499.lua
+1
-1
c56321639.lua
c56321639.lua
+1
-1
c60258960.lua
c60258960.lua
+1
-1
c6061630.lua
c6061630.lua
+1
-1
c65338781.lua
c65338781.lua
+1
-1
c65342096.lua
c65342096.lua
+1
-1
c66104644.lua
c66104644.lua
+1
-1
c67234805.lua
c67234805.lua
+1
-1
c70791313.lua
c70791313.lua
+1
-1
c73752131.lua
c73752131.lua
+1
-1
c74402414.lua
c74402414.lua
+1
-1
c8034697.lua
c8034697.lua
+1
-1
c80959027.lua
c80959027.lua
+1
-1
c81059524.lua
c81059524.lua
+1
-1
c83035296.lua
c83035296.lua
+1
-1
c84970821.lua
c84970821.lua
+1
-1
c86767655.lua
c86767655.lua
+1
-1
c88232397.lua
c88232397.lua
+1
-1
c88901771.lua
c88901771.lua
+1
-1
c91182675.lua
c91182675.lua
+1
-1
c92559258.lua
c92559258.lua
+1
-1
c94256039.lua
c94256039.lua
+1
-1
c98986900.lua
c98986900.lua
+1
-1
No files found.
c10239627.lua
View file @
11b3a427
...
...
@@ -42,7 +42,7 @@ function c10239627.initial_effect(c)
c
:
RegisterEffect
(
e6
)
end
function
c10239627
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c12421694.lua
View file @
11b3a427
...
...
@@ -49,7 +49,7 @@ function c12421694.atkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c12421694
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
GetHandler
():
IsSetCard
(
0x115
)
and
rp
==
tp
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
GetHandler
():
IsSetCard
(
0x115
)
and
rp
==
tp
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
end
function
c12421694
.
recop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Recover
(
tp
,
100
,
REASON_EFFECT
)
...
...
c13235258.lua
View file @
11b3a427
...
...
@@ -138,7 +138,7 @@ function c13235258.ctop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c13235258
.
ctcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetEquipTarget
()
and
ep
~=
tp
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
e
:
GetHandler
():
GetEquipTarget
()
and
ep
~=
tp
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
end
function
c13235258
.
atkcon2
(
e
)
return
e
:
GetHandler
():
GetEquipTarget
()
...
...
c18013090.lua
View file @
11b3a427
...
...
@@ -41,7 +41,7 @@ function c18013090.atcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c18013090
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
1
)
==
0
or
c
:
GetFlagEffect
(
18013090
)
~=
0
then
return
end
if
c
:
GetFlagEffect
(
FLAG_ID_CHAINING
)
==
0
or
c
:
GetFlagEffect
(
18013090
)
~=
0
then
return
end
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
...
c19162134.lua
View file @
11b3a427
...
...
@@ -102,10 +102,10 @@ function c19162134.btcon2(e,tp,eg,ep,ev,re,r,rp)
else
return
false
end
end
function
c19162134
.
chcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
tp
and
Duel
.
GetCurrentChain
()
>=
5
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
rp
==
tp
and
Duel
.
GetCurrentChain
()
>=
5
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
end
function
c19162134
.
chcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
1
-
tp
and
Duel
.
GetCurrentChain
()
>=
5
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
rp
==
1
-
tp
and
Duel
.
GetCurrentChain
()
>=
5
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
end
function
c19162134
.
tossop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c20630765.lua
View file @
11b3a427
...
...
@@ -40,7 +40,7 @@ function c20630765.initial_effect(c)
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
if
re
:
IsActiveType
(
TYPE_MONSTER
)
and
c
~=
e
:
GetHandler
()
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x16
,
1
)
end
end
...
...
c21051146.lua
View file @
11b3a427
...
...
@@ -27,7 +27,7 @@ function c21051146.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c21051146
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c24429467.lua
View file @
11b3a427
...
...
@@ -36,7 +36,7 @@ end
function
c24429467
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_PLAYER
)
local
c
=
e
:
GetHandler
()
if
re
:
IsActiveType
(
TYPE_MONSTER
)
and
p
~=
tp
and
c
:
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsActiveType
(
TYPE_MONSTER
)
and
p
~=
tp
and
c
:
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
c
:
AddCounter
(
0x1
,
1
)
end
end
...
...
c27354732.lua
View file @
11b3a427
...
...
@@ -67,7 +67,7 @@ function c27354732.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c27354732
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
2
)
end
end
...
...
c28570310.lua
View file @
11b3a427
...
...
@@ -68,7 +68,7 @@ function c28570310.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c28570310
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c29436665.lua
View file @
11b3a427
...
...
@@ -51,7 +51,7 @@ function c29436665.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c29436665
.
dmgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
GetActiveType
()
==
TYPE_SPELL
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
GetActiveType
()
==
TYPE_SPELL
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
end
function
c29436665
.
dmgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Damage
(
1
-
tp
,
1000
,
REASON_EFFECT
)
...
...
c3322931.lua
View file @
11b3a427
...
...
@@ -34,7 +34,7 @@ function c3322931.initial_effect(c)
end
function
c3322931
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
GetAttack
()
<
4000
and
re
:
GetHandler
()
~=
c
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
c
:
GetFlagEffect
(
1
)
>
0
then
if
c
:
GetAttack
()
<
4000
and
re
:
GetHandler
()
~=
c
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
c
:
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
...
c39000945.lua
View file @
11b3a427
...
...
@@ -57,7 +57,7 @@ function c39000945.initial_effect(c)
c
:
RegisterEffect
(
e6
)
end
function
c39000945
.
counterop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c43930492.lua
View file @
11b3a427
...
...
@@ -36,7 +36,7 @@ function c43930492.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c43930492
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c45462639.lua
View file @
11b3a427
...
...
@@ -54,7 +54,7 @@ function c45462639.addc(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c45462639
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c46363422.lua
View file @
11b3a427
...
...
@@ -28,7 +28,7 @@ function c46363422.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c46363422
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c48276469.lua
View file @
11b3a427
...
...
@@ -22,7 +22,7 @@ function c48276469.initial_effect(c)
end
function
c48276469
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
re
:
GetHandler
()
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_TRAP
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_TRAP
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
Duel
.
Damage
(
rp
,
1000
,
REASON_EFFECT
)
end
end
c51481927.lua
View file @
11b3a427
...
...
@@ -24,7 +24,7 @@ function c51481927.initial_effect(c)
end
function
c51481927
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
()
~=
e
:
GetHandler
()
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
and
re
:
GetHandler
()
~=
e
:
GetHandler
()
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
end
function
c51481927
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Recover
(
e
:
GetHandlerPlayer
(),
500
,
REASON_EFFECT
)
...
...
c53666449.lua
View file @
11b3a427
...
...
@@ -19,7 +19,7 @@ function c53666449.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c53666449
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_COUNTER
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_COUNTER
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
end
function
c53666449
.
thfilter
(
c
,
code
)
return
c
:
IsType
(
TYPE_COUNTER
)
and
not
c
:
IsCode
(
code
)
and
c
:
IsAbleToHand
()
...
...
c53842431.lua
View file @
11b3a427
...
...
@@ -75,7 +75,7 @@ function c53842431.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c53842431
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
2
)
end
end
...
...
c54082269.lua
View file @
11b3a427
...
...
@@ -56,7 +56,7 @@ function c54082269.acop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
re
:
GetHandler
()
if
not
tc
:
IsRelateToEffect
(
re
)
or
not
re
:
IsActiveType
(
TYPE_MONSTER
)
or
tc
:
IsFacedown
()
or
tc
:
GetCounter
(
0x1002
)
>
0
then
return
end
local
p
,
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_PLAYER
,
CHAININFO_TRIGGERING_LOCATION
)
if
p
~=
tp
and
loc
==
LOCATION_MZONE
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
p
~=
tp
and
loc
==
LOCATION_MZONE
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
tc
:
AddCounter
(
0x1002
,
1
)
end
end
...
...
c54965929.lua
View file @
11b3a427
...
...
@@ -72,7 +72,7 @@ function c54965929.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c54965929
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c55424270.lua
View file @
11b3a427
...
...
@@ -34,7 +34,7 @@ function c55424270.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c55424270
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c5556499.lua
View file @
11b3a427
...
...
@@ -75,7 +75,7 @@ function c5556499.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c5556499
.
hdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
GetFlagEffect
(
1
)
==
0
then
return
end
if
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
==
0
then
return
end
if
ep
==
tp
then
return
end
if
not
re
:
IsActiveType
(
TYPE_EFFECT
)
or
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
...
...
c56321639.lua
View file @
11b3a427
...
...
@@ -52,7 +52,7 @@ end
function
c56321639
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
then
return
false
end
local
c
=
re
:
GetHandler
()
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
c
:
IsSetCard
(
0x106e
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
c
:
IsSetCard
(
0x106e
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
end
function
c56321639
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
...
...
c60258960.lua
View file @
11b3a427
...
...
@@ -28,7 +28,7 @@ function c60258960.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c60258960
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c6061630.lua
View file @
11b3a427
...
...
@@ -27,7 +27,7 @@ function c6061630.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c6061630
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
2
)
end
end
...
...
c65338781.lua
View file @
11b3a427
...
...
@@ -38,7 +38,7 @@ function c65338781.initial_effect(c)
c
:
RegisterEffect
(
e4
)
end
function
c65338781
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c65342096.lua
View file @
11b3a427
...
...
@@ -38,7 +38,7 @@ function c65342096.initial_effect(c)
c
:
RegisterEffect
(
e5
)
end
function
c65342096
.
counterop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c66104644.lua
View file @
11b3a427
...
...
@@ -70,7 +70,7 @@ function c66104644.initial_effect(c)
c
:
RegisterEffect
(
e7
)
end
function
c66104644
.
counterop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c67234805.lua
View file @
11b3a427
...
...
@@ -48,7 +48,7 @@ function c67234805.initial_effect(c)
c
:
RegisterEffect
(
e5
)
end
function
c67234805
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsActiveType
(
TYPE_MONSTER
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsActiveType
(
TYPE_MONSTER
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x16
,
1
)
end
end
...
...
c70791313.lua
View file @
11b3a427
...
...
@@ -29,7 +29,7 @@ function c70791313.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c70791313
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c73752131.lua
View file @
11b3a427
...
...
@@ -29,7 +29,7 @@ function c73752131.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c73752131
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c74402414.lua
View file @
11b3a427
...
...
@@ -80,7 +80,7 @@ function c74402414.activate(e,tp,eg,ep,ev,re,r,rp)
e
:
GetLabelObject
():
Merge
(
rg
)
end
function
c74402414
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
rp
==
1
-
tp
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
rp
==
1
-
tp
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x25
,
1
)
end
end
...
...
c8034697.lua
View file @
11b3a427
...
...
@@ -35,7 +35,7 @@ function c8034697.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c8034697
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c80959027.lua
View file @
11b3a427
...
...
@@ -68,7 +68,7 @@ function c80959027.tdop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c80959027
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c81059524.lua
View file @
11b3a427
...
...
@@ -43,7 +43,7 @@ function c81059524.damop(e,tp,eg,ep,ev,re,r,rp)
end
function
c81059524
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tpe
=
re
:
GetActiveType
()
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
(
tpe
==
TYPE_SPELL
or
tpe
==
TYPE_QUICKPLAY
+
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
(
tpe
==
TYPE_SPELL
or
tpe
==
TYPE_QUICKPLAY
+
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
end
function
c81059524
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c83035296.lua
View file @
11b3a427
...
...
@@ -30,7 +30,7 @@ function c83035296.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c83035296
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c84970821.lua
View file @
11b3a427
...
...
@@ -22,7 +22,7 @@ function c84970821.initial_effect(c)
end
function
c84970821
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
re
:
GetHandler
()
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
Duel
.
Damage
(
rp
,
1000
,
REASON_EFFECT
)
end
end
c86767655.lua
View file @
11b3a427
...
...
@@ -19,7 +19,7 @@ function c86767655.initial_effect(c)
end
c86767655
.
toss_coin
=
true
function
c86767655
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
1
-
tp
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
rp
==
1
-
tp
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
end
function
c86767655
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
86767655
)
...
...
c88232397.lua
View file @
11b3a427
...
...
@@ -39,7 +39,7 @@ function c88232397.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c88232397
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c88901771.lua
View file @
11b3a427
...
...
@@ -38,7 +38,7 @@ function c88901771.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c88901771
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c91182675.lua
View file @
11b3a427
...
...
@@ -66,7 +66,7 @@ function c91182675.ctop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c91182675
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c92559258.lua
View file @
11b3a427
...
...
@@ -66,7 +66,7 @@ function c92559258.initial_effect(c)
c
:
RegisterEffect
(
e7
)
end
function
c92559258
.
counterop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
e
:
GetHandler
():
AddCounter
(
0x1
,
1
)
end
end
...
...
c94256039.lua
View file @
11b3a427
...
...
@@ -42,7 +42,7 @@ end
function
c94256039
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_PLAYER
)
local
c
=
e
:
GetHandler
()
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
c
:
GetFlagEffect
(
1
)
>
0
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
c
:
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
then
c
:
AddCounter
(
0x1
,
1
)
if
c
:
GetCounter
(
0x1
)
==
4
then
Duel
.
RaiseSingleEvent
(
c
,
EVENT_CUSTOM
+
94256039
,
re
,
0
,
0
,
p
,
0
)
...
...
c98986900.lua
View file @
11b3a427
...
...
@@ -43,7 +43,7 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e4
)
end
function
s
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
and
re
:
IsActiveType
(
TYPE_TRAP
+
TYPE_MONSTER
)
and
rp
==
1
-
tp
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
re
and
re
:
IsActiveType
(
TYPE_TRAP
+
TYPE_MONSTER
)
and
rp
==
1
-
tp
and
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_CHAINING
)
>
0
end
function
s
.
ctop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
AddCounter
(
0x1
,
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