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
b4c8a373
Commit
b4c8a373
authored
Nov 07, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Auxiliary.ExtraDeckSummonCountLimit
parent
a1def3d1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
19 deletions
+23
-19
c57734012.lua
c57734012.lua
+4
-2
c92345028.lua
c92345028.lua
+4
-17
utility.lua
utility.lua
+15
-0
No files found.
c57734012.lua
View file @
b4c8a373
...
@@ -54,7 +54,8 @@ function c57734012.filter2(c,e,tp,mc,no)
...
@@ -54,7 +54,8 @@ function c57734012.filter2(c,e,tp,mc,no)
end
end
function
c57734012
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c57734012
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
loc
=
0
local
loc
=
0
local
ect
=
c92345028
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
92345028
)
and
c92345028
[
tp
]
local
ect
=
aux
.
ExtraDeckSummonCountLimit
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
92345028
)
and
aux
.
ExtraDeckSummonCountLimit
[
tp
]
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
loc
=
loc
+
LOCATION_GRAVE
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
loc
=
loc
+
LOCATION_GRAVE
end
if
Duel
.
GetLocationCountFromEx
(
tp
)
>
0
and
(
ect
==
nil
or
ect
>
1
)
then
loc
=
loc
+
LOCATION_EXTRA
end
if
Duel
.
GetLocationCountFromEx
(
tp
)
>
0
and
(
ect
==
nil
or
ect
>
1
)
then
loc
=
loc
+
LOCATION_EXTRA
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanSpecialSummonCount
(
tp
,
2
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanSpecialSummonCount
(
tp
,
2
)
...
@@ -67,7 +68,8 @@ function c57734012.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -67,7 +68,8 @@ function c57734012.activate(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetFlagEffect
(
tp
,
57734012
)
~=
0
then
return
end
if
Duel
.
GetFlagEffect
(
tp
,
57734012
)
~=
0
then
return
end
Duel
.
RegisterFlagEffect
(
tp
,
57734012
,
0
,
0
,
0
)
Duel
.
RegisterFlagEffect
(
tp
,
57734012
,
0
,
0
,
0
)
local
loc
=
0
local
loc
=
0
local
ect
=
c92345028
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
92345028
)
and
c92345028
[
tp
]
local
ect
=
aux
.
ExtraDeckSummonCountLimit
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
92345028
)
and
aux
.
ExtraDeckSummonCountLimit
[
tp
]
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
loc
=
loc
+
LOCATION_GRAVE
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
loc
=
loc
+
LOCATION_GRAVE
end
if
Duel
.
GetLocationCountFromEx
(
tp
)
>
0
and
(
ect
==
nil
or
ect
>
1
)
then
loc
=
loc
+
LOCATION_EXTRA
end
if
Duel
.
GetLocationCountFromEx
(
tp
)
>
0
and
(
ect
==
nil
or
ect
>
1
)
then
loc
=
loc
+
LOCATION_EXTRA
end
if
loc
==
0
then
return
end
if
loc
==
0
then
return
end
...
...
c92345028.lua
View file @
b4c8a373
--フューリー・オブ・ファイア
--フューリー・オブ・ファイア
function
c92345028
.
initial_effect
(
c
)
function
c92345028
.
initial_effect
(
c
)
aux
.
EnableExtraDeckSummonCountLimit
()
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
@@ -9,20 +10,6 @@ function c92345028.initial_effect(c)
...
@@ -9,20 +10,6 @@ function c92345028.initial_effect(c)
e1
:
SetTarget
(
c92345028
.
target
)
e1
:
SetTarget
(
c92345028
.
target
)
e1
:
SetOperation
(
c92345028
.
activate
)
e1
:
SetOperation
(
c92345028
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
if
c92345028
.
global_check
==
nil
then
c92345028
.
global_check
=
true
c92345028
[
0
]
=
1
c92345028
[
1
]
=
1
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
ge1
:
SetCode
(
EVENT_PHASE_START
+
PHASE_DRAW
)
ge1
:
SetOperation
(
c92345028
.
resetop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
c92345028
.
resetop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
c92345028
[
0
]
=
1
c92345028
[
1
]
=
1
end
end
function
c92345028
.
filter
(
c
,
e
,
tp
)
function
c92345028
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x119
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsSetCard
(
0x119
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
...
@@ -83,16 +70,16 @@ function c92345028.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -83,16 +70,16 @@ function c92345028.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
end
function
c92345028
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
function
c92345028
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
c
:
IsLocation
(
LOCATION_EXTRA
)
and
c92345028
[
sump
]
<=
0
return
c
:
IsLocation
(
LOCATION_EXTRA
)
and
aux
.
ExtraDeckSummonCountLimit
[
sump
]
<=
0
end
end
function
c92345028
.
cfilter
(
c
,
tp
)
function
c92345028
.
cfilter
(
c
,
tp
)
return
c
:
GetSummonPlayer
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_EXTRA
)
return
c
:
GetSummonPlayer
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_EXTRA
)
end
end
function
c92345028
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c92345028
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
c92345028
.
cfilter
,
1
,
nil
,
tp
)
then
if
eg
:
IsExists
(
c92345028
.
cfilter
,
1
,
nil
,
tp
)
then
c92345028
[
tp
]
=
c92345028
[
tp
]
-
1
aux
.
ExtraDeckSummonCountLimit
[
tp
]
=
aux
.
ExtraDeckSummonCountLimit
[
tp
]
-
1
end
end
if
eg
:
IsExists
(
c92345028
.
cfilter
,
1
,
nil
,
1
-
tp
)
then
if
eg
:
IsExists
(
c92345028
.
cfilter
,
1
,
nil
,
1
-
tp
)
then
c92345028
[
1
-
tp
]
=
c92345028
[
1
-
tp
]
-
1
aux
.
ExtraDeckSummonCountLimit
[
1
-
tp
]
=
aux
.
ExtraDeckSummonCountLimit
[
1
-
tp
]
-
1
end
end
end
end
utility.lua
View file @
b4c8a373
...
@@ -1992,6 +1992,21 @@ function Auxiliary.LinkOperation(f,minc,maxc,gf)
...
@@ -1992,6 +1992,21 @@ function Auxiliary.LinkOperation(f,minc,maxc,gf)
g
:
DeleteGroup
()
g
:
DeleteGroup
()
end
end
end
end
function
Auxiliary
.
EnableExtraDeckSummonCountLimit
()
if
Auxiliary
.
ExtraDeckSummonCountLimit
~=
nil
then
return
end
Auxiliary
.
ExtraDeckSummonCountLimit
=
{}
Auxiliary
.
ExtraDeckSummonCountLimit
[
0
]
=
1
Auxiliary
.
ExtraDeckSummonCountLimit
[
1
]
=
1
local
ge1
=
Effect
.
GlobalEffect
()
ge1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
ge1
:
SetCode
(
EVENT_PHASE_START
+
PHASE_DRAW
)
ge1
:
SetOperation
(
Auxiliary
.
ExtraDeckSummonCountLimitReset
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
function
Auxiliary
.
ExtraDeckSummonCountLimitReset
()
Auxiliary
.
ExtraDeckSummonCountLimit
[
0
]
=
1
Auxiliary
.
ExtraDeckSummonCountLimit
[
1
]
=
1
end
function
Auxiliary
.
IsMaterialListCode
(
c
,
code
)
function
Auxiliary
.
IsMaterialListCode
(
c
,
code
)
if
not
c
.
material
then
return
false
end
if
not
c
.
material
then
return
false
end
for
i
,
mcode
in
ipairs
(
c
.
material
)
do
for
i
,
mcode
in
ipairs
(
c
.
material
)
do
...
...
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