Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
REIKAI
ygopro-222DIY-cards
Commits
1d3eb11b
Commit
1d3eb11b
authored
Dec 11, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace c60000032.lua
parent
f4f9479f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
expansions/script/c60000032.lua
expansions/script/c60000032.lua
+7
-10
No files found.
expansions/script/c60000032.lua
View file @
1d3eb11b
...
...
@@ -16,16 +16,11 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_DAMAGE
)
--e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
EFFECT_COUNT_CODE_CHAIN
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_GRAVE
)
e1
:
SetCondition
(
cm
.
spcon
)
e1
:
SetTarget
(
cm
.
sptg
)
e1
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCountLimit
(
1
,
m
)
c
:
RegisterEffect
(
e2
)
--to hand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
@@ -80,12 +75,14 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
GetLocation
()
==
LOCATION_HAND
then
i
=
1
else
i
=
2
end
if
not
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
i
))
then
return
end
local
c
=
e
:
GetHandler
()
local
i
=
e
:
GetHandler
():
GetLocation
()
==
LOCATION_HAND
and
1
or
2
if
Duel
.
GetFlagEffect
(
tp
,
m
+
i
)
~=
0
or
not
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
i
))
then
return
end
Duel
.
RegisterFlagEffect
(
tp
,
m
+
i
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
c
=
e
:
GetHandler
()
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
true
,
POS_FACEUP
)
~=
0
then
c
:
CompleteProcedure
()
end
local
i
=
math.random
(
3
,
8
)
Duel
.
Hint
(
24
,
0
,
aux
.
Stringid
(
60000032
,
i
))
local
desc
=
math.random
(
3
,
8
)
Duel
.
Hint
(
24
,
0
,
aux
.
Stringid
(
60000032
,
desc
))
end
function
cm
.
thfilter
(
c
)
return
aux
.
IsCodeListed
(
c
,
60000032
)
and
c
:
IsAbleToHand
()
...
...
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