Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
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
MyCard
ygopro-pre-data
Commits
fbf2cf69
Commit
fbf2cf69
authored
May 19, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
7239b3a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
15 deletions
+5
-15
script/c100266027.lua
script/c100266027.lua
+5
-15
No files found.
script/c100266027.lua
View file @
fbf2cf69
...
@@ -77,21 +77,13 @@ function c100266027.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -77,21 +77,13 @@ function c100266027.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e2
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetLabel
(
c100266027
.
getsummoncount
(
tp
))
e2
:
SetTarget
(
c100266027
.
splimit
)
e2
:
SetTarget
(
c100266027
.
splimit
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e3
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e4
:
SetOperation
(
c100266027
.
checkop
)
e4
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e4
,
tp
)
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
Duel
.
RegisterEffect
(
e5
,
tp
)
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
)
e6
:
SetCode
(
EFFECT_SPSUMMON_COUNT_LIMIT
)
e6
:
SetCode
(
EFFECT_SPSUMMON_COUNT_LIMIT
)
...
@@ -101,6 +93,9 @@ function c100266027.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -101,6 +93,9 @@ function c100266027.activate(e,tp,eg,ep,ev,re,r,rp)
e6
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e6
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e6
,
tp
)
Duel
.
RegisterEffect
(
e6
,
tp
)
end
end
function
c100266027
.
getsummoncount
(
tp
)
return
Duel
.
GetActivityCount
(
tp
,
ACTIVITY_SUMMON
)
+
Duel
.
GetActivityCount
(
tp
,
ACTIVITY_SPSUMMON
)
end
function
c100266027
.
rmfilter
(
c
,
fid
)
function
c100266027
.
rmfilter
(
c
,
fid
)
return
c
:
GetFlagEffectLabel
(
100266027
)
==
fid
return
c
:
GetFlagEffectLabel
(
100266027
)
==
fid
end
end
...
@@ -118,10 +113,5 @@ function c100266027.rmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -118,10 +113,5 @@ function c100266027.rmop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Remove
(
tg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
tg
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
function
c100266027
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
function
c100266027
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
return
Duel
.
GetFlagEffect
(
sump
,
100266027
)
>
0
return
c100266027
.
getsummoncount
(
sump
)
>
e
:
GetLabel
()
end
function
c100266027
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
Card
.
GetSummonPlayer
,
1
,
nil
,
tp
)
then
Duel
.
RegisterFlagEffect
(
tp
,
100266027
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
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