Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
nanahira
ygopro-scripts
Commits
5f929dca
Commit
5f929dca
authored
Nov 23, 2024
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix アルカナフォースEX-THE DARK RULER
parent
9e9de7b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
c69831560.lua
c69831560.lua
+16
-10
No files found.
c69831560.lua
View file @
5f929dca
--アルカナフォースEX-THE DARK RULER
--アルカナフォースEX-THE DARK RULER
local
s
,
id
,
o
=
GetID
()
---@param c Card
---@param c Card
function
c69831560
.
initial_effect
(
c
)
function
c69831560
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
...
@@ -39,14 +40,15 @@ function c69831560.initial_effect(c)
...
@@ -39,14 +40,15 @@ function c69831560.initial_effect(c)
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e5
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e5
:
SetCondition
(
c69831560
.
descon1
)
e5
:
SetOperation
(
c69831560
.
desop1
)
e5
:
SetOperation
(
c69831560
.
desop1
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
--
--
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e6
:
SetCode
(
EVENT_LEAVE_FIELD
)
e6
:
SetCode
(
EVENT_LEAVE_FIELD
)
e6
:
SetCondition
(
c69831560
.
descon2
)
e6
:
SetOperation
(
c69831560
.
desop2
)
e6
:
SetOperation
(
c69831560
.
desop2
)
e6
:
SetLabelObject
(
e5
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
end
end
function
c69831560
.
spfilter
(
c
)
function
c69831560
.
spfilter
(
c
)
...
@@ -92,16 +94,20 @@ function c69831560.posop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -92,16 +94,20 @@ function c69831560.posop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
+
RESET_SELF_TURN
,
2
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
+
RESET_SELF_TURN
,
2
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c69831560
.
descon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
and
e
:
GetHandler
():
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
==
0
end
function
c69831560
.
desop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69831560
.
desop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
and
e
:
GetHandler
():
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
==
0
then
local
c
=
e
:
GetHandler
()
e
:
SetLabel
(
1
)
c
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESET_TOFIELD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
else
e
:
SetLabel
(
0
)
end
end
function
c69831560
.
descon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
id
)
>
0
end
end
function
c69831560
.
desop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69831560
.
desop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e3
=
e
:
GetLabelObject
()
local
c
=
e
:
GetHandler
()
if
e3
and
e3
:
GetLabel
()
~=
0
then
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
Duel
.
Hint
(
HINT_CARD
,
0
,
id
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
c
:
ResetFlagEffect
(
id
)
e
:
Reset
()
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