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
1fca242d
Commit
1fca242d
authored
Sep 04, 2016
by
nekrozar
Committed by
DailyShana
Sep 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix De-Fusion (#568)
parent
625f81ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
c95286165.lua
c95286165.lua
+4
-2
No files found.
c95286165.lua
View file @
1fca242d
...
@@ -20,10 +20,11 @@ function c95286165.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -20,10 +20,11 @@ function c95286165.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c95286165
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c95286165
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g
,
1
,
0
,
0
)
end
end
function
c95286165
.
mgfilter
(
c
,
e
,
tp
,
fusc
)
function
c95286165
.
mgfilter
(
c
,
e
,
tp
,
fusc
,
mg
)
return
not
c
:
IsControler
(
tp
)
or
not
c
:
IsLocation
(
LOCATION_GRAVE
)
return
not
c
:
IsControler
(
tp
)
or
not
c
:
IsLocation
(
LOCATION_GRAVE
)
or
bit
.
band
(
c
:
GetReason
(),
0x40008
)
~=
0x40008
or
c
:
GetReasonCard
()
~=
fusc
or
bit
.
band
(
c
:
GetReason
(),
0x40008
)
~=
0x40008
or
c
:
GetReasonCard
()
~=
fusc
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
or
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
or
not
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
or
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
or
not
fusc
:
CheckFusionMaterial
(
mg
,
c
)
end
end
function
c95286165
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c95286165
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
...
@@ -33,7 +34,8 @@ function c95286165.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -33,7 +34,8 @@ function c95286165.activate(e,tp,eg,ep,ev,re,r,rp)
local
sumtype
=
tc
:
GetSummonType
()
local
sumtype
=
tc
:
GetSummonType
()
if
Duel
.
SendtoDeck
(
tc
,
nil
,
0
,
REASON_EFFECT
)
==
0
or
bit
.
band
(
sumtype
,
SUMMON_TYPE_FUSION
)
~=
SUMMON_TYPE_FUSION
or
mg
:
GetCount
()
==
0
if
Duel
.
SendtoDeck
(
tc
,
nil
,
0
,
REASON_EFFECT
)
==
0
or
bit
.
band
(
sumtype
,
SUMMON_TYPE_FUSION
)
~=
SUMMON_TYPE_FUSION
or
mg
:
GetCount
()
==
0
or
mg
:
GetCount
()
>
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
or
mg
:
GetCount
()
>
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
or
mg
:
IsExists
(
c95286165
.
mgfilter
,
1
,
nil
,
e
,
tp
,
tc
)
then
or
mg
:
IsExists
(
c95286165
.
mgfilter
,
1
,
nil
,
e
,
tp
,
tc
,
mg
)
or
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
sumable
=
false
sumable
=
false
end
end
if
sumable
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
95286165
,
0
))
then
if
sumable
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
95286165
,
0
))
then
...
...
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