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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
ddda8305
Commit
ddda8305
authored
Mar 15, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tnndx
parent
3d8fa8da
Pipeline
#2656
passed with stages
in 25 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
expansions/script/c33310605.lua
expansions/script/c33310605.lua
+7
-7
No files found.
expansions/script/c33310605.lua
View file @
ddda8305
...
...
@@ -74,17 +74,12 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
HintSelection
(
dg
)
if
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
<=
0
or
not
c
:
IsRelateToEffect
(
e
)
or
not
c
:
IsAbleToRemove
()
or
not
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
2
))
or
Duel
.
Remove
(
c
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_TEMPORARY
)
<=
0
or
not
c
:
IsLocation
(
LOCATION_REMOVED
)
then
return
end
local
fid
=
c
:
GetFieldID
()
local
rct
=
1
if
ph
==
PHASE_BATTLE_START
then
rct
=
2
end
--local rct = Duel.GetCurrentPhase() >= PHASE_BATTLE_START and 2 or 1
c
:
RegisterFlagEffect
(
m
,
RESET_PHASE
+
RESETS_STANDARD
,
0
,
1
,
fid
)
c
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
,
fid
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE_START
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_BATTLE_START
,
rct
)
e1
:
SetLabelObject
(
c
)
e1
:
SetLabel
(
fid
)
e1
:
SetValue
(
Duel
.
GetTurnCount
())
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
cm
.
retcon
)
e1
:
SetOperation
(
cm
.
retop
)
...
...
@@ -93,10 +88,15 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
retcon
(
e
,
tp
)
local
c
=
e
:
GetLabelObject
()
return
c
:
GetFlagEffectLabel
(
m
)
==
e
:
GetLabel
()
and
Duel
.
GetTurnCount
()
>
e
:
GetValue
()
if
c
:
GetFlagEffectLabel
(
m
)
==
e
:
GetLabel
()
then
return
true
else
e
:
Reset
()
return
false
end
end
function
cm
.
retop
(
e
,
tp
)
local
c
=
e
:
GetLabelObject
()
Duel
.
Hint
(
HINT_CARD
,
0
,
m
)
Duel
.
ReturnToField
(
c
)
e
:
Reset
()
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