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
Reinen
ygopro-scripts
Commits
a435d74d
Commit
a435d74d
authored
Oct 14, 2017
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
0a7ab9e0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
3 deletions
+36
-3
c59695933.lua
c59695933.lua
+17
-2
c68304813.lua
c68304813.lua
+19
-1
No files found.
c59695933.lua
View file @
a435d74d
...
...
@@ -10,11 +10,26 @@ function c59695933.initial_effect(c)
e1
:
SetTarget
(
c59695933
.
target
)
e1
:
SetOperation
(
c59695933
.
activate
)
c
:
RegisterEffect
(
e1
)
if
not
c59695933
.
global_check
then
c59695933
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
)
ge1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
)
ge1
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
ge1
:
SetValue
(
c59695933
.
valcheck
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
c59695933
.
valcheck
(
e
,
c
)
if
c
:
GetMaterialCount
()
==
1
and
c
:
GetMaterial
():
GetFirst
():
IsType
(
TYPE_MONSTER
)
then
c
:
RegisterFlagEffect
(
59695933
,
0
,
0
,
0
)
end
end
function
c59695933
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
return
tc
:
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
and
tc
:
GetMaterialCount
()
==
1
local
res
=
tc
:
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
and
tc
:
GetFlagEffect
(
59695933
)
~=
0
tc
:
ResetFlagEffect
(
59695933
)
return
res
end
function
c59695933
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
...
...
c68304813.lua
View file @
a435d74d
...
...
@@ -18,11 +18,29 @@ function c68304813.initial_effect(c)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_MSET
)
e3
:
SetLabelObject
(
e2
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e4
:
SetValue
(
c68304813
.
valcheck
)
e4
:
SetLabelObject
(
e3
)
c
:
RegisterEffect
(
e4
)
end
function
c68304813
.
valcheck
(
e
,
c
)
if
c
:
GetMaterial
():
IsExists
(
Card
.
IsType
,
2
,
nil
,
TYPE_MONSTER
)
then
e
:
GetLabelObject
():
SetLabel
(
1
)
e
:
GetLabelObject
():
GetLabelObject
():
SetLabel
(
1
)
else
e
:
GetLabelObject
():
SetLabel
(
0
)
e
:
GetLabelObject
():
GetLabelObject
():
SetLabel
(
0
)
end
end
function
c68304813
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
return
tc
:
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
and
tc
:
Get
MaterialCount
()
>=
2
and
tc
:
GetSummonPlayer
()
==
tp
return
tc
:
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
and
tc
:
Get
SummonPlayer
()
==
tp
and
e
:
GetLabel
()
==
1
end
function
c68304813
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
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