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
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-scripts
Commits
31dd2145
Commit
31dd2145
authored
Nov 20, 2017
by
nanahira
Committed by
mercury233
Nov 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Extra Pendulum Summon (#976)
parent
9ac18584
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
42 deletions
+44
-42
c29432356.lua
c29432356.lua
+44
-42
No files found.
c29432356.lua
View file @
31dd2145
...
@@ -77,6 +77,7 @@ function c29432356.hspcon(e,c)
...
@@ -77,6 +77,7 @@ function c29432356.hspcon(e,c)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
)
local
rg
=
Duel
.
GetReleaseGroup
(
tp
)
return
(
g
:
GetCount
()
>
0
or
rg
:
GetCount
()
>
0
)
and
g
:
FilterCount
(
Card
.
IsReleasable
,
nil
)
==
g
:
GetCount
()
return
(
g
:
GetCount
()
>
0
or
rg
:
GetCount
()
>
0
)
and
g
:
FilterCount
(
Card
.
IsReleasable
,
nil
)
==
g
:
GetCount
()
and
g
:
FilterCount
(
Card
.
IsSetCard
,
nil
,
0xc4
)
>=
3
and
g
:
FilterCount
(
Card
.
IsSetCard
,
nil
,
0xc4
)
>=
3
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
g
,
c
)
>
0
end
end
function
c29432356
.
hspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c29432356
.
hspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
)
local
g
=
Duel
.
GetReleaseGroup
(
tp
)
...
@@ -85,49 +86,50 @@ end
...
@@ -85,49 +86,50 @@ end
function
c29432356
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c29432356
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e1
:
SetDescription
(
aux
.
Stringid
(
29432356
,
2
))
e1
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetOperation
(
c29432356
.
checkop
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC_G
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABLE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
e1
:
SetRange
(
LOCATION_PZONE
)
c29432356
.
checkop
(
e
,
tp
)
e1
:
SetCountLimit
(
1
,
29432356
)
e1
:
SetCondition
(
c29432356
.
pencon1
)
e1
:
SetOperation
(
c29432356
.
penop1
)
e1
:
SetValue
(
SUMMON_TYPE_PENDULUM
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_GRANT
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetTargetRange
(
LOCATION_SZONE
,
0
)
e2
:
SetTarget
(
c29432356
.
eftg
)
e2
:
SetLabelObject
(
e1
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
29432356
,
2
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_SPSUMMON_PROC_G
)
e3
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_BOTH_SIDE
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetCountLimit
(
1
,
29432356
)
e3
:
SetCondition
(
c29432356
.
pencon2
)
e3
:
SetOperation
(
c29432356
.
penop2
)
e3
:
SetValue
(
SUMMON_TYPE_PENDULUM
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_GRANT
)
e4
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e4
:
SetTargetRange
(
0
,
LOCATION_SZONE
)
e4
:
SetTarget
(
c29432356
.
eftg2
)
e4
:
SetLabelObject
(
e3
)
e4
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e4
,
tp
)
end
end
function
c29432356
.
checkop
(
e
,
tp
)
function
c29432356
.
eftg
(
e
,
c
)
local
lpz
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_PZONE
,
0
)
return
c
==
Duel
.
GetFieldCard
(
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
0
)
if
lpz
~=
nil
and
lpz
:
GetFlagEffect
(
29432356
)
<=
0
then
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
function
c29432356
.
eftg2
(
e
,
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
29432356
,
2
))
local
rpz
=
Duel
.
GetFieldCard
(
1
-
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
1
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
return
c
==
Duel
.
GetFieldCard
(
1
-
e
:
GetHandlerPlayer
(),
LOCATION_PZONE
,
0
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC_G
)
and
c
:
GetFlagEffectLabel
(
31531170
)
==
rpz
:
GetFieldID
()
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABLE
)
and
rpz
:
GetFlagEffectLabel
(
31531170
)
==
c
:
GetFieldID
()
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetCountLimit
(
1
,
29432356
)
e1
:
SetCondition
(
c29432356
.
pencon1
)
e1
:
SetOperation
(
c29432356
.
penop1
)
e1
:
SetValue
(
SUMMON_TYPE_PENDULUM
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
lpz
:
RegisterEffect
(
e1
)
lpz
:
RegisterFlagEffect
(
29432356
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
local
olpz
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_PZONE
,
0
)
local
orpz
=
Duel
.
GetFieldCard
(
1
-
tp
,
LOCATION_PZONE
,
1
)
if
olpz
~=
nil
and
orpz
~=
nil
and
olpz
:
GetFlagEffect
(
29432356
)
<=
0
and
olpz
:
GetFlagEffectLabel
(
31531170
)
==
orpz
:
GetFieldID
()
and
orpz
:
GetFlagEffectLabel
(
31531170
)
==
olpz
:
GetFieldID
()
then
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetDescription
(
aux
.
Stringid
(
29432356
,
2
))
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC_G
)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_BOTH_SIDE
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetCountLimit
(
1
,
29432356
)
e2
:
SetCondition
(
c29432356
.
pencon2
)
e2
:
SetOperation
(
c29432356
.
penop2
)
e2
:
SetValue
(
SUMMON_TYPE_PENDULUM
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
olpz
:
RegisterEffect
(
e2
)
olpz
:
RegisterFlagEffect
(
29432356
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
end
function
c29432356
.
penfilter
(
c
,
e
,
tp
,
lscale
,
rscale
)
function
c29432356
.
penfilter
(
c
,
e
,
tp
,
lscale
,
rscale
)
local
lv
=
0
local
lv
=
0
...
...
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