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
197043db
Commit
197043db
authored
Jul 18, 2016
by
mercury233
Committed by
DailyShana
Jul 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix (#496)
parent
bc48bf0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
c82321037.lua
c82321037.lua
+5
-5
No files found.
c82321037.lua
View file @
197043db
...
@@ -21,7 +21,7 @@ function c82321037.initial_effect(c)
...
@@ -21,7 +21,7 @@ function c82321037.initial_effect(c)
e2
:
SetOperation
(
c82321037
.
spop2
)
e2
:
SetOperation
(
c82321037
.
spop2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c
96746083
.
desfilter
(
c
)
function
c
82321037
.
desfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
((
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
())
or
c
:
IsLocation
(
LOCATION_HAND
))
and
c
:
IsDestructable
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
((
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
())
or
c
:
IsLocation
(
LOCATION_HAND
))
and
c
:
IsDestructable
()
end
end
function
c82321037
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c82321037
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
@@ -29,7 +29,7 @@ function c82321037.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -29,7 +29,7 @@ function c82321037.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
loc
=
LOCATION_MZONE
+
LOCATION_HAND
local
loc
=
LOCATION_MZONE
+
LOCATION_HAND
if
ft
<
0
then
loc
=
LOCATION_MZONE
end
if
ft
<
0
then
loc
=
LOCATION_MZONE
end
local
g
=
Duel
.
GetMatchingGroup
(
c
96746083
.
desfilter
,
tp
,
loc
,
0
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
c
82321037
.
desfilter
,
tp
,
loc
,
0
,
c
)
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
if
chk
==
0
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
g
:
GetCount
()
>=
2
and
g
:
IsExists
(
Card
.
IsAttribute
,
1
,
nil
,
ATTRIBUTE_WATER
)
and
g
:
GetCount
()
>=
2
and
g
:
IsExists
(
Card
.
IsAttribute
,
1
,
nil
,
ATTRIBUTE_WATER
)
and
(
ft
>
0
or
g
:
IsExists
(
Card
.
IsLocation
,
-
ft
+
1
,
nil
,
LOCATION_MZONE
))
end
and
(
ft
>
0
or
g
:
IsExists
(
Card
.
IsLocation
,
-
ft
+
1
,
nil
,
LOCATION_MZONE
))
end
...
@@ -44,7 +44,7 @@ function c82321037.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,7 +44,7 @@ function c82321037.spop(e,tp,eg,ep,ev,re,r,rp)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
loc
=
LOCATION_MZONE
+
LOCATION_HAND
local
loc
=
LOCATION_MZONE
+
LOCATION_HAND
if
ft
<
0
then
loc
=
LOCATION_MZONE
end
if
ft
<
0
then
loc
=
LOCATION_MZONE
end
local
g
=
Duel
.
GetMatchingGroup
(
c
96746083
.
desfilter
,
tp
,
loc
,
0
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
c
82321037
.
desfilter
,
tp
,
loc
,
0
,
c
)
if
g
:
GetCount
()
<
2
or
not
g
:
IsExists
(
Card
.
IsAttribute
,
1
,
nil
,
ATTRIBUTE_WATER
)
then
return
end
if
g
:
GetCount
()
<
2
or
not
g
:
IsExists
(
Card
.
IsAttribute
,
1
,
nil
,
ATTRIBUTE_WATER
)
then
return
end
local
g1
=
nil
local
g2
=
nil
local
g1
=
nil
local
g2
=
nil
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
...
@@ -69,8 +69,8 @@ function c82321037.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,8 +69,8 @@ function c82321037.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
return
return
end
end
local
rg
=
Duel
.
GetMatchingGroup
(
c
96746083
.
rmfilter
,
tp
,
0
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
nil
,
tp
)
local
rg
=
Duel
.
GetMatchingGroup
(
c
82321037
.
rmfilter
,
tp
,
0
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
nil
,
tp
)
if
rm
and
rg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
96746083
,
0
))
then
if
rm
and
rg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
82321037
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
tg
=
rg
:
Select
(
tp
,
1
,
2
,
nil
)
local
tg
=
rg
:
Select
(
tp
,
1
,
2
,
nil
)
Duel
.
HintSelection
(
tg
)
Duel
.
HintSelection
(
tg
)
...
...
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