Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
5
Merge Requests
5
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
MyCard
ygopro-scripts-888
Commits
22cf56fa
Commit
22cf56fa
authored
Dec 04, 2023
by
Real_Scl
Committed by
GitHub
Dec 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ドラゴン・アイス (#2121)
if ドラゴン・アイス discard self to activate its effect, 召喚獣メルカバー cannot banish it from GY.
parent
c4942151
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
c64262809.lua
c64262809.lua
+5
-4
No files found.
c64262809.lua
View file @
22cf56fa
...
@@ -21,7 +21,8 @@ function c64262809.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -21,7 +21,8 @@ function c64262809.spcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c64262809
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c64262809
.
cfilter
,
1
,
nil
,
tp
)
end
end
function
c64262809
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c64262809
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
exc
=
(
e
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
and
not
e
:
GetHandler
():
IsAbleToGraveAsCost
())
and
e
:
GetHandler
()
or
nil
local
c
=
e
:
GetHandler
()
local
exc
=
(
c
:
IsLocation
(
LOCATION_HAND
)
and
not
c
:
IsAbleToGraveAsCost
())
and
c
or
nil
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
exc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
exc
)
end
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
exc
)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
exc
)
end
end
...
@@ -29,10 +30,10 @@ function c64262809.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -29,10 +30,10 @@ function c64262809.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetTargetCard
(
e
:
GetHandler
())
end
end
function
c64262809
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c64262809
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
c
:
IsRelateToChain
()
or
(
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsPreviousLocation
(
LOCATION_HAND
)
and
c
:
GetReasonEffect
()
==
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
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