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
Soulgamer
ygopro-222DIY-cards
Commits
62a06aa2
Commit
62a06aa2
authored
Jun 09, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:purerosefallen/ygopro-222DIY-cards
parents
760d544a
d3389a18
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
115 additions
and
112 deletions
+115
-112
expansions/script/c12005022.lua
expansions/script/c12005022.lua
+112
-109
expansions/script/c12006010.lua
expansions/script/c12006010.lua
+2
-2
expansions/script/c12008018.lua
expansions/script/c12008018.lua
+1
-1
No files found.
expansions/script/c12005022.lua
View file @
62a06aa2
...
...
@@ -2,7 +2,6 @@
function
c12005022
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_NEGATE
+
CATEGORY_DAMAGE
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TODECK
+
CATEGORY_TOGRAVE
+
CATEGORY_DRAW
+
CATEGORY_TODECK
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCondition
(
c12005022
.
condition
)
...
...
@@ -65,16 +64,20 @@ function c12005022.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
100
)
local
ex
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_REMOVE
)
if
re
:
IsHasCategory
(
CATEGORY_SPECIAL_SUMMON
)
then
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
c
,
1
,
0
,
0
)
end
if
re
:
IsHasCategory
(
CATEGORY_DRAW
+
CATEGORY_TOHAND
)
then
e
:
SetCategory
(
CATEGORY_DRAW
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
if
re
:
IsHasCategory
(
CATEGORY_DESTROY
+
CATEGORY_REMOVE
)
or
ex
then
e
:
SetCategory
(
CATEGORY_DESTROY
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
0
,
LOCATION_ONFIELD
)
end
if
re
:
IsHasCategory
(
CATEGORY_DISABLE
+
CATEGORY_NEGATE
+
CATEGORY_DISABLE_SUMMON
)
then
e
:
SetCategory
(
CATEGORY_DISABLE
+
CATEGORY_NEGATE
+
CATEGORY_DISABLE_SUMMON
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
end
end
...
...
expansions/script/c12006010.lua
View file @
62a06aa2
...
...
@@ -47,7 +47,7 @@ function c12006010.condition(e,tp,eg,ep,ev,re,r,rp)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetPreviousControler
()
==
tp
end
function
c12006010
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
08
fbd
)
and
(
c
:
IsAbleToHand
()
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
))
return
c
:
IsSetCard
(
0
x
8fbd
)
and
(
c
:
IsAbleToHand
()
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
))
end
function
c12006010
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c12006010
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
expansions/script/c12008018.lua
View file @
62a06aa2
...
...
@@ -83,7 +83,7 @@ function c12008018.desop(e,tp,eg,ep,ev,re,r,rp)
local
ct
=
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
if
ct
>
0
then
Duel
.
Recover
(
tp
,
1000
,
REASON_EFFECT
)
local
fg
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c12008018
.
ffilter
),
tp
,
LOCATION_
GRAVE
,
LOCATION_GRAVE
,
nil
)
local
fg
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c12008018
.
ffilter
),
tp
,
LOCATION_
DECK
+
LOCATION_GRAVE
,
LOCATION_DECK
+
LOCATION_GRAVE
,
nil
)
if
fg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
12008018
,
2
))
then
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SET
)
...
...
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