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
05361f0f
Commit
05361f0f
authored
Nov 25, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
44202178
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
16 deletions
+11
-16
expansions/script/c12026000.lua
expansions/script/c12026000.lua
+8
-8
expansions/script/c12040009.lua
expansions/script/c12040009.lua
+3
-8
No files found.
expansions/script/c12026000.lua
View file @
05361f0f
...
...
@@ -64,7 +64,7 @@ function c12026000.operation(e,tp,eg,ep,ev,re,r,rp)
e14
:
SetType
(
EFFECT_TYPE_FIELD
)
e14
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e14
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e14
:
SetTargetRange
(
0
,
1
)
e14
:
SetTargetRange
(
1
,
0
)
e14
:
SetTarget
(
c12026000
.
splimit1
)
Duel
.
RegisterEffect
(
e14
,
tp
)
local
e15
=
e14
:
Clone
()
...
...
@@ -72,17 +72,17 @@ function c12026000.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e15
,
tp
)
end
function
c12026000
.
scon1
(
e
,
tp
)
return
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_MONSTER
)
local
tp
=
e
:
GetOwnerPlayer
()
return
Duel
.
GetCustomActivityCount
(
12026000
,
tp
,
ACTIVITY_SUMMON
)
>
1
end
function
c12026000
.
splimit1
(
e
,
c
)
local
tp
=
e
:
GetHandler
()
return
not
(
c
:
IsLevelBelow
(
4
)
or
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
TYPE_MONSTER
)
)
end
function
c12026000
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
if
c
:
IsType
(
TYPE_FUSION
)
then
return
not
c
:
IsLocation
(
LOCATION_EXTRA
)
or
not
se
:
GetHandler
():
IsType
(
TYPE_SPELL
)
end
if
c
:
IsType
(
TYPE_SYNCHRO
)
then
return
not
c
:
IsLocation
(
LOCATION_EXTRA
)
or
sumtype
&
SUMMON_TYPE_SYNCHRO
~=
SUMMON_TYPE_SYNCHRO
end
if
c
:
IsType
(
TYPE_PENDULUM
)
then
return
not
c
:
IsLocation
(
LOCATION_EXTRA
)
or
sumtype
&
SUMMON_TYPE_PENDULUM
~=
SUMMON_TYPE_PENDULUM
end
if
c
:
IsType
(
TYPE_LINK
)
then
return
not
c
:
IsLocation
(
LOCATION_EXTRA
)
or
sumtype
&
SUMMON_TYPE_LINK
~=
SUMMON_TYPE_LINK
end
if
c
:
IsType
(
TYPE_XYZ
)
then
return
not
c
:
IsLocation
(
LOCATION_EXTRA
)
or
sumtype
&
SUMMON_TYPE_XYZ
~=
SUMMON_TYPE_XYZ
end
if
c
:
IsType
(
TYPE_FUSION
)
then
return
c
:
IsLocation
(
LOCATION_EXTRA
)
or
not
se
:
GetHandler
():
IsType
(
TYPE_SPELL
)
end
if
c
:
IsType
(
TYPE_SYNCHRO
)
then
return
c
:
IsLocation
(
LOCATION_EXTRA
)
and
sumtype
&
SUMMON_TYPE_SYNCHRO
~=
SUMMON_TYPE_SYNCHRO
end
if
c
:
IsType
(
TYPE_PENDULUM
)
then
return
c
:
IsLocation
(
LOCATION_EXTRA
)
and
sumtype
&
SUMMON_TYPE_PENDULUM
~=
SUMMON_TYPE_PENDULUM
end
if
c
:
IsType
(
TYPE_LINK
)
then
return
c
:
IsLocation
(
LOCATION_EXTRA
)
and
sumtype
&
SUMMON_TYPE_LINK
~=
SUMMON_TYPE_LINK
end
if
c
:
IsType
(
TYPE_XYZ
)
then
return
c
:
IsLocation
(
LOCATION_EXTRA
)
and
sumtype
&
SUMMON_TYPE_XYZ
~=
SUMMON_TYPE_XYZ
end
return
false
end
expansions/script/c12040009.lua
View file @
05361f0f
...
...
@@ -23,14 +23,9 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
return
b2
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
0
end
end
if
c
:
IsLocation
(
LOCATION_HAND
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Senya
.
PrismSpsummonFilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
tp
)
elseif
c
:
IsLocation
(
LOCATION_MZONE
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
thfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
==
0
then
return
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