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
37a9f7a2
Commit
37a9f7a2
authored
Jul 15, 2022
by
CubeRuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed
parent
f4c7a97f
Pipeline
#14574
canceled with stages
in 1 minute and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
25 deletions
+11
-25
expansions/script/c33330103.lua
expansions/script/c33330103.lua
+11
-25
No files found.
expansions/script/c33330103.lua
View file @
37a9f7a2
...
...
@@ -44,20 +44,21 @@ end
function
c33330103
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateEffect
(
ev
)
end
function
c33330103
.
hspfilter
(
c
)
function
c33330103
.
hspfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x55f
)
and
c
:
IsAbleTo
DeckOrExtra
AsCost
()
and
c
:
IsAbleTo
Remove
AsCost
()
end
function
c33330103
.
hspcon
(
e
,
c
)
function
c33330103
.
hspcon
(
e
,
c
,
tp
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
return
ft
>
0
and
Duel
.
IsExistingMatchingCard
(
c33330103
.
hspfilter
,
tp
,
LOCATION_GRAVE
,
0
,
4
,
c
)
return
ft
>
0
and
Duel
.
IsExistingMatchingCard
(
c33330103
.
hspfilter
,
tp
,
LOCATION_GRAVE
,
0
,
4
,
c
,
tp
)
end
function
c33330103
.
hspop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
c
=
e
:
GetHandler
()
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
g
=
Duel
.
IsExistingMatchingCard
(
tp
,
c33330103
.
hspfilter
,
tp
,
LOCATION_GRAVE
,
0
,
4
,
4
,
c
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c33330103
.
hspfilter
,
tp
,
LOCATION_GRAVE
,
0
,
4
,
4
,
c
,
tp
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
function
c33330103
.
actop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
...
...
@@ -75,29 +76,14 @@ function c33330103.lcfil(c)
return
c
:
IsSetCard
(
0x55f
)
and
c
:
IsLinkAbove
(
2
)
end
function
c33330103
.
atkfil
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAttackAbove
(
2
000
)
return
c
:
IsFaceup
()
and
c
:
IsAttackAbove
(
3
000
)
end
function
c33330103
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c33330103
.
atkfil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c33330103
.
atkfil
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c33330103
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g1
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
nil
)
local
g2
=
Duel
.
GetDecktopGroup
(
tp
,
1
)
local
op
=
99
if
g1
:
GetCount
()
>
0
and
g2
:
GetCount
()
>
0
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
33330103
,
0
),
aux
.
Stringid
(
33330103
,
1
))
elseif
g1
:
GetCount
()
>
0
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
33330103
,
0
))
elseif
g2
:
GetCount
()
>
0
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
33330103
,
1
))
+
1
else
return
end
local
g
=
Group
.
CreateGroup
()
if
op
==
0
then
g
=
g1
:
FilterSelect
(
tp
,
aux
.
TRUE
,
1
,
1
,
nil
)
elseif
op
==
1
then
g
=
g2
end
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
1
)
if
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
~=
0
then
local
atg
=
Duel
.
GetMatchingGroup
(
c33330103
.
atkfil
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
atc
=
atg
:
GetFirst
()
...
...
@@ -105,7 +91,7 @@ function c33330103.atkop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetValue
(
10
00
)
e1
:
SetValue
(
25
00
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
atc
:
RegisterEffect
(
e1
)
atc
=
atg
:
GetNext
()
...
...
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