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
610d997e
Commit
610d997e
authored
Jul 07, 2019
by
mercury233
Committed by
GitHub
Jul 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 二重召喚 and サモンチェーン (#1198)
parent
789080a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
c43422537.lua
c43422537.lua
+11
-0
c9952083.lua
c9952083.lua
+11
-0
No files found.
c43422537.lua
View file @
610d997e
...
...
@@ -4,9 +4,20 @@ function c43422537.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c43422537
.
target
)
e1
:
SetOperation
(
c43422537
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c43422537
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
ct
=
0
local
ce
=
{
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_SET_SUMMON_COUNT_LIMIT
)}
for
_
,
te
in
ipairs
(
ce
)
do
ct
=
math.max
(
ct
,
te
:
GetValue
())
end
return
ct
<
2
end
end
function
c43422537
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
c9952083.lua
View file @
610d997e
...
...
@@ -5,12 +5,23 @@ function c9952083.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCondition
(
c9952083
.
condition
)
e1
:
SetTarget
(
c9952083
.
target
)
e1
:
SetOperation
(
c9952083
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c9952083
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentChain
()
>
1
and
Duel
.
CheckChainUniqueness
()
and
Duel
.
GetTurnPlayer
()
==
tp
end
function
c9952083
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
ct
=
0
local
ce
=
{
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_SET_SUMMON_COUNT_LIMIT
)}
for
_
,
te
in
ipairs
(
ce
)
do
ct
=
math.max
(
ct
,
te
:
GetValue
())
end
return
ct
<
3
end
end
function
c9952083
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
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