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
yks
pre-release-database-cdb
Commits
f8f03a3c
Commit
f8f03a3c
authored
Mar 15, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix トリックスター・コルチカ
parent
dd17676b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
script/c100220203.lua
script/c100220203.lua
+20
-10
No files found.
script/c100220203.lua
View file @
f8f03a3c
...
@@ -8,7 +8,7 @@ function s.initial_effect(c)
...
@@ -8,7 +8,7 @@ function s.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
id
,
0
))
e1
:
SetCategory
(
CATEGORY_DAMAGE
)
e1
:
SetCategory
(
CATEGORY_DAMAGE
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_BATTLE_DESTROY
ING
)
e1
:
SetCode
(
EVENT_BATTLE_DESTROY
ED
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetRange
(
LOCATION_GRAVE
)
e1
:
SetRange
(
LOCATION_GRAVE
)
e1
:
SetCountLimit
(
1
,
id
)
e1
:
SetCountLimit
(
1
,
id
)
...
@@ -21,25 +21,35 @@ end
...
@@ -21,25 +21,35 @@ end
function
s
.
mat
(
c
)
function
s
.
mat
(
c
)
return
c
:
IsLinkSetCard
(
0xfb
)
and
not
c
:
IsLinkType
(
TYPE_LINK
)
return
c
:
IsLinkSetCard
(
0xfb
)
and
not
c
:
IsLinkType
(
TYPE_LINK
)
end
end
function
s
.
damfilter
(
c
,
tp
,
e
)
if
c
:
IsSetCard
(
0xfb
)
and
c
:
IsPreviousControler
(
tp
)
then
return
true
end
local
rc
=
c
:
GetBattleTarget
()
return
rc
:
IsSetCard
(
0xfb
)
and
(
not
rc
:
IsLocation
(
LOCATION_MZONE
)
and
rc
:
IsPreviousControler
(
tp
)
or
rc
:
IsLocation
(
LOCATION_MZONE
)
and
rc
:
IsControler
(
tp
))
end
function
s
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
eg
:
GetFirst
(
)
return
not
eg
:
IsContains
(
e
:
GetHandler
())
and
eg
:
IsExists
(
s
.
damfilter
,
1
,
nil
,
tp
,
e
)
local
bc
=
rc
:
GetBattleTarget
()
end
return
rc
:
IsRelateToBattle
()
and
rc
:
IsStatus
(
STATUS_OPPO_BATTLE
)
and
rc
:
IsSetCard
(
0xfb
)
function
s
.
tgfilter
(
c
,
e
)
and
bc
:
IsType
(
TYPE_MONSTER
)
and
bc
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_REMOVED
)
and
bc
:
IsFaceupEx
(
)
return
c
:
IsFaceupEx
()
and
c
:
GetBaseAttack
()
>
0
and
c
:
IsCanBeEffectTarget
(
e
)
end
end
function
s
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
rc
=
eg
:
GetFirst
()
local
bc
=
rc
:
GetBattleTarget
()
if
chkc
then
return
false
end
if
chkc
then
return
false
end
if
chk
==
0
then
return
not
bc
:
IsAttack
(
0
)
and
bc
:
IsCanBeEffectTarget
(
e
)
end
local
g
=
eg
:
Filter
(
s
.
tgfilter
,
nil
,
e
)
if
chk
==
0
then
return
g
:
GetCount
()
>
0
end
local
bc
=
g
:
GetFirst
()
if
g
:
GetCount
()
>
1
then
bc
=
g
:
FilterSelect
(
tp
,
s
.
tgfilter
,
1
,
1
,
nil
,
e
):
GetFirst
()
end
Duel
.
SetTargetCard
(
bc
)
Duel
.
SetTargetCard
(
bc
)
local
dam
=
bc
:
GetAttack
()
local
dam
=
bc
:
Get
Base
Attack
()
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
dam
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
dam
)
end
end
function
s
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Damage
(
1
-
tp
,
tc
:
GetAttack
(),
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
tc
:
Get
Base
Attack
(),
REASON_EFFECT
)
end
end
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