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
7e69a69d
Commit
7e69a69d
authored
Dec 30, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #207 from nekrozar/patch-1
fix Over Destiny
parents
ae1e5bd2
8aab285b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
c72204747.lua
c72204747.lua
+5
-5
No files found.
c72204747.lua
View file @
7e69a69d
...
...
@@ -11,8 +11,8 @@ function c72204747.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c72204747
.
filter1
(
c
,
e
,
sp
)
local
lv
=
c
:
GetLevel
()
/
2
return
lv
>
1
and
c
:
IsSetCard
(
0xc008
)
local
lv
=
math.floor
(
c
:
GetLevel
()
/
2
)
return
lv
>
0
and
c
:
IsSetCard
(
0xc008
)
and
Duel
.
IsExistingMatchingCard
(
c72204747
.
filter2
,
sp
,
LOCATION_DECK
,
0
,
1
,
nil
,
lv
,
e
,
sp
)
end
function
c72204747
.
filter2
(
c
,
lv
,
e
,
sp
)
...
...
@@ -31,10 +31,10 @@ function c72204747.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
or
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
cg
=
Duel
.
SelectMatchingCard
(
tp
,
c72204747
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
tc
:
GetLevel
()
/
2
,
e
,
tp
)
local
cg
=
Duel
.
SelectMatchingCard
(
tp
,
c72204747
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
math.floor
(
tc
:
GetLevel
()
/
2
)
,
e
,
tp
)
if
cg
:
GetCount
()
==
0
then
return
end
local
sc
=
cg
:
GetFirst
()
Duel
.
SpecialSummon
(
cg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
;
Duel
.
SpecialSummon
(
cg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
--destroy
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
...
...
@@ -46,5 +46,5 @@ function c72204747.activate(e,tp,eg,ep,ev,re,r,rp)
sc
:
RegisterEffect
(
e1
)
end
function
c72204747
.
des
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
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