Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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-2pick
Commits
c68ccdcb
Commit
c68ccdcb
authored
Jun 19, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aux.synlimit()
parent
4acd725c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
28 deletions
+11
-28
script/c17377751.lua
script/c17377751.lua
+1
-4
script/c26268488.lua
script/c26268488.lua
+1
-4
script/c35952884.lua
script/c35952884.lua
+1
-4
script/c39402797.lua
script/c39402797.lua
+1
-4
script/c41517789.lua
script/c41517789.lua
+1
-4
script/c89474727.lua
script/c89474727.lua
+1
-4
script/c97836203.lua
script/c97836203.lua
+1
-4
script/utility.lua
script/utility.lua
+4
-0
No files found.
script/c17377751.lua
View file @
c68ccdcb
...
...
@@ -9,7 +9,7 @@ function c17377751.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetRange
(
LOCATION_EXTRA
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c17377751
.
sum
limit
)
e1
:
SetValue
(
aux
.
syn
limit
)
c
:
RegisterEffect
(
e1
)
--Special Summon
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -22,9 +22,6 @@ function c17377751.initial_effect(c)
e2
:
SetOperation
(
c17377751
.
spop
)
c
:
RegisterEffect
(
e2
)
end
function
c17377751
.
sumlimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_SYNCHRO
)
==
SUMMON_TYPE_SYNCHRO
end
function
c17377751
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_SYNCHRO
end
...
...
script/c26268488.lua
View file @
c68ccdcb
...
...
@@ -8,7 +8,7 @@ function c26268488.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c26268488
.
sum
limit
)
e1
:
SetValue
(
aux
.
syn
limit
)
c
:
RegisterEffect
(
e1
)
--indes
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -45,9 +45,6 @@ function c26268488.initial_effect(c)
e4
:
SetOperation
(
c26268488
.
spop
)
c
:
RegisterEffect
(
e4
)
end
function
c26268488
.
sumlimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_SYNCHRO
)
==
SUMMON_TYPE_SYNCHRO
end
function
c26268488
.
repfilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsOnField
()
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
GetFlagEffect
(
26268488
)
==
0
end
...
...
script/c35952884.lua
View file @
c68ccdcb
...
...
@@ -8,7 +8,7 @@ function c35952884.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c35952884
.
sum
limit
)
e1
:
SetValue
(
aux
.
syn
limit
)
c
:
RegisterEffect
(
e1
)
--multi attack
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -54,9 +54,6 @@ function c35952884.initial_effect(c)
e6
:
SetCode
(
EVENT_TO_DECK
)
c
:
RegisterEffect
(
e6
)
end
function
c35952884
.
sumlimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_SYNCHRO
)
==
SUMMON_TYPE_SYNCHRO
end
function
c35952884
.
mfilter
(
c
)
return
not
c
:
IsType
(
TYPE_TUNER
)
end
...
...
script/c39402797.lua
View file @
c68ccdcb
...
...
@@ -8,7 +8,7 @@ function c39402797.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c39402797
.
sum
limit
)
e1
:
SetValue
(
aux
.
syn
limit
)
c
:
RegisterEffect
(
e1
)
--destroy
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -22,9 +22,6 @@ function c39402797.initial_effect(c)
e2
:
SetOperation
(
c39402797
.
desop
)
c
:
RegisterEffect
(
e2
)
end
function
c39402797
.
sumlimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_SYNCHRO
)
==
SUMMON_TYPE_SYNCHRO
end
function
c39402797
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_SYNCHRO
end
...
...
script/c41517789.lua
View file @
c68ccdcb
...
...
@@ -8,7 +8,7 @@ function c41517789.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c41517789
.
sum
limit
)
e1
:
SetValue
(
aux
.
syn
limit
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -28,9 +28,6 @@ function c41517789.initial_effect(c)
e4
:
SetOperation
(
c41517789
.
atkop
)
c
:
RegisterEffect
(
e4
)
end
function
c17377751
.
sumlimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_SYNCHRO
)
==
SUMMON_TYPE_SYNCHRO
end
function
c41517789
.
sumsuc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
GetSummonType
()
~=
SUMMON_TYPE_SYNCHRO
then
return
end
Duel
.
SetChainLimitTillChainEnd
(
aux
.
FALSE
)
...
...
script/c89474727.lua
View file @
c68ccdcb
...
...
@@ -8,7 +8,7 @@ function c89474727.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetValue
(
c89474727
.
sum
limit
)
e1
:
SetValue
(
aux
.
syn
limit
)
c
:
RegisterEffect
(
e1
)
--immune
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -32,9 +32,6 @@ function c89474727.initial_effect(c)
e3
:
SetOperation
(
c89474727
.
spop
)
c
:
RegisterEffect
(
e3
)
end
function
c89474727
.
sumlimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_SYNCHRO
)
==
SUMMON_TYPE_SYNCHRO
end
function
c89474727
.
cfilter
(
c
)
return
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsAbleToRemoveAsCost
()
end
...
...
script/c97836203.lua
View file @
c68ccdcb
...
...
@@ -8,7 +8,7 @@ function c97836203.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c97836203
.
sum
limit
)
e1
:
SetValue
(
aux
.
syn
limit
)
c
:
RegisterEffect
(
e1
)
--Negate summon
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -42,9 +42,6 @@ function c97836203.initial_effect(c)
e5
:
SetOperation
(
c97836203
.
spop
)
c
:
RegisterEffect
(
e5
)
end
function
c97836203
.
sumlimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_SYNCHRO
)
==
SUMMON_TYPE_SYNCHRO
end
function
c97836203
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentChain
()
==
0
end
...
...
script/utility.lua
View file @
c68ccdcb
...
...
@@ -1178,3 +1178,7 @@ function Auxiliary.sumreg(e,tp,eg,ep,ev,re,r,rp)
tc
=
eg
:
GetNext
()
end
end
--sp_summon condition for synchron monster
function
Auxiliary
.
synlimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_SYNCHRO
)
==
SUMMON_TYPE_SYNCHRO
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