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
7739569a
Commit
7739569a
authored
Aug 18, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
778aa89a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
c26232916.lua
c26232916.lua
+5
-5
c46589034.lua
c46589034.lua
+2
-1
No files found.
c26232916.lua
View file @
7739569a
...
...
@@ -42,7 +42,7 @@ function c26232916.thcon(e,tp,eg,ep,ev,re,r,rp)
return
eg
:
IsExists
(
c26232916
.
thcfilter
,
1
,
nil
,
tp
)
end
function
c26232916
.
thfilter
(
c
)
return
(
(
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x2b
)
)
or
c
:
IsSetCard
(
0x61
))
return
(
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x2b
)
or
c
:
IsSetCard
(
0x61
))
and
c
:
IsAbleToHand
()
end
function
c26232916
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
@@ -73,9 +73,9 @@ function c26232916.aclimit(e,re,tp)
return
re
:
GetHandler
():
IsCode
(
tc
:
GetCode
())
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c26232916
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
(
(
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x2b
)
)
or
c
:
IsSetCard
(
0x61
))
return
c
:
IsFaceup
()
and
(
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x2b
)
or
c
:
IsSetCard
(
0x61
))
and
c
:
IsOnField
()
and
c
:
IsControler
(
tp
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
end
function
c26232916
.
rmfilter
(
c
)
return
c
:
IsSetCard
(
0x2b
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
...
...
@@ -84,8 +84,8 @@ function c26232916.repval(e,c)
return
c26232916
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
end
function
c26232916
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c26232916
.
repfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c26232916
.
rmfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
eg
:
IsExists
(
c26232916
.
repfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c26232916
.
rmfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c26232916
.
rmfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
...
...
c46589034.lua
View file @
7739569a
...
...
@@ -25,7 +25,8 @@ function c46589034.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c46589034
.
cfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c46589034
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
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
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
EFFECT_NO_EFFECT_DAMAGE
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c46589034
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
...
...
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