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
fddce544
Commit
fddce544
authored
Feb 13, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ybb
parent
0cb55ce3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
expansions/script/c35700105.lua
expansions/script/c35700105.lua
+2
-1
expansions/script/c53722003.lua
expansions/script/c53722003.lua
+1
-0
expansions/script/c64832008.lua
expansions/script/c64832008.lua
+1
-1
No files found.
expansions/script/c35700105.lua
View file @
fddce544
...
...
@@ -17,6 +17,7 @@ function cm.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
cm
.
atkcon
)
e2
:
SetTarget
(
cm
.
atktg
)
e2
:
SetOperation
(
cm
.
atkop
)
...
...
@@ -53,7 +54,7 @@ function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetValue
(
tc
:
GetAttack
())
e2
:
SetValue
(
tc
:
GetAttack
()
/
2
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e2
)
end
...
...
expansions/script/c53722003.lua
View file @
fddce544
...
...
@@ -13,6 +13,7 @@ function cm.initial_effect(c)
end
cm
[
0
]
=
0
function
cm
.
inmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
rp
==
tp
then
return
end
local
cg
=
Duel
.
GetMatchingGroup
(
nil
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
g
,
id
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
,
CHAININFO_CHAIN_ID
)
if
#
cg
>
0
and
not
cg
:
IsExists
(
function
(
c
)
return
not
c
:
IsSetCard
(
0x3531
)
end
,
1
,
nil
)
and
id
~=
cm
[
0
]
and
((
not
g
)
or
(
not
g
:
IsExists
(
function
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsOnField
()
end
,
1
,
nil
,
tp
)))
and
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
1
)
then
...
...
expansions/script/c64832008.lua
View file @
fddce544
...
...
@@ -82,7 +82,7 @@ function c64832008.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
if
e
:
GetLabel
()
~=
100
then
return
false
end
e
:
SetLabel
(
0
)
return
ft
>-
1
and
e
:
GetHandler
():
IsDiscardable
(
REASON_COST
)
and
Duel
.
IsExistingMatchingCard
(
c64832008
.
costfil
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
return
e
:
GetHandler
():
IsDiscardable
(
REASON_COST
)
and
Duel
.
IsExistingMatchingCard
(
c64832008
.
costfil
,
tp
,
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
end
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c64832008
.
costfil
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
e
:
GetHandler
())
if
g
:
GetFirst
():
IsCode
(
65010094
,
65010095
)
then
Duel
.
SetChainLimit
(
c64832008
.
chlimit
)
end
...
...
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