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
7133b09b
Commit
7133b09b
authored
Nov 05, 2019
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua fix
parent
3ed3b1a1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
26 deletions
+29
-26
expansions/script/c17082102.lua
expansions/script/c17082102.lua
+29
-4
expansions/script/c17082104.lua
expansions/script/c17082104.lua
+0
-22
No files found.
expansions/script/c17082102.lua
View file @
7133b09b
...
...
@@ -50,10 +50,6 @@ function cm.initial_effect(c)
else
return
false
end
end
)
e0
:
SetOperation
(
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
,
og
,
min
,
max
)
local
tcode
=
e
:
GetHandler
().
dfc_back_side
e
:
GetHandler
():
SetEntityCode
(
tcode
,
true
)
e
:
GetHandler
():
ReplaceEffect
(
tcode
,
0
,
0
)
Duel
.
ShuffleExtra
(
tp
)
if
og
and
not
min
then
local
sg
=
Group
.
CreateGroup
()
local
tc
=
og
:
GetFirst
()
...
...
@@ -79,6 +75,22 @@ function cm.initial_effect(c)
Duel
.
Overlay
(
c
,
mg
)
mg
:
DeleteGroup
()
end
--back
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_ADJUST
)
e1
:
SetRange
(
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
+
LOCATION_HAND
+
LOCATION_EXTRA
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetLabel
(
e
:
GetHandler
():
GetOriginalCode
())
e1
:
SetCondition
(
cm
.
backon
)
e1
:
SetOperation
(
cm
.
backop
)
e
:
GetHandler
():
RegisterEffect
(
e1
)
local
tcode
=
17082104
e
:
GetHandler
():
SetEntityCode
(
tcode
,
true
)
e
:
GetHandler
():
ReplaceEffect
(
tcode
,
0
,
0
)
c
:
RegisterFlagEffect
(
17082102
,
nil
,
0
,
0
)
Duel
.
ShuffleExtra
(
tp
)
end
)
e0
:
SetValue
(
SUMMON_TYPE_XYZ
)
c
:
RegisterEffect
(
e0
)
...
...
@@ -146,6 +158,19 @@ end)
e7
:
SetOperation
(
cm
.
dessuc
)
c
:
RegisterEffect
(
e7
)
end
function
cm
.
backon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
e
:
GetHandler
():
GetFlagEffect
(
17082102
)
>
0
end
function
cm
.
backop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tcode
=
e
:
GetLabel
()
c
:
SetEntityCode
(
tcode
)
Duel
.
ConfirmCards
(
tp
,
Group
.
FromCards
(
c
))
Duel
.
ConfirmCards
(
1
-
tp
,
Group
.
FromCards
(
c
))
c
:
ReplaceEffect
(
tcode
,
0
,
0
)
e
:
GetHandler
():
ResetFlagEffect
(
17082102
)
end
function
cm
.
xyzfilter
(
c
)
return
c
:
IsXyzType
(
TYPE_PENDULUM
)
end
...
...
expansions/script/c17082104.lua
View file @
7133b09b
...
...
@@ -50,16 +50,6 @@ function cm.initial_effect(c)
e4
:
SetCondition
(
cm
.
damcon
)
e4
:
SetOperation
(
cm
.
damop
)
c
:
RegisterEffect
(
e4
)
--back
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCode
(
EVENT_LEAVE_FIELD
)
e5
:
SetRange
(
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
+
LOCATION_HAND
+
LOCATION_EXTRA
)
e5
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_SET_AVAILABLE
)
e5
:
SetCountLimit
(
1
)
e5
:
SetCondition
(
cm
.
backon
)
e5
:
SetOperation
(
cm
.
backop
)
c
:
RegisterEffect
(
e5
)
--atk voice
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetCategory
(
CATEGORY_ATKCHANGE
)
...
...
@@ -77,18 +67,6 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e7
)
end
cm
.
pendulum_level
=
8
function
cm
.
backon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
.
dfc_front_side
and
c
:
GetOriginalCode
()
==
c
.
dfc_back1_side
end
function
cm
.
backop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tcode
=
c
.
dfc_front_side
c
:
SetEntityCode
(
tcode
)
Duel
.
ConfirmCards
(
tp
,
Group
.
FromCards
(
c
))
Duel
.
ConfirmCards
(
1
-
tp
,
Group
.
FromCards
(
c
))
c
:
ReplaceEffect
(
tcode
,
0
,
0
)
end
function
cm
.
imcon
(
e
)
return
e
:
GetHandler
():
GetOverlayCount
()
>
0
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