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
a43e52ca
Commit
a43e52ca
authored
Mar 09, 2016
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
36e9b11a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
+20
-19
c19337371.lua
c19337371.lua
+20
-19
No files found.
c19337371.lua
View file @
a43e52ca
...
@@ -4,21 +4,30 @@ function c19337371.initial_effect(c)
...
@@ -4,21 +4,30 @@ function c19337371.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCo
st
(
c19337371
.
cost
)
e1
:
SetCo
untLimit
(
1
,
19337371
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetTarget
(
c19337371
.
target
)
e1
:
SetTarget
(
c19337371
.
target
)
e1
:
SetOperation
(
c19337371
.
activate
)
e1
:
SetOperation
(
c19337371
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
--
reg
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCondition
(
c19337371
.
regcon
)
e2
:
SetCondition
(
c19337371
.
regcon
)
e2
:
SetOperation
(
c19337371
.
regop
)
e2
:
SetOperation
(
c19337371
.
regop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
--search
function
c19337371
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
e3
=
Effect
.
CreateEffect
(
c
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
19337371
)
==
0
end
e3
:
SetDescription
(
aux
.
Stringid
(
19337371
,
0
))
Duel
.
RegisterFlagEffect
(
tp
,
19337371
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetRange
(
LOCATION_GRAVE
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetCountLimit
(
1
,
19337371
+
EFFECT_COUNT_CODE_OATH
)
e3
:
SetCondition
(
c19337371
.
thcon
)
e3
:
SetTarget
(
c19337371
.
thtg
)
e3
:
SetOperation
(
c19337371
.
thop
)
c
:
RegisterEffect
(
e3
)
end
end
function
c19337371
.
filter
(
c
)
function
c19337371
.
filter
(
c
)
return
c
:
IsCode
(
90219263
)
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
90219263
)
and
c
:
IsAbleToHand
()
...
@@ -40,24 +49,16 @@ function c19337371.regcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,24 +49,16 @@ function c19337371.regcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_HAND
+
LOCATION_ONFIELD
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_HAND
+
LOCATION_ONFIELD
)
end
end
function
c19337371
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c19337371
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e
:
GetHandler
():
RegisterFlagEffect
(
19337371
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
e1
:
SetDescription
(
aux
.
Stringid
(
19337371
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetRange
(
LOCATION_GRAVE
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetTarget
(
c19337371
.
thtg
)
e1
:
SetOperation
(
c19337371
.
thop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e
:
GetHandler
():
RegisterEffect
(
e1
)
end
end
function
c19337371
.
thfilter
(
c
)
function
c19337371
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x64
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x64
)
and
c
:
IsAbleToHand
()
end
end
function
c19337371
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
19337371
)
>
0
end
function
c19337371
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c19337371
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
19337371
)
==
0
end
if
chk
==
0
then
return
true
end
Duel
.
RegisterFlagEffect
(
tp
,
19337371
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c19337371
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c19337371
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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