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
c75936f9
Commit
c75936f9
authored
Jul 24, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Fluorohydride/ygopro#1808
parent
9ef3238a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
21 deletions
+14
-21
c17601919.lua
c17601919.lua
+6
-10
c80549379.lua
c80549379.lua
+8
-11
No files found.
c17601919.lua
View file @
c75936f9
...
@@ -3,23 +3,19 @@ function c17601919.initial_effect(c)
...
@@ -3,23 +3,19 @@ function c17601919.initial_effect(c)
c
:
EnableCounterPermit
(
0x2f
,
LOCATION_SZONE
)
c
:
EnableCounterPermit
(
0x2f
,
LOCATION_SZONE
)
--send replace
--send replace
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_SEND_REPLACE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c17601919
.
repcon
)
e1
:
SetTarget
(
c17601919
.
reptg
)
e1
:
SetOperation
(
c17601919
.
repop
)
e1
:
SetOperation
(
c17601919
.
repop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c17601919
.
rep
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c17601919
.
rep
con
(
e
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
GetDestination
()
==
LOCATION_GRAVE
and
c
:
IsReason
(
REASON_DESTROY
)
end
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
false
end
return
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
17601919
,
0
))
end
end
function
c17601919
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c17601919
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c80549379.lua
View file @
c75936f9
...
@@ -2,25 +2,22 @@
...
@@ -2,25 +2,22 @@
function
c80549379
.
initial_effect
(
c
)
function
c80549379
.
initial_effect
(
c
)
--send replace
--send replace
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_SEND_REPLACE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c80549379
.
repcon
)
e1
:
SetTarget
(
c80549379
.
reptg
)
e1
:
SetOperation
(
c80549379
.
repop
)
e1
:
SetOperation
(
c80549379
.
repop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c80549379
.
filter
(
c
)
function
c80549379
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x29
)
and
c
:
IsRace
(
RACE_WINDBEAST
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x29
)
and
c
:
IsRace
(
RACE_WINDBEAST
)
end
end
function
c80549379
.
rep
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c80549379
.
rep
con
(
e
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsFaceup
()
and
c
:
GetDestination
()
==
LOCATION_GRAVE
and
c
:
IsReason
(
REASON_DESTROY
)
end
return
c
:
IsFaceup
()
and
c
:
IsReason
(
REASON_DESTROY
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
and
Duel
.
IsExistingMatchingCard
(
c80549379
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
or
not
Duel
.
IsExistingMatchingCard
(
c80549379
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
e
:
GetHandler
())
then
return
false
end
return
Duel
.
SelectEffectYesNo
(
tp
,
c
)
end
end
function
c80549379
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c80549379
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c80549379
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c80549379
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
e
:
GetHandler
())
...
...
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