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
c42d7536
Commit
c42d7536
authored
Jun 07, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nmbd
parent
fd8f5c4f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
expansions/script/c12045017.lua
expansions/script/c12045017.lua
+4
-1
expansions/script/c12051020.lua
expansions/script/c12051020.lua
+1
-1
expansions/script/c12051021.lua
expansions/script/c12051021.lua
+5
-3
No files found.
expansions/script/c12045017.lua
View file @
c42d7536
--迁越的魔女 托阿敏
function
c12045017
.
initial_effect
(
c
)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
--tohand
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DRAW
+
CATEGORY_DESTROY
)
...
...
@@ -23,6 +25,7 @@ function c12045017.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_TO_GRAVE
)
e1
:
SetCountLimit
(
1
,
12045018
)
e1
:
SetTarget
(
c12045017
.
rettg
)
e1
:
SetOperation
(
c12045017
.
retop
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -32,7 +35,7 @@ function c12045017.initial_effect(c)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetProperty
(
EFFECT_FLAG_NO_TURN_RESET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
,
12045017
)
e1
:
SetCondition
(
c12045017
.
discon
)
e1
:
SetOperation
(
c12045017
.
disop
)
c
:
RegisterEffect
(
e1
)
...
...
expansions/script/c12051020.lua
View file @
c42d7536
...
...
@@ -70,7 +70,7 @@ function c12051020.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c12051020
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToGrave
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c12051020
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
...
...
expansions/script/c12051021.lua
View file @
c42d7536
...
...
@@ -18,8 +18,10 @@ function c12051021.initial_effect(c)
c
:
RegisterEffect
(
e3
)
local
e31
=
Effect
.
CreateEffect
(
c
)
e31
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e31
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e31
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e31
:
SetRange
(
LOCATION_MZONE
)
e31
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e31
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e31
:
SetCountLimit
(
1
,
12051023
)
e31
:
SetCondition
(
c12051021
.
rmcon
)
e31
:
SetTarget
(
c12051021
.
target2
)
...
...
@@ -49,7 +51,7 @@ function c12051021.efilter(e,te)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
function
c12051021
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
~=
ep
and
Duel
.
GetCurrentChain
()
==
0
return
tp
~=
ep
end
function
c12051021
.
filters
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_WINDBEAST
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
@@ -92,7 +94,7 @@ function c12051021.thfilter(c)
end
function
c12051021
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c12051021
.
thfilter1
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
chk
==
0
then
return
ct
>
0
and
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
ct
>
0
and
Duel
.
IsExistingMatchingCard
(
c12051021
.
thfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c12051021
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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