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
Reinen
ygopro-scripts
Commits
cfd185a7
Commit
cfd185a7
authored
Apr 11, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4eb9b054
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
c15397015.lua
c15397015.lua
+8
-1
No files found.
c15397015.lua
View file @
cfd185a7
...
...
@@ -7,8 +7,12 @@ function c15397015.initial_effect(c)
e1
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e1
:
SetCondition
(
c15397015
.
sumcon
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
--spsummon limit
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e2
:
SetValue
(
c15397015
.
sumlimit
)
c
:
RegisterEffect
(
e2
)
--activate limit
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -35,6 +39,9 @@ end
function
c15397015
.
sumcon
(
e
)
return
Duel
.
GetFieldGroupCount
(
e
:
GetHandler
():
GetControler
(),
LOCATION_MZONE
,
0
)
>
0
end
function
c15397015
.
sumlimit
(
e
,
se
,
sp
,
st
,
pos
,
tp
)
return
Duel
.
GetFieldGroupCount
(
sp
,
LOCATION_MZONE
,
0
)
==
0
end
function
c15397015
.
counterop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
:
IsActiveType
(
TYPE_MONSTER
)
then
return
end
if
ep
==
tp
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