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
4f68468c
Commit
4f68468c
authored
Nov 19, 2019
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix same name token
parent
40c53722
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
17 deletions
+17
-17
c14470845.lua
c14470845.lua
+2
-2
c41456841.lua
c41456841.lua
+2
-2
c51208046.lua
c51208046.lua
+2
-2
c52900000.lua
c52900000.lua
+2
-2
c62481203.lua
c62481203.lua
+2
-2
c98596596.lua
c98596596.lua
+4
-4
c99092624.lua
c99092624.lua
+3
-3
No files found.
c14470845.lua
View file @
4f68468c
...
@@ -24,14 +24,14 @@ end
...
@@ -24,14 +24,14 @@ end
function
c14470845
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c14470845
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
if
chk
==
0
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
>
1
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
>
1
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
14470846
,
0xf
,
0x4011
,
0
,
1000
,
2
,
RACE_BEAST
,
ATTRIBUTE_LIGHT
,
POS_FACEUP_DEFENSE
,
1
-
tp
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
29843092
,
0xf
,
0x4011
,
0
,
1000
,
2
,
RACE_BEAST
,
ATTRIBUTE_LIGHT
,
POS_FACEUP_DEFENSE
,
1
-
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
0
,
0
)
end
end
function
c14470845
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c14470845
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
if
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
<
2
then
return
end
if
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
<
2
then
return
end
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
14470846
,
0xf
,
0x4011
,
0
,
1000
,
2
,
RACE_BEAST
,
ATTRIBUTE_LIGHT
,
POS_FACEUP_DEFENSE
,
1
-
tp
)
then
return
end
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
29843092
,
0xf
,
0x4011
,
0
,
1000
,
2
,
RACE_BEAST
,
ATTRIBUTE_LIGHT
,
POS_FACEUP_DEFENSE
,
1
-
tp
)
then
return
end
for
i
=
1
,
2
do
for
i
=
1
,
2
do
local
token
=
Duel
.
CreateToken
(
tp
,
14470845
+
i
)
local
token
=
Duel
.
CreateToken
(
tp
,
14470845
+
i
)
if
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
then
if
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
then
...
...
c41456841.lua
View file @
4f68468c
...
@@ -80,13 +80,13 @@ function c41456841.atop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -80,13 +80,13 @@ function c41456841.atop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c41456841
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c41456841
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
41456842
,
0
,
0x4011
,
100
,
100
,
1
,
RACE_INSECT
,
ATTRIBUTE_EARTH
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
91512836
,
0
,
0x4011
,
100
,
100
,
1
,
RACE_INSECT
,
ATTRIBUTE_EARTH
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
end
function
c41456841
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c41456841
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
41456842
,
0
,
0x4011
,
100
,
100
,
1
,
RACE_INSECT
,
ATTRIBUTE_EARTH
)
then
return
end
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
91512836
,
0
,
0x4011
,
100
,
100
,
1
,
RACE_INSECT
,
ATTRIBUTE_EARTH
)
then
return
end
local
token
=
Duel
.
CreateToken
(
tp
,
41456842
)
local
token
=
Duel
.
CreateToken
(
tp
,
41456842
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
c51208046.lua
View file @
4f68468c
...
@@ -74,14 +74,14 @@ function c51208046.spcon2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -74,14 +74,14 @@ function c51208046.spcon2(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c51208046
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c51208046
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
51208047
,
0xfb
,
0x4011
,
0
,
0
,
1
,
RACE_FAIRY
,
ATTRIBUTE_LIGHT
,
POS_FACEUP
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
51208047
,
0xfb
,
0x4011
,
0
,
0
,
1
,
RACE_FAIRY
,
ATTRIBUTE_LIGHT
)
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
end
function
c51208046
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c51208046
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
51208047
,
0xfb
,
0x4011
,
0
,
0
,
1
,
RACE_FAIRY
,
ATTRIBUTE_LIGHT
,
POS_FACEUP
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
51208047
,
0xfb
,
0x4011
,
0
,
0
,
1
,
RACE_FAIRY
,
ATTRIBUTE_LIGHT
)
then
return
end
local
token
=
Duel
.
CreateToken
(
tp
,
51208047
)
local
token
=
Duel
.
CreateToken
(
tp
,
51208047
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
c52900000.lua
View file @
4f68468c
...
@@ -80,7 +80,7 @@ function c52900000.rettg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -80,7 +80,7 @@ function c52900000.rettg(e,tp,eg,ep,ev,re,r,rp,chk)
else
else
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
52900001
,
0
,
0x4011
,
1500
,
1500
,
4
,
RACE_WINDBEAST
,
ATTRIBUTE_WIND
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
25415053
,
0
,
0x4011
,
1500
,
1500
,
4
,
RACE_WINDBEAST
,
ATTRIBUTE_WIND
)
end
end
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
...
@@ -92,7 +92,7 @@ function c52900000.retop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -92,7 +92,7 @@ function c52900000.retop(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
and
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
~=
0
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
and
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
52900001
,
0
,
0x4011
,
1500
,
1500
,
4
,
RACE_WINDBEAST
,
ATTRIBUTE_WIND
)
then
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
25415053
,
0
,
0x4011
,
1500
,
1500
,
4
,
RACE_WINDBEAST
,
ATTRIBUTE_WIND
)
then
for
i
=
1
,
2
do
for
i
=
1
,
2
do
local
token
=
Duel
.
CreateToken
(
tp
,
52900001
)
local
token
=
Duel
.
CreateToken
(
tp
,
52900001
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
c62481203.lua
View file @
4f68468c
...
@@ -46,14 +46,14 @@ end
...
@@ -46,14 +46,14 @@ end
function
c62481203
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c62481203
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
if
chk
==
0
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
62481204
,
0xfb
,
0x4011
,
0
,
0
,
1
,
RACE_FAIRY
,
ATTRIBUTE_LIGHT
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
51208047
,
0xfb
,
0x4011
,
0
,
0
,
1
,
RACE_FAIRY
,
ATTRIBUTE_LIGHT
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
0
,
0
)
end
end
function
c62481203
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c62481203
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
62481204
,
0xfb
,
0x4011
,
0
,
0
,
1
,
RACE_FAIRY
,
ATTRIBUTE_LIGHT
)
then
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
51208047
,
0xfb
,
0x4011
,
0
,
0
,
1
,
RACE_FAIRY
,
ATTRIBUTE_LIGHT
)
then
for
i
=
1
,
2
do
for
i
=
1
,
2
do
local
token
=
Duel
.
CreateToken
(
tp
,
62481204
)
local
token
=
Duel
.
CreateToken
(
tp
,
62481204
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
c98596596.lua
View file @
4f68468c
...
@@ -35,13 +35,13 @@ function c98596596.spcon1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -35,13 +35,13 @@ function c98596596.spcon1(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c98596596
.
sptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c98596596
.
sptg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
98596597
,
0
,
0x4011
,
100
,
100
,
1
,
RACE_PYRO
,
ATTRIBUTE_FIRE
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
23116809
,
0
,
0x4011
,
100
,
100
,
1
,
RACE_PYRO
,
ATTRIBUTE_FIRE
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
end
function
c98596596
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c98596596
.
spop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
98596597
,
0
,
0x4011
,
100
,
100
,
1
,
RACE_PYRO
,
ATTRIBUTE_FIRE
)
then
if
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
23116809
,
0
,
0x4011
,
100
,
100
,
1
,
RACE_PYRO
,
ATTRIBUTE_FIRE
)
then
local
token
=
Duel
.
CreateToken
(
tp
,
98596597
)
local
token
=
Duel
.
CreateToken
(
tp
,
98596597
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
...
@@ -56,7 +56,7 @@ function c98596596.spcon2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,7 +56,7 @@ function c98596596.spcon2(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c98596596
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c98596596
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
98596597
,
0
,
0x4011
,
100
,
100
,
1
,
RACE_PYRO
,
ATTRIBUTE_FIRE
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
23116809
,
0
,
0x4011
,
100
,
100
,
1
,
RACE_PYRO
,
ATTRIBUTE_FIRE
)
end
local
ct
=
eg
:
FilterCount
(
c98596596
.
cfilter2
,
nil
,
tp
)
local
ct
=
eg
:
FilterCount
(
c98596596
.
cfilter2
,
nil
,
tp
)
e
:
SetLabel
(
ct
)
e
:
SetLabel
(
ct
)
ct
=
math.min
((
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)),
ct
)
ct
=
math.min
((
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)),
ct
)
...
@@ -67,7 +67,7 @@ end
...
@@ -67,7 +67,7 @@ end
function
c98596596
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c98596596
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
math.min
((
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)),
e
:
GetLabel
())
local
ct
=
math.min
((
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)),
e
:
GetLabel
())
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
ct
<=
0
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
ct
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
98596597
,
0
,
0x4011
,
100
,
100
,
1
,
RACE_PYRO
,
ATTRIBUTE_FIRE
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
23116809
,
0
,
0x4011
,
100
,
100
,
1
,
RACE_PYRO
,
ATTRIBUTE_FIRE
)
then
return
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ct
=
1
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ct
=
1
end
for
i
=
1
,
ct
do
for
i
=
1
,
ct
do
local
token
=
Duel
.
CreateToken
(
tp
,
98596597
)
local
token
=
Duel
.
CreateToken
(
tp
,
98596597
)
...
...
c99092624.lua
View file @
4f68468c
...
@@ -29,7 +29,7 @@ function c99092624.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -29,7 +29,7 @@ function c99092624.target(e,tp,eg,ep,ev,re,r,rp,chk)
ct
=
ct
+
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
,
TYPE_FIELD
)
ct
=
ct
+
Duel
.
GetMatchingGroupCount
(
Card
.
IsType
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
,
TYPE_FIELD
)
if
ct
==
0
then
return
false
end
if
ct
==
0
then
return
false
end
for
p
=
0
,
1
do
for
p
=
0
,
1
do
if
Duel
.
GetLocationCount
(
p
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
99092625
,
0
,
0x4011
,
800
,
800
,
2
,
RACE_PLANT
,
ATTRIBUTE_DARK
,
POS_FACEUP_DEFENSE
,
p
)
then
return
true
end
if
Duel
.
GetLocationCount
(
p
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
71645243
,
0
,
0x4011
,
800
,
800
,
2
,
RACE_PLANT
,
ATTRIBUTE_DARK
,
POS_FACEUP_DEFENSE
,
p
)
then
return
true
end
end
end
return
false
return
false
end
end
...
@@ -42,8 +42,8 @@ function c99092624.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,8 +42,8 @@ function c99092624.activate(e,tp,eg,ep,ev,re,r,rp)
if
ct
==
0
then
return
end
if
ct
==
0
then
return
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ct
=
1
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ct
=
1
end
repeat
repeat
local
b1
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
99092625
,
0
,
0x4011
,
800
,
800
,
2
,
RACE_PLANT
,
ATTRIBUTE_DARK
,
POS_FACEUP_DEFENSE
,
tp
)
local
b1
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
71645243
,
0
,
0x4011
,
800
,
800
,
2
,
RACE_PLANT
,
ATTRIBUTE_DARK
,
POS_FACEUP_DEFENSE
,
tp
)
local
b2
=
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
99092625
,
0
,
0x4011
,
800
,
800
,
2
,
RACE_PLANT
,
ATTRIBUTE_DARK
,
POS_FACEUP_DEFENSE
,
1
-
tp
)
local
b2
=
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
71645243
,
0
,
0x4011
,
800
,
800
,
2
,
RACE_PLANT
,
ATTRIBUTE_DARK
,
POS_FACEUP_DEFENSE
,
1
-
tp
)
if
not
(
b1
or
b2
)
then
break
end
if
not
(
b1
or
b2
)
then
break
end
local
op
=
0
local
op
=
0
if
b1
and
b2
then
if
b1
and
b2
then
...
...
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