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
Ai
ygopro-222DIY-cards
Commits
72b1a5eb
Commit
72b1a5eb
authored
Mar 03, 2021
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
888
parent
35cbe44a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
24 deletions
+23
-24
expansions/script/c64800019.lua
expansions/script/c64800019.lua
+23
-24
No files found.
expansions/script/c64800019.lua
View file @
72b1a5eb
...
@@ -45,30 +45,28 @@ end
...
@@ -45,30 +45,28 @@ end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
--negate
--negate
local
e
2
=
Effect
.
CreateEffect
(
c
)
local
e
5
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e
5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e
2
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e
5
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e
2
:
SetOperation
(
cm
.
negop
)
e
5
:
SetOperation
(
cm
.
negop
)
e
2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_CHAIN
)
e
5
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_CHAIN
)
Duel
.
RegisterEffect
(
e
2
,
tp
)
Duel
.
RegisterEffect
(
e
5
,
tp
)
--sps
--sps
if
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
or
Duel
.
GetCurrentPhase
()
==
PHASE_END
or
Duel
.
GetCurrentPhase
()
==
PHASE_DRAW
then
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e6
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e6
:
SetProperty
(
EFFECT_FLAG_NO_TURN_RESET
)
e1
:
SetProperty
(
EFFECT_FLAG_NO_TURN_RESET
)
e6
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e6
:
SetOperation
(
cm
.
spop
)
e1
:
SetOperation
(
cm
.
spop
)
Duel
.
RegisterEffect
(
e6
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e7
=
Effect
.
CreateEffect
(
c
)
else
e7
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e7
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e7
:
SetProperty
(
EFFECT_FLAG_NO_TURN_RESET
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE
)
e7
:
SetCountLimit
(
1
)
e1
:
SetProperty
(
EFFECT_FLAG_NO_TURN_RESET
)
e7
:
SetOperation
(
cm
.
spop
)
e1
:
SetCountLimit
(
1
)
Duel
.
RegisterEffect
(
e7
,
tp
)
e1
:
SetOperation
(
cm
.
spop
)
c
:
RegisterFlagEffect
(
m
+
1
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
0
,
0
,
0
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
end
function
cm
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
GetFlagEffect
(
m
)
>
0
then
return
end
if
e
:
GetHandler
():
GetFlagEffect
(
m
)
>
0
then
return
end
...
@@ -86,7 +84,7 @@ function cm.spfilter1(c,e,tp)
...
@@ -86,7 +84,7 @@ function cm.spfilter1(c,e,tp)
end
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
c
:
GetFlagEffect
(
m
+
1
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter1
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter1
,
tp
,
LOCATION_REMOVED
,
LOCATION_REMOVED
,
1
,
nil
,
e
,
tp
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
3
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
m
,
3
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
@@ -94,6 +92,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -94,6 +92,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
c
:
ResetFlagEffect
(
m
+
1
)
end
end
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