Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
MyCard
pre-release-database-cdb
Commits
ae34c6f2
Commit
ae34c6f2
authored
Jul 10, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Kuebiko
parent
9521c3a2
Pipeline
#28285
passed with stages
in 1 minute and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
script/c101205083.lua
script/c101205083.lua
+11
-8
No files found.
script/c101205083.lua
View file @
ae34c6f2
...
...
@@ -9,7 +9,7 @@ function s.initial_effect(c)
e1
:
SetCountLimit
(
1
,
id
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetTarget
(
s
.
target
)
e1
:
SetOperation
(
s
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--negate
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
...
...
@@ -21,7 +21,7 @@ function s.initial_effect(c)
e2
:
SetCondition
(
s
.
discon
)
e2
:
SetTarget
(
s
.
distg
)
e2
:
SetOperation
(
s
.
disop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
function
s
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
IsCostChecked
()
...
...
@@ -40,10 +40,10 @@ function s.discfilter(c,tp)
end
function
s
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
if
rp
~=
1
-
tp
or
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
tg
and
tg
:
IsExists
(
s
.
discfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
if
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
or
not
c
:
GetSummonType
()
==
SUMMON_TYPE_SPECIAL
+
SUMMON_VALUE_SELF
then
return
false
end
if
rp
~=
1
-
tp
or
not
re
:
Is
ActiveType
(
TYPE_MONSTER
)
or
not
re
:
Is
HasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
local
loc
,
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TARGET_CARDS
)
return
loc
==
LOCATION_MZONE
and
tg
and
tg
:
IsExists
(
s
.
discfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
end
function
s
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
@@ -58,7 +58,10 @@ end
function
s
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
tg
=
g
:
GetMaxGroup
(
Card
.
GetAttack
)
if
Duel
.
SSet
(
tp
,
e
:
GetHandler
())
and
Duel
.
NegateEffect
(
ev
)
and
tg
:
IsContains
(
re
:
GetHandler
())
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SendtoHand
(
eg
,
nil
,
REASON_EFFECT
)
local
c
=
e
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SSet
(
tp
,
c
)
and
Duel
.
NegateEffect
(
ev
)
and
tg
:
IsContains
(
rc
)
and
rc
:
IsRelateToEffect
(
re
)
then
Duel
.
BreakEffect
()
Duel
.
SendtoHand
(
rc
,
nil
,
REASON_EFFECT
)
end
end
\ No newline at end of file
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