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
b5682c13
Commit
b5682c13
authored
Dec 21, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
dbaea568
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
23 deletions
+24
-23
expansions/pics/16161010.jpg
expansions/pics/16161010.jpg
+0
-0
expansions/script/c16105014.lua
expansions/script/c16105014.lua
+3
-0
expansions/script/c16160004.lua
expansions/script/c16160004.lua
+20
-22
expansions/script/c16160005.lua
expansions/script/c16160005.lua
+1
-1
No files found.
expansions/pics/16161010.jpg
View replaced file @
dbaea568
View file @
b5682c13
193 KB
|
W:
|
H:
439 KB
|
W:
|
H:
2-up
Swipe
Onion skin
expansions/script/c16105014.lua
View file @
b5682c13
...
...
@@ -4,4 +4,7 @@ function cm.initial_effect(c)
--link summon
c
:
EnableReviveLimit
()
aux
.
AddLinkProcedure
(
c
,
cm
.
mfilter
,
1
,
1
)
end
function
cm
.
mfilter
(
c
)
return
c
:
IsLinkType
(
TYPE_XYZ
)
and
((
c
:
IsRankAbove
(
10
)
and
c
:
IsRace
(
RACE_FAIRY
))
or
c
:
IsSetCard
(
0xcc3
))
end
\ No newline at end of file
expansions/script/c16160004.lua
View file @
b5682c13
--创命的大魔术师
if
not
pcall
(
function
()
require
(
"expansions/script/c16104200"
)
end
)
then
require
(
"script/c16104200"
)
end
function
c16160004
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
aux
.
EnablePendulumAttribute
(
c
,
false
)
...
...
@@ -11,8 +10,8 @@ function c16160004.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetCountLimit
(
1
,
16160004
)
e1
:
SetCondition
(
c16160004
.
condition
)
e1
:
SetCost
(
c16160004
.
cscost
)
e1
:
SetTarget
(
c16160004
.
cstarget
)
e1
:
SetOperation
(
c16160004
.
csoperation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -25,15 +24,6 @@ function c16160004.initial_effect(c)
e2
:
SetTarget
(
c16160004
.
eftg
)
e2
:
SetValue
(
c16160004
.
efilter
)
c
:
RegisterEffect
(
e2
)
--cannot release
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_RELEASE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetTargetRange
(
0
,
1
)
e3
:
SetTarget
(
c16160004
.
rellimit
)
c
:
RegisterEffect
(
e3
)
--------------"Monster EFFECT"----------------
--Removed Card Cannot Effect
local
e1_1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -72,11 +62,6 @@ end
function
c16160004
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
and
not
Duel
.
CheckPhaseActivity
()
end
function
c16160004
.
cscost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsReleasable
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsReleasable
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c16160004
.
cstarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
...
...
@@ -96,6 +81,18 @@ function c16160004.csoperation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
Card
.
IsComplexReason
(
c
,
reason1
,
reason2
,
...
)
local
res_list
=
{
reason1
,
reason2
,
...
}
local
public_reason
=
0
if
rsof
.
Check_Boolean
(
reason2
)
then
public_reason
=
reason1
res_list
=
{
...
}
end
for
_
,
reason
in
pairs
(
res_list
)
do
if
c
:
GetReason
()
&
(
reason
|
public_reason
)
==
(
reason
|
public_reason
)
then
return
true
end
end
return
false
end
function
c16160004
.
condition1
(
e
)
local
ph
=
Duel
.
GetCurrentPhase
()
return
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
...
...
@@ -113,9 +110,6 @@ end
function
c16160004
.
efilter
(
e
,
te
)
return
e
:
GetHandlerPlayer
()
~=
te
:
GetHandlerPlayer
()
and
(
Duel
.
GetCurrentPhase
()
>
PHASE_BATTLE
or
Duel
.
GetCurrentPhase
()
<
PHASE_BATTLE_START
)
end
function
c16160004
.
rellimit
(
e
,
c
,
tp
,
sumtp
)
return
c
:
IsType
(
TYPE_TOKEN
)
and
c
:
IsControler
(
e
:
GetHandlerPlayer
())
end
function
c16160004
.
aclimit
(
e
,
re
,
tp
)
local
rc
=
re
:
GetHandler
()
return
rc
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
or
rc
:
IsComplexReason
(
REASON_DESTROY
,
true
,
REASON_EFFECT
,
REASON_BATTLE
)
...
...
@@ -129,10 +123,12 @@ function c16160004.desfilter1(c,g)
end
function
c16160004
.
desfilter
(
c
,
sc
)
local
sg
=
sc
:
GetEquipGroup
()
sg
:
AddCard
(
sc
)
local
gg
=
Group
.
CreateGroup
()
gg
:
Merge
(
sg
)
gg
:
AddCard
(
sc
)
for
tc
in
aux
.
Next
(
sg
)
do
local
cg
=
tc
:
GetColumnGroup
()
local
num
=
Duel
.
GetMatchingGroupCount
(
c16160004
.
desfilter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
s
g
,
cg
)
local
num
=
Duel
.
GetMatchingGroupCount
(
c16160004
.
desfilter1
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
g
g
,
cg
)
if
num
>
0
then
return
true
end
end
...
...
@@ -159,6 +155,8 @@ function c16160004.tkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c16160004
.
eqfilter
(
c
,
sc
)
if
c
:
GetControler
()
==
tp
then
return
end
if
c
:
IsType
(
TYPE_TOKEN
)
then
return
end
if
c
:
GetReasonCard
()
and
sc
then
return
c
:
GetReasonCard
()
==
sc
elseif
c
:
GetReasonEffect
():
GetHandler
()
and
sc
then
...
...
@@ -195,7 +193,7 @@ function c16160004.eqop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetValue
(
1000
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
e
3
:
Clone
()
local
e3
=
e
2
:
Clone
()
e3
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
tc
:
RegisterEffect
(
e3
)
end
...
...
expansions/script/c16160005.lua
View file @
b5682c13
...
...
@@ -93,7 +93,7 @@ function c16160005.rmcon(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
rc
=
eg
:
GetFirst
()
return
rc
:
IsRelateToBattle
()
and
rc
:
IsStatus
(
STATUS_OPPO_BATTLE
)
and
rc
:
IsFaceup
()
and
rc
:
IsControler
(
tp
)
and
rc
:
IsFaceup
()
and
rc
:
IsControler
(
tp
)
and
rc
:
IsCode
(
16160004
)
end
function
c16160005
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
...
...
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