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
b1a5b999
Commit
b1a5b999
authored
Nov 23, 2024
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix アルカナコール
parent
5f929dca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
c99189322.lua
c99189322.lua
+4
-10
utility.lua
utility.lua
+7
-1
No files found.
c99189322.lua
View file @
b1a5b999
...
...
@@ -36,16 +36,13 @@ function c99189322.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
regc
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
Remove
(
regc
,
POS_FACEUP
,
REASON_EFFECT
)
==
0
or
not
regc
:
IsLocation
(
LOCATION_REMOVED
)
then
return
end
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
GetFlagEffect
(
FLAG_ID_REVERSAL_OF_FATE
)
~=
0
and
tc
:
GetFlagEffect
(
FLAG_ID_ARCANA_COIN
)
~=
0
then
local
regfun
=
regc
.
arcanareg
if
not
regfun
then
return
end
local
val
=
tc
:
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
tc
:
ResetEffect
(
RESET_DISABLE
,
RESET_EVENT
)
regfun
(
tc
,
val
)
local
cid
=
tc
:
ReplaceEffect
(
regc
:
GetOriginalCode
(),
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterFlagEffect
(
99189322
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetLabel
(
cid
)
e1
:
SetLabelObject
(
tc
)
e1
:
SetOperation
(
c99189322
.
rec_effect
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
...
...
@@ -53,11 +50,8 @@ function c99189322.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c99189322
.
rec_effect
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
cid
=
e
:
GetLabel
()
local
tc
=
e
:
GetLabelObject
()
if
tc
:
GetFlagEffect
(
99189322
)
==
0
then
return
end
local
regfun
=
tc
.
arcanareg
if
not
regfun
then
return
end
local
val
=
tc
:
GetFlagEffectLabel
(
FLAG_ID_ARCANA_COIN
)
tc
:
ResetEffect
(
RESET_DISABLE
,
RESET_EVENT
)
regfun
(
tc
,
val
)
tc
:
ResetEffect
(
cid
,
RESET_COPY
)
end
utility.lua
View file @
b1a5b999
...
...
@@ -296,7 +296,13 @@ function Auxiliary.ArcanaCoinOperation(e,tp,eg,ep,ev,re,r,rp)
if
toss
then
c
:
RegisterFlagEffect
(
FLAG_ID_REVERSAL_OF_FATE
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
end
c
.
arcanareg
(
c
,
res
)
c
:
RegisterFlagEffect
(
FLAG_ID_ARCANA_COIN
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
res
,
63
-
res
)
end
---condition of Arcana Force monster effect from coin toss
---@param e Effect
---@return boolean
function
Auxiliary
.
ArcanaCondition
(
e
)
return
e
:
GetHandler
():
GetFlagEffect
(
FLAG_ID_ARCANA_COIN
)
>
0
end
function
Auxiliary
.
IsUnionState
(
effect
)
local
c
=
effect
:
GetHandler
()
...
...
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