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
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
八宫一月
ygopro-scripts
Commits
49459b0b
Commit
49459b0b
authored
Dec 25, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d9e99738
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
c58699500.lua
c58699500.lua
+4
-4
c75884822.lua
c75884822.lua
+5
-5
No files found.
c58699500.lua
View file @
49459b0b
...
...
@@ -38,16 +38,16 @@ end
function
c58699500
.
indtg
(
e
,
c
)
return
e
:
GetHandler
():
GetLinkedGroup
():
IsContains
(
c
)
end
function
c58699500
.
repfilter
(
c
)
return
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
function
c58699500
.
repfilter
(
c
,
e
)
return
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
and
not
c
:
IsImmuneToEffect
(
e
)
end
function
c58699500
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
rp
~=
tp
)
and
Duel
.
IsExistingMatchingCard
(
c58699500
.
repfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
c
)
end
and
Duel
.
IsExistingMatchingCard
(
c58699500
.
repfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
c
,
e
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c58699500
.
repfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c58699500
.
repfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
c
,
e
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_REPLACE
)
return
true
else
return
false
end
...
...
c75884822.lua
View file @
49459b0b
...
...
@@ -79,16 +79,16 @@ function c75884822.repfilter(c,tp)
and
((
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsType
(
TYPE_FUSION
))
or
c
:
IsSetCard
(
0x111
))
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c75884822
.
desfilter
(
c
,
tp
)
return
c
:
Is
Faceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_ONFIELD
+
LOCATION_HAND
+
LOCATION_GRAVE
)
and
c
:
IsSetCard
(
0xf
)
and
c
:
IsAbleToRemove
()
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
+
STATUS_BATTLE_DESTROYED
)
function
c75884822
.
desfilter
(
c
,
e
,
tp
)
return
c
:
Is
Controler
(
tp
)
and
(
c
:
IsFaceup
()
or
not
c
:
IsLocation
(
LOCATION_ONFIELD
)
)
and
c
:
IsSetCard
(
0xf
)
and
c
:
IsAbleToRemove
()
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
+
STATUS_BATTLE_DESTROYED
)
and
not
c
:
IsImmuneToEffect
(
e
)
end
function
c75884822
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c75884822
.
repfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c75884822
.
desfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c75884822
.
desfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c75884822
.
desfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c75884822
.
desfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
e
:
SetLabelObject
(
g
:
GetFirst
())
g
:
GetFirst
():
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
true
)
return
true
...
...
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