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
Crescent/毛虫
pre-release-database-cdb
Commits
3d063b9c
Commit
3d063b9c
authored
Apr 27, 2024
by
Crescent/毛虫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 027
parent
757ac471
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
42 deletions
+39
-42
script/c101205027.lua
script/c101205027.lua
+39
-42
No files found.
script/c101205027.lua
View file @
3d063b9c
...
@@ -12,6 +12,7 @@ function s.initial_effect(c)
...
@@ -12,6 +12,7 @@ function s.initial_effect(c)
e1
:
SetCost
(
s
.
drcost
)
e1
:
SetCost
(
s
.
drcost
)
e1
:
SetOperation
(
s
.
drop
)
e1
:
SetOperation
(
s
.
drop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
Duel
.
AddCustomActivityCounter
(
id
,
ACTIVITY_CHAIN
,
s
.
chainfilter
)
end
end
function
s
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
,
0
)
==
0
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
,
0
)
==
0
...
@@ -19,7 +20,6 @@ end
...
@@ -19,7 +20,6 @@ end
function
s
.
drcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
drcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
Duel
.
AddCustomActivityCounter
(
id
,
ACTIVITY_CHAIN
,
s
.
chainfilter
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
...
@@ -31,18 +31,17 @@ function s.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -31,18 +31,17 @@ function s.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
end
function
s
.
chainfilter
(
re
,
tp
,
cid
)
function
s
.
chainfilter
(
re
,
tp
,
cid
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
IsSetCard
(
0x2b4
)
return
not
(
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
IsSetCard
(
0x2b4
)
)
end
end
function
s
.
actcon
(
e
)
function
s
.
actcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
GetCustomActivityCount
(
id
,
tp
,
ACTIVITY_CHAIN
)
~=
0
return
Duel
.
GetCustomActivityCount
(
id
,
tp
,
ACTIVITY_CHAIN
)
>
1
end
end
function
s
.
aclimit
(
e
,
re
,
tp
)
function
s
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
IsSetCard
(
0x2b4
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
IsSetCard
(
0x2b4
)
end
end
function
s
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetFlagEffect
(
tp
,
id
)
==
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
...
@@ -79,8 +78,6 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -79,8 +78,6 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp)
e6
:
SetOperation
(
s
.
tdop
)
e6
:
SetOperation
(
s
.
tdop
)
e6
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e6
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e6
,
tp
)
Duel
.
RegisterEffect
(
e6
,
tp
)
Duel
.
RegisterFlagEffect
(
tp
,
id
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
end
end
end
function
s
.
filter
(
c
,
sp
)
function
s
.
filter
(
c
,
sp
)
return
c
:
IsSummonPlayer
(
sp
)
and
c
:
IsSummonLocation
(
LOCATION_HAND
)
return
c
:
IsSummonPlayer
(
sp
)
and
c
:
IsSummonLocation
(
LOCATION_HAND
)
...
...
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