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
4
Merge Requests
4
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
8b2b7b14
Commit
8b2b7b14
authored
Oct 09, 2023
by
mercury233
Committed by
GitHub
Oct 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix GO-DDD神零王ゼロゴッド・レイジ
parent
99a7d818
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
27 deletions
+19
-27
c40227329.lua
c40227329.lua
+19
-27
No files found.
c40227329.lua
View file @
8b2b7b14
...
@@ -21,7 +21,7 @@ function c40227329.initial_effect(c)
...
@@ -21,7 +21,7 @@ function c40227329.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCost
(
c40227329
.
effcost
)
e3
:
SetCost
(
c40227329
.
effcost
)
e3
:
Set
Condition
(
c40227329
.
effcon
)
e3
:
Set
Target
(
c40227329
.
efftg
)
e3
:
SetOperation
(
c40227329
.
effop
)
e3
:
SetOperation
(
c40227329
.
effop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--attack
--attack
...
@@ -78,40 +78,32 @@ function c40227329.effcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -78,40 +78,32 @@ function c40227329.effcost(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
nil
,
1
,
1
,
e
:
GetHandler
())
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
nil
,
1
,
1
,
e
:
GetHandler
())
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c40227329
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c40227329
.
efftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
(
c
:
IsHasEffect
(
EFFECT_DIRECT_ATTACK
)
and
Duel
.
GetFlagEffect
(
tp
,
40227330
)
>
0
and
Duel
.
GetFlagEffect
(
tp
,
40227331
)
>
0
)
local
c
=
e
:
GetHandler
()
local
b1
=
not
c
:
IsHasEffect
(
EFFECT_DIRECT_ATTACK
)
and
Duel
.
IsAbleToEnterBP
()
local
b2
=
Duel
.
GetFlagEffect
(
tp
,
40227330
)
==
0
local
b3
=
Duel
.
GetFlagEffect
(
tp
,
40227331
)
==
0
return
b1
or
b2
or
b3
end
end
end
function
c40227329
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c40227329
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
off
=
1
local
b1
=
not
c
:
IsHasEffect
(
EFFECT_DIRECT_ATTACK
)
and
Duel
.
IsAbleToEnterBP
()
local
ops
=
{}
local
b2
=
Duel
.
GetFlagEffect
(
tp
,
40227330
)
==
0
local
opval
=
{}
local
b3
=
Duel
.
GetFlagEffect
(
tp
,
40227331
)
==
0
if
not
c
:
IsHasEffect
(
EFFECT_DIRECT_ATTACK
)
and
Duel
.
IsAbleToEnterBP
()
then
local
op
=
aux
.
SelectFromOptions
(
tp
,
ops
[
off
]
=
aux
.
Stringid
(
40227329
,
0
)
{
b1
,
aux
.
Stringid
(
40227329
,
0
)},
opval
[
off
-
1
]
=
1
{
b2
,
aux
.
Stringid
(
40227329
,
1
)},
off
=
off
+
1
{
b3
,
aux
.
Stringid
(
40227329
,
2
)})
end
if
op
==
1
then
if
Duel
.
GetFlagEffect
(
tp
,
40227330
)
==
0
then
ops
[
off
]
=
aux
.
Stringid
(
40227329
,
1
)
opval
[
off
-
1
]
=
2
off
=
off
+
1
end
if
Duel
.
GetFlagEffect
(
tp
,
40227331
)
==
0
then
ops
[
off
]
=
aux
.
Stringid
(
40227329
,
2
)
opval
[
off
-
1
]
=
3
off
=
off
+
1
end
if
off
==
1
then
return
end
local
op
=
Duel
.
SelectOption
(
tp
,
table.unpack
(
ops
))
if
opval
[
op
]
==
1
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e1
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
elseif
op
val
[
op
]
==
2
then
elseif
op
==
2
then
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
...
@@ -121,7 +113,7 @@ function c40227329.effop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -121,7 +113,7 @@ function c40227329.effop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterFlagEffect
(
tp
,
40227330
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
40227330
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
elseif
op
val
[
op
]
==
3
then
elseif
op
==
3
then
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
...
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