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
19516650
Commit
19516650
authored
Jul 21, 2016
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
fd6be139
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
12 deletions
+33
-12
c73567374.lua
c73567374.lua
+33
-12
No files found.
c73567374.lua
View file @
19516650
...
@@ -14,27 +14,48 @@ function c73567374.filter(c)
...
@@ -14,27 +14,48 @@ function c73567374.filter(c)
end
end
function
c73567374
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c73567374
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c73567374
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c73567374
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c73567374
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
Duel
.
SetTargetCard
(
g
)
end
function
c73567374
.
filter2
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_DUAL
)
and
not
c
:
IsDualState
()
and
c
:
IsRelateToEffect
(
e
)
and
not
c
:
IsImmuneToEffect
(
e
)
end
end
function
c73567374
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c73567374
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c73567374
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c73567374
.
filter
2
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
local
fid
=
e
:
GetHandler
():
GetFieldID
()
while
tc
do
while
tc
do
tc
:
EnableDualState
()
tc
:
EnableDualState
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
tc
:
RegisterFlagEffect
(
73567374
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
,
fid
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c73567374
.
flipcon
)
e1
:
SetOperation
(
c73567374
.
flipop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
,
true
)
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
g
:
KeepAlive
()
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e2
:
SetCountLimit
(
1
)
e2
:
SetLabel
(
fid
)
e2
:
SetLabelObject
(
g
)
e2
:
SetCondition
(
c73567374
.
flipcon
)
e2
:
SetOperation
(
c73567374
.
flipop
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
function
c73567374
.
flipfilter
(
c
,
fid
)
return
c
:
GetFlagEffectLabel
(
73567374
)
==
fid
end
end
function
c73567374
.
flipcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c73567374
.
flipcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsCanTurnSet
()
local
g
=
e
:
GetLabelObject
()
if
not
g
:
IsExists
(
c73567374
.
flipfilter
,
1
,
nil
,
e
:
GetLabel
())
then
g
:
DeleteGroup
()
e
:
Reset
()
return
false
else
return
true
end
end
end
function
c73567374
.
flipop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c73567374
.
flipop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEDOWN_DEFENSE
)
local
g
=
e
:
GetLabelObject
()
local
dg
=
g
:
Filter
(
c73567374
.
flipfilter
,
nil
,
e
:
GetLabel
())
g
:
DeleteGroup
()
Duel
.
ChangePosition
(
dg
,
POS_FACEDOWN_DEFENSE
)
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