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
e60bcdb8
Commit
e60bcdb8
authored
Jun 06, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nmbd
parent
b695017f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
21 deletions
+22
-21
expansions/script/c12005028.lua
expansions/script/c12005028.lua
+21
-21
expansions/script/c33502010.lua
expansions/script/c33502010.lua
+1
-0
No files found.
expansions/script/c12005028.lua
View file @
e60bcdb8
...
...
@@ -15,26 +15,26 @@ function cm.initial_effect(c)
e1
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e1
)
--immune
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e
2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e
2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e
2
:
SetRange
(
LOCATION_MZONE
)
e
2
:
SetCondition
(
cm
.
imcon
)
e
2
:
SetValue
(
cm
.
efilter
)
c
:
RegisterEffect
(
e
2
)
local
e
1
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e
1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e
1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e
1
:
SetRange
(
LOCATION_MZONE
)
e
1
:
SetCondition
(
cm
.
imcon
)
e
1
:
SetValue
(
cm
.
efilter
)
c
:
RegisterEffect
(
e
1
)
local
e
3
=
Effect
.
CreateEffect
(
c
)
e
3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SPECIAL_SUMMON
)
e
3
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e
3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
3
:
SetCode
(
EVENT_FREE_CHAIN
)
e
3
:
SetRange
(
LOCATION_MZONE
)
e
3
:
SetCountLimit
(
1
)
e
3
:
SetCost
(
cm
.
rthcost
)
e
3
:
SetTarget
(
cm
.
rthtg
)
e
3
:
SetOperation
(
cm
.
rthop
)
c
:
RegisterEffect
(
e
3
)
local
e
1
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SPECIAL_SUMMON
)
e
1
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e
1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e
1
:
SetCode
(
EVENT_FREE_CHAIN
)
e
1
:
SetRange
(
LOCATION_MZONE
)
e
1
:
SetCountLimit
(
1
)
e
1
:
SetCost
(
cm
.
rthcost
)
e
1
:
SetTarget
(
cm
.
rthtg
)
e
1
:
SetOperation
(
cm
.
rthop
)
c
:
RegisterEffect
(
e
1
)
if
not
cm
.
global_check
then
cm
.
table
=
{}
cm
.
global_check
=
true
...
...
@@ -72,8 +72,7 @@ function cm.efilter(e,te)
end
function
cm
.
rthcfilter
(
c
,
e
)
local
cp
=
e
:
GetHandlerPlayer
()
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHandAsCost
()
and
Duel
.
GetMZoneCount
(
tp
,
c
,
cp
)
>
0
e
:
SetLabel
(
cp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHandAsCost
()
and
Duel
.
GetMZoneCount
(
tp
,
c
,
cp
)
>
0
end
function
cm
.
rthcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
@@ -81,6 +80,7 @@ function cm.rthcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
rthcfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
,
e
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_COST
)
e
:
SetLabel
(
g
:
GetFirst
():
GetHandlerPlayer
())
end
function
cm
.
rthtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
true
end
...
...
expansions/script/c33502010.lua
View file @
e60bcdb8
...
...
@@ -83,6 +83,7 @@ function cm.immop(e,tp,eg,ep,ev,re,r,rp)
if
#
cg
==
0
then
return
end
Duel
.
ConfirmCards
(
tp
,
cg
)
if
not
cg
:
IsExists
(
cm
.
thfilter6
,
1
,
nil
,
tp
)
then
Duel
.
ShuffleHand
(
1
-
tp
)
return
end
Duel
.
ShuffleHand
(
1
-
tp
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
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