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
670ed9eb
Commit
670ed9eb
authored
Jan 15, 2022
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
5c4f2df2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
script/c101108048.lua
script/c101108048.lua
+14
-4
No files found.
script/c101108048.lua
View file @
670ed9eb
...
...
@@ -28,10 +28,19 @@ function c101108048.initial_effect(c)
e2
:
SetTarget
(
c101108048
.
destg
)
e2
:
SetOperation
(
c101108048
.
desop
)
c
:
RegisterEffect
(
e2
)
Duel
.
AddCustomActivityCounter
(
101108048
,
ACTIVITY_SPSUMMON
,
c101108048
.
penfilter
)
if
not
c101108048
.
global_check
then
c101108048
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
ge1
:
SetOperation
(
c101108048
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
c101108048
.
penfilter
(
c
)
return
not
c
:
IsSummonType
(
SUMMON_TYPE_PENDULUM
)
function
c101108048
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
Card
.
IsSummonType
,
1
,
nil
,
SUMMON_TYPE_PENDULUM
)
then
Duel
.
RegisterFlagEffect
(
rp
,
101108048
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c101108048
.
lcheck
(
g
)
return
g
:
IsExists
(
Card
.
IsLinkType
,
1
,
nil
,
TYPE_PENDULUM
)
...
...
@@ -58,6 +67,7 @@ function c101108048.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
Duel
.
ResetFlagEffect
(
tp
,
101108048
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
...
...
@@ -87,7 +97,7 @@ function c101108048.actlimit(e,re,tp)
end
function
c101108048
.
discon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
Get
CustomActivityCount
(
101108048
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
return
Duel
.
Get
FlagEffect
(
tp
,
101108048
)
==
0
end
function
c101108048
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_CONTROLER
,
CHAININFO_TRIGGERING_LOCATION
)
...
...
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