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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
712fb187
Commit
712fb187
authored
Aug 31, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wadashimo
parent
adc67645
Pipeline
#658
passed with stages
in 39 minutes and 22 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
expansions/script/c1111005.lua
expansions/script/c1111005.lua
+8
-4
expansions/script/c12030020.lua
expansions/script/c12030020.lua
+2
-8
No files found.
expansions/script/c1111005.lua
View file @
712fb187
...
...
@@ -7,7 +7,7 @@ cm.named_with_Butterfly=true
function
c1111005
.
initial_effect
(
c
)
--
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_
TOHAND
+
CATEGORY_REMOVE
)
e1
:
SetCategory
(
CATEGORY_
SEARCH
+
CATEGORY_TOHAND
+
CATEGORY_DRAW
+
CATEGORY_TODECK
+
CATEGORY_REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c1111005
.
tg1
)
...
...
@@ -44,8 +44,12 @@ function c1111005.op1(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c1111005
.
tfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
tg
:
GetCount
()
<
1
then
return
end
local
tc
=
tg
:
GetFirst
()
if
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
<
1
then
return
end
if
Duel
.
Remove
(
tg
:
GetFirst
(),
POS_FACEUP
,
REASON_EFFECT
)
<
1
then
return
end
--
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
if
sg
:
GetCount
()
<
0
then
return
end
if
Duel
.
SendtoHand
(
sg
:
GetFirst
(),
nil
,
REASON_EFFECT
)
<
1
then
return
end
--
local
b1
=
tc
:
IsType
(
TYPE_PENDULUM
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
local
b2
=
tc
:
IsType
(
TYPE_RITUAL
)
and
Duel
.
IsExistingMatchingCard
(
c1111005
.
ofilter1_2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
...
...
@@ -64,7 +68,7 @@ function c1111005.op1(e,tp,eg,ep,ev,re,r,rp)
end
if
b3
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
rg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
63
,
nil
)
local
rg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
63
,
nil
)
if
rg
:
GetCount
()
<
1
then
return
end
Duel
.
SendtoDeck
(
rg
,
nil
,
2
,
REASON_EFFECT
)
end
...
...
expansions/script/c12030020.lua
View file @
712fb187
...
...
@@ -61,6 +61,7 @@ function c12030020.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCategory
(
CATEGORY_RECOVER
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_DAMAGE
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e2
:
SetCondition
(
c12030020
.
con1
)
e2
:
SetOperation
(
c12030020
.
op1
)
Duel
.
RegisterEffect
(
e2
,
tp
)
...
...
@@ -120,15 +121,8 @@ function c12030020.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
12030020
,
nil
,
0x1011
,
700
,
0
,
1
,
RACE_SPELLCASTER
,
ATTRIBUTE_LIGHT
)
then
c
:
AddMonsterAttribute
(
TYPE_NORMAL
+
TYPE_TUNER
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetValue
(
TYPE_MONSTER
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e2
,
true
)
--redirect
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
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