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
e60b2ace
Commit
e60b2ace
authored
Feb 21, 2019
by
mercury233
Committed by
GitHub
Feb 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f4ddda8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
c98596596.lua
c98596596.lua
+12
-9
No files found.
c98596596.lua
View file @
e60b2ace
...
@@ -48,7 +48,7 @@ function c98596596.spop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,7 +48,7 @@ function c98596596.spop1(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c98596596
.
cfilter2
(
c
,
tp
)
function
c98596596
.
cfilter2
(
c
,
tp
)
return
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
return
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
(
c
:
GetPreviousLocation
()
==
LOCATION_HAND
or
c
:
GetPreviousLocation
()
&
LOCATION_
ONFIELD
>
0
)
and
(
c
:
GetPreviousLocation
()
==
LOCATION_HAND
or
c
:
GetPreviousLocation
()
&
LOCATION_
MZONE
>
0
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
GetReasonPlayer
()
==
1
-
tp
and
c
:
GetPreviousControler
()
==
tp
and
c
:
GetReasonPlayer
()
==
1
-
tp
end
end
function
c98596596
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c98596596
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -57,16 +57,19 @@ end
...
@@ -57,16 +57,19 @@ 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
,
98596597
,
0
,
0x4011
,
100
,
100
,
1
,
RACE_PYRO
,
ATTRIBUTE_FIRE
)
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ct
=
eg
:
FilterCount
(
c98596596
.
cfilter2
,
nil
,
tp
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
e
:
SetLabel
(
ct
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
ft
,
0
,
0
)
ct
=
math.min
((
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)),
ct
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
ft
,
0
,
0
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ct
=
1
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
ct
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
ct
,
0
,
0
)
end
end
function
c98596596
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c98596596
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ct
=
math.min
((
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)),
e
:
GetLabel
())
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
ft
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
98596597
,
0
,
0x4011
,
100
,
100
,
1
,
RACE_PYRO
,
ATTRIBUTE_FIRE
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
or
ct
<=
0
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
98596597
,
0
,
0x4011
,
100
,
100
,
1
,
RACE_PYRO
,
ATTRIBUTE_FIRE
)
then
return
end
for
i
=
1
,
ft
do
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ct
=
1
end
for
i
=
1
,
ct
do
local
token
=
Duel
.
CreateToken
(
tp
,
98596597
)
local
token
=
Duel
.
CreateToken
(
tp
,
98596597
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
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