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
881a3b20
Commit
881a3b20
authored
Apr 17, 2025
by
Mr.Tan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 恋する乙女
parent
aa15d30d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
script/c100240001.lua
script/c100240001.lua
+6
-13
No files found.
script/c100240001.lua
View file @
881a3b20
--
--
恋する乙女
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
--must attack
...
...
@@ -25,14 +25,13 @@ function s.initial_effect(c)
e4
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e4
:
SetCategory
(
CATEGORY_CONTROL
+
CATEGORY_COUNTER
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetCode
(
EVENT_DAMAGE_STEP_END
)
e4
:
SetCondition
(
s
.
cccon
)
e4
:
SetTarget
(
s
.
cctg
)
e4
:
SetOperation
(
s
.
ccop
)
c
:
RegisterEffect
(
e4
)
end
s
.
counter_add_list
=
{
0x10
0
e
}
s
.
counter_add_list
=
{
0x10
6
e
}
function
s
.
atklimit
(
e
,
c
)
return
c
==
e
:
GetHandler
()
end
...
...
@@ -44,7 +43,7 @@ function s.cfilter(c)
end
function
s
.
cctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
b1
=
Duel
.
IsExistingMatchingCard
(
Card
.
IsCanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
0x106e
,
1
)
local
b2
=
Duel
.
IsExisting
Target
(
s
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
local
b2
=
Duel
.
IsExisting
MatchingCard
(
s
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
if
chk
==
0
then
return
b1
or
b2
end
local
op
=
0
if
b1
or
b2
then
...
...
@@ -55,18 +54,18 @@ function s.cctg(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetLabel
(
op
)
if
op
==
1
then
e
:
SetCategory
(
CATEGORY_COUNTER
)
local
g
=
Duel
.
GetMatchingGroup
(
tp
,
Card
.
IsCanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
0x106e
,
1
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
0x106e
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
g
,
1
,
0
,
0
)
elseif
op
==
2
then
e
:
SetCategory
(
CATEGORY_CONTROL
)
local
g
=
Duel
.
GetMatchingGroup
(
tp
,
s
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
g
,
1
,
0
,
0
)
end
end
function
s
.
ccop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
e
:
GetLabel
()
==
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
Select
Target
(
tp
,
Card
.
IsCanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
0x106e
,
1
)
local
g
=
Duel
.
Select
MatchingCard
(
tp
,
Card
.
IsCanAddCounter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
0x106e
,
1
)
local
tc
=
g
:
GetFirst
()
if
tc
then
tc
:
AddCounter
(
0x106e
,
1
)
...
...
@@ -80,9 +79,3 @@ function s.ccop(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
end
function
s
.
ccop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsControler
(
1
-
tp
)
then
tc
:
AddCounter
(
0x106e
,
1
)
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