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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
7a877677
Commit
7a877677
authored
Aug 17, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f39ca1fd
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
28 deletions
+28
-28
expansions/script/c12006012.lua
expansions/script/c12006012.lua
+1
-8
expansions/script/c12010037.lua
expansions/script/c12010037.lua
+2
-2
expansions/script/c12026031.lua
expansions/script/c12026031.lua
+2
-3
expansions/script/c12048007.lua
expansions/script/c12048007.lua
+1
-0
expansions/script/c12048008.lua
expansions/script/c12048008.lua
+1
-0
expansions/script/c16104234.lua
expansions/script/c16104234.lua
+1
-1
expansions/script/c33500611.lua
expansions/script/c33500611.lua
+20
-14
No files found.
expansions/script/c12006012.lua
View file @
7a877677
...
...
@@ -23,14 +23,7 @@ function c12006012.operation(e,tp,eg,ep,ev,re,r,rp)
if
sg
:
GetCount
()
>
0
then
Duel
.
ChangePosition
(
sg
,
POS_FACEUP_ATTACK
,
0
,
POS_FACEUP_ATTACK
,
0
)
end
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetValue
(
c12006012
.
aclimit
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_BATTLE
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
SetChainLimit
(
c12006012
.
chlimit
)
end
function
c12006012
.
chlimit
(
e
,
ep
,
tp
)
return
tp
==
ep
...
...
expansions/script/c12010037.lua
View file @
7a877677
...
...
@@ -47,7 +47,7 @@ function c12010037.filter(c,tp)
and
c
:
IsPreviousLocation
(
LOCATION_DECK
)
and
c
:
GetPreviousControler
()
==
tp
end
function
c12010037
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
eg
:
IsExists
(
c12010037
.
filter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
Duel
.
Get
TurnPlayer
()
==
1
-
tp
and
Duel
.
Get
LocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
eg
:
IsExists
(
c12010037
.
filter
,
1
,
nil
,
tp
)
end
local
g
=
eg
:
Filter
(
c12010037
.
filter
,
nil
,
tp
)
if
g
:
GetCount
()
==
1
then
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
...
...
@@ -98,7 +98,7 @@ function c12010037.spop1(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_
F
ZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_
S
ZONE
,
POS_FACEUP
,
true
)
Duel
.
RaiseEvent
(
tc
,
EVENT_CHAIN_SOLVED
,
tc
:
GetActivateEffect
(),
0
,
tp
,
tp
,
Duel
.
GetCurrentChain
())
end
end
...
...
expansions/script/c12026031.lua
View file @
7a877677
...
...
@@ -6,7 +6,7 @@ function c12026031.initial_effect(c)
--material
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
12026031
,
2
))
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
0
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
O
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetTarget
(
c12026031
.
xyztg
)
...
...
@@ -63,7 +63,7 @@ end
function
c12026031
.
xyztg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c12026031
.
xyzfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
12026031
,
2
))
local
g
=
Duel
.
SelectTarget
(
tp
,
c12026031
.
xyzfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c12026031
.
xyzfilter
,
tp
,
LOCATION_GRAVE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g
,
1
,
0
,
0
)
end
function
c12026031
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -85,7 +85,6 @@ function c12026031.cfilter(c,e,tp)
local
cs
=
e
:
GetLabel
()
return
c
:
IsSetCard
(
0x1fbd
)
and
c
:
IsAbleToHand
()
and
Duel
.
IsExistingMatchingCard
(
c12026031
.
tfilter
,
tp
,
LOCATION_DECK
,
0
,
cs
-
1
,
c
,
c
:
GetCode
())
end
function
c12026031
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
cs
=
e
:
GetLabel
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c12026031
.
cfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
expansions/script/c12048007.lua
View file @
7a877677
Duel
.
LoadScript
(
"c12048000.lua"
)
--万圣狼娘 墓城姬涅依
local
m
=
12048007
local
cm
=
_G
[
"c"
..
m
]
...
...
expansions/script/c12048008.lua
View file @
7a877677
Duel
.
LoadScript
(
"c12048000.lua"
)
--至妙之漂浮 墓城姬涅依
local
m
=
12048008
local
cm
=
_G
[
"c"
..
m
]
...
...
expansions/script/c16104234.lua
View file @
7a877677
...
...
@@ -11,7 +11,7 @@ function cm.initial_effect(c)
end
function
cm
.
limitval
(
e
,
re
)
local
rc
=
re
:
GetHandler
()
if
rc
:
IsRace
(
RACE_WARRIOR
)
then
return
false
end
if
rc
:
IsRace
(
RACE_WARRIOR
)
or
not
rc
:
IsType
(
TYPE_MONSTER
)
then
return
false
end
return
rc
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
or
rc
:
IsComplexReason
(
REASON_DESTROY
,
true
,
REASON_EFFECT
,
REASON_BATTLE
)
end
function
cm
.
sptg
(
e
,
c
)
...
...
expansions/script/c33500611.lua
View file @
7a877677
...
...
@@ -55,35 +55,41 @@ function cm.rmop(e,tp,eg,ep,ev,re,r,rp)
end
Duel
.
BreakEffect
()
Duel
.
Draw
(
tp
,
5
,
REASON_EFFECT
)
local
hg1
=
Duel
.
GetOperatedGroup
()
Duel
.
Draw
(
1
-
tp
,
5
,
REASON_EFFECT
)
-- g:Merge(tg)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
LOCATION_HAND
)
local
g
=
Duel
.
GetOperatedGroup
()
g
:
Merge
(
hg1
)
if
g
:
GetCount
()
>
0
then
local
sc
=
g
:
GetFirst
()
while
sc
do
sc
:
RegisterFlagEffect
(
m
,
RESET_PHASE
+
PHASE_END
+
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
2
))
sc
=
g
:
GetNext
()
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
1
)
sc
:
RegisterEffect
(
e1
)
sc
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
2
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
1
,
1
)
e1
:
SetValue
(
cm
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e5
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e5
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e5
:
SetTargetRange
(
1
,
1
)
e5
:
SetLabelObject
(
sc
)
e5
:
SetTarget
(
cm
.
distg
)
e5
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e5
:
SetTarget
(
cm
.
sumlimit
)
e5
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e5
,
tp
)
local
e6
=
e5
:
Clone
()
e6
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
Duel
.
RegisterEffect
(
e6
,
tp
)
sc
=
g
:
GetNext
()
end
end
end
function
cm
.
distg
(
e
,
c
)
local
sc
=
e
:
GetLabelObject
()
return
c
:
IsOriginalCodeRule
(
sc
)
function
cm
.
aclimit
(
e
,
re
,
tp
)
return
re
:
GetHandler
():
GetFlagEffect
(
m
)
~=
0
end
function
cm
.
sumlimit
(
e
,
c
)
return
c
:
GetFlagEffect
(
m
)
~=
0
end
\ No newline at end of file
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