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
0c0a6ace
Commit
0c0a6ace
authored
Oct 22, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
95cac095
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
45 deletions
+52
-45
script/c100257001.lua
script/c100257001.lua
+50
-45
script/c100423034.lua
script/c100423034.lua
+2
-0
No files found.
script/c100257001.lua
View file @
0c0a6ace
...
...
@@ -5,48 +5,55 @@ function c100257001.initial_effect(c)
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
nil
,
5
,
5
)
--spsummon condition
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e0
:
SetValue
(
aux
.
lnklimit
)
c
:
RegisterEffect
(
e0
)
--destroy
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
100257001
,
0
))
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCondition
(
c100257001
.
descon
)
e1
:
SetTarget
(
c100257001
.
destg
)
e1
:
SetOperation
(
c100257001
.
desop
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
aux
.
lnklimit
)
c
:
RegisterEffect
(
e1
)
--
immume
--
mat check
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetValue
(
c100257001
.
efilter
)
e2
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e2
:
SetValue
(
c100257001
.
matcheck
)
c
:
RegisterEffect
(
e2
)
--indes battle
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e3
:
SetValue
(
c100257001
.
indes
)
--destroy
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
100257001
,
0
))
e3
:
SetCategory
(
CATEGORY_DESTROY
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetLabelObject
(
e2
)
e3
:
SetCondition
(
c100257001
.
descon
)
e3
:
SetTarget
(
c100257001
.
destg
)
e3
:
SetOperation
(
c100257001
.
desop
)
c
:
RegisterEffect
(
e3
)
--
remov
e
--
immum
e
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
100257001
,
1
))
e4
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_TOGRAVE
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCondition
(
c100257001
.
rmcon
)
e4
:
SetTarget
(
c100257001
.
rmtg
)
e4
:
SetOperation
(
c100257001
.
rmop
)
e4
:
SetValue
(
c100257001
.
efilter
)
c
:
RegisterEffect
(
e4
)
--indes battle
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e5
:
SetValue
(
c100257001
.
indes
)
c
:
RegisterEffect
(
e5
)
--remove
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
100257001
,
1
))
e6
:
SetCategory
(
CATEGORY_REMOVE
+
CATEGORY_TOGRAVE
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e6
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetCountLimit
(
1
)
e6
:
SetCondition
(
c100257001
.
rmcon
)
e6
:
SetTarget
(
c100257001
.
rmtg
)
e6
:
SetOperation
(
c100257001
.
rmop
)
c
:
RegisterEffect
(
e6
)
end
function
c100257001
.
efilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
...
...
@@ -54,23 +61,21 @@ end
function
c100257001
.
indes
(
e
,
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
+
ATTRIBUTE_EARTH
+
ATTRIBUTE_WATER
+
ATTRIBUTE_FIRE
+
ATTRIBUTE_WIND
)
end
function
c100257001
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
function
c100257001
.
matcheck
(
e
,
c
)
local
g
=
c
:
GetMaterial
()
local
att
=
0
local
tc
=
g
:
GetFirst
()
local
res
=
true
while
tc
do
for
i
,
att
in
ipairs
({
ATTRIBUTE_DARK
,
ATTRIBUTE_EARTH
,
ATTRIBUTE_WATER
,
ATTRIBUTE_FIRE
,
ATTRIBUTE_WIND
})
do
if
bit
.
band
(
tc
:
GetLinkAttribute
(),
att
)
==
att
then
c
:
RegisterFlagEffect
(
100256901
+
100
*
i
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
end
end
att
=
att
|
tc
:
GetLinkAttribute
()
tc
=
g
:
GetNext
()
end
for
i
=
1
,
5
do
res
=
res
and
(
c
:
GetFlagEffect
(
100256901
+
100
*
i
)
>
0
)
end
return
c
:
IsSummonType
(
SUMMON_TYPE_LINK
)
and
res
e
:
SetLabel
(
att
)
end
function
c100257001
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
att
=
e
:
GetLabelObject
():
GetLabel
()
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_LINK
)
and
att
&
ATTRIBUTE_DARK
>
0
and
att
&
ATTRIBUTE_EARTH
>
0
and
att
&
ATTRIBUTE_WATER
>
0
and
att
&
ATTRIBUTE_FIRE
>
0
and
att
&
ATTRIBUTE_WIND
>
0
end
function
c100257001
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
...
...
script/c100423034.lua
View file @
0c0a6ace
...
...
@@ -49,11 +49,13 @@ function c100423034.spop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
,
true
)
Duel
.
SpecialSummonComplete
()
...
...
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