Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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
ygopro-scripts-888
Commits
719a71eb
Commit
719a71eb
authored
Oct 07, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/patch-new-2024' into master
parents
495e8149
5a832eca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
102 deletions
+0
-102
c42427230.lua
c42427230.lua
+0
-102
No files found.
c42427230.lua
deleted
100644 → 0
View file @
495e8149
--ディーヴジャン
function
c42427230
.
initial_effect
(
c
)
--token
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
42427230
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
42427230
)
e1
:
SetCost
(
c42427230
.
spcost
)
e1
:
SetTarget
(
c42427230
.
sptg
)
e1
:
SetOperation
(
c42427230
.
spop
)
c
:
RegisterEffect
(
e1
)
--Destroy
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
42427230
,
1
))
e2
:
SetCategory
(
CATEGORY_DESTROY
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_REMOVE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
42427231
)
e2
:
SetTarget
(
c42427230
.
destg
)
e2
:
SetOperation
(
c42427230
.
desop
)
c
:
RegisterEffect
(
e2
)
end
function
c42427230
.
cfilter
(
c
,
tp
)
return
(
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
())
and
c
:
IsCode
(
42427230
)
end
function
c42427230
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
rg
=
Duel
.
GetMatchingGroup
(
c42427230
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
tp
)
if
chk
==
0
then
return
rg
:
GetCount
()
==
rg
:
FilterCount
(
Card
.
IsReleasable
,
nil
)
and
rg
:
GetCount
()
~=
0
and
Duel
.
GetMZoneCount
(
tp
,
rg
)
>
0
end
local
ct
=
Duel
.
Release
(
rg
,
REASON_COST
)
*
2
e
:
SetLabel
(
ct
)
end
function
c42427230
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
42427231
,
0
,
TYPES_TOKEN_MONSTER
,
200
,
200
,
1
,
RACE_MACHINE
,
ATTRIBUTE_FIRE
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
c42427230
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ct
=
e
:
GetLabel
()
if
ft
>
0
and
ct
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
42427231
,
0
,
TYPES_TOKEN_MONSTER
,
200
,
200
,
1
,
RACE_MACHINE
,
ATTRIBUTE_FIRE
)
then
local
count
=
math.min
(
ft
,
ct
)
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
count
=
1
end
if
count
>
1
then
local
num
=
{}
local
i
=
1
while
i
<=
count
do
num
[
i
]
=
i
i
=
i
+
1
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
42427230
,
2
))
count
=
Duel
.
AnnounceNumber
(
tp
,
table.unpack
(
num
))
end
for
i
=
1
,
count
do
local
token
=
Duel
.
CreateToken
(
tp
,
42427231
)
if
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
42427230
,
3
))
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD
)
e1
:
SetLabel
(
tp
)
e1
:
SetOperation
(
c42427230
.
damop
)
token
:
RegisterEffect
(
e1
,
true
)
end
end
Duel
.
SpecialSummonComplete
()
end
end
function
c42427230
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
p
=
e
:
GetLabel
()
if
c
:
IsReason
(
REASON_DESTROY
)
then
Duel
.
Damage
(
1
-
p
,
500
,
REASON_EFFECT
)
end
e
:
Reset
()
end
function
c42427230
.
desfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_TOKEN
)
end
function
c42427230
.
desfilter2
(
c
,
e
)
return
c42427230
.
desfilter
(
c
)
and
c
:
IsCanBeEffectTarget
(
e
)
end
function
c42427230
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
tp
)
and
c42427230
.
desfilter
(
chkc
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c42427230
.
desfilter2
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
,
e
)
if
chk
==
0
then
return
g
:
GetCount
()
~=
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
sg
=
g
:
Select
(
tp
,
1
,
g
:
GetCount
(),
nil
)
Duel
.
SetTargetCard
(
sg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sg
,
sg
:
GetCount
(),
0
,
0
)
end
function
c42427230
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
g
:
GetCount
()
~=
0
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
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