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
八宫一月
ygopro-scripts
Commits
ce6dab4d
Commit
ce6dab4d
authored
Dec 10, 2019
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Judgment of the Desert
parent
d203ce48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
c4869446.lua
c4869446.lua
+15
-2
No files found.
c4869446.lua
View file @
ce6dab4d
...
@@ -19,18 +19,31 @@ function c4869446.initial_effect(c)
...
@@ -19,18 +19,31 @@ function c4869446.initial_effect(c)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTarget
(
c4869446
.
postg
)
e3
:
SetTarget
(
c4869446
.
postg
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
local
ng
=
Group
.
CreateGroup
()
ng
:
KeepAlive
()
e2
:
SetLabelObject
(
ng
)
e3
:
SetLabelObject
(
ng
)
end
end
function
c4869446
.
cfilter
(
c
)
function
c4869446
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsPreviousPosition
(
POS_FACEDOWN
)
return
c
:
IsFaceup
()
and
c
:
IsPreviousPosition
(
POS_FACEDOWN
)
end
end
function
c4869446
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c4869446
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
sg
=
e
:
GetLabelObject
()
if
c
:
GetFlagEffect
(
4869446
)
==
0
then
sg
:
Clear
()
c
:
RegisterFlagEffect
(
4869446
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
end
local
g
=
eg
:
Filter
(
c4869446
.
cfilter
,
nil
)
local
g
=
eg
:
Filter
(
c4869446
.
cfilter
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
e
:
GetHandler
():
SetCardTarget
(
tc
)
sg
:
AddCard
(
tc
)
tc
:
CreateRelation
(
c
,
RESET_EVENT
+
RESETS_STANDARD
)
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
end
end
function
c4869446
.
postg
(
e
,
c
)
function
c4869446
.
postg
(
e
,
c
)
return
e
:
GetHandler
():
IsHasCardTarget
(
c
)
local
g
=
e
:
GetLabelObject
()
if
e
:
GetHandler
():
GetFlagEffect
(
4869446
)
==
0
or
g
:
GetCount
()
==
0
then
return
false
end
return
g
:
IsContains
(
c
)
and
c
:
IsRelateToCard
(
e
:
GetHandler
())
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