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
f8a9c8b3
Commit
f8a9c8b3
authored
Dec 28, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5340522a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
10 deletions
+14
-10
c26420373.lua
c26420373.lua
+7
-5
c59432181.lua
c59432181.lua
+4
-4
c86157908.lua
c86157908.lua
+2
-1
c88935103.lua
c88935103.lua
+1
-0
No files found.
c26420373.lua
View file @
f8a9c8b3
...
...
@@ -54,12 +54,14 @@ function c26420373.scop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
ct
=
e
:
GetLabel
()
local
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
26420373
,
1
),
aux
.
Stringid
(
26420373
,
2
))
local
sel
=
0
if
c
:
GetLeftScale
()
==
1
then
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
26420373
,
1
))
else
sel
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
26420373
,
1
),
aux
.
Stringid
(
26420373
,
2
))
end
if
sel
==
1
then
if
c
:
GetLeftScale
()
-
ct
>
0
then
ct
=
c
:
GetLeftScale
()
-
1
end
ct
=
ct
*-
1
ct
=-
math.min
(
ct
,
c
:
GetLeftScale
()
-
1
)
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c59432181.lua
View file @
f8a9c8b3
...
...
@@ -9,17 +9,17 @@ function c59432181.initial_effect(c)
e1
:
SetOperation
(
c59432181
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c59432181
.
filter
(
c
)
function
c59432181
.
filter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
c59432181
.
cfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
c
)
end
function
c59432181
.
cfilter
(
c
,
tc
)
return
c
:
IsType
(
TYPE_FUSION
)
and
not
c
:
IsCode
(
tc
:
GetFusionCode
())
end
function
c59432181
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c
hkc
:
IsFaceup
(
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c59432181
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c
59432181
.
filter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c59432181
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c59432181
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
end
function
c59432181
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c86157908.lua
View file @
f8a9c8b3
...
...
@@ -45,7 +45,8 @@ function c86157908.atkop(e,tp,eg,ep,ev,re,r,rp)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
local
at
=
Duel
.
GetAttacker
()
if
at
:
IsFaceup
()
and
at
:
IsRelateToBattle
()
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
at
:
IsFaceup
()
and
at
:
IsRelateToBattle
()
and
at
:
IsAttackable
()
and
not
at
:
IsStatus
(
STATUS_ATTACK_CANCELED
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
atk
=
tc
:
GetBaseAttack
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c88935103.lua
View file @
f8a9c8b3
...
...
@@ -21,6 +21,7 @@ function c88935103.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_LEAVE_FIELD_REDIRECT
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e4
:
SetValue
(
LOCATION_DECKBOT
)
e4
:
SetCondition
(
c88935103
.
rdcon
)
c
:
RegisterEffect
(
e4
)
...
...
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