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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
4514f832
Commit
4514f832
authored
Aug 09, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndyd
parent
05cd4688
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
22 deletions
+19
-22
expansions/script/c10969988.lua
expansions/script/c10969988.lua
+1
-2
expansions/script/c17061230.lua
expansions/script/c17061230.lua
+18
-20
No files found.
expansions/script/c10969988.lua
View file @
4514f832
...
...
@@ -23,8 +23,7 @@ end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
2
,
2
,
e
:
GetHandler
())
local
tc
=
g
:
GetFirst
()
if
tc
and
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
>
0
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
then
if
g
and
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
>
0
then
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
end
end
\ No newline at end of file
expansions/script/c17061230.lua
View file @
4514f832
...
...
@@ -52,15 +52,15 @@ function cm.initial_effect(c)
e6
:
SetOperation
(
cm
.
addc
)
c
:
RegisterEffect
(
e6
)
--activate cost
local
c
7
=
Effect
.
CreateEffect
(
c
)
c
7
:
SetType
(
EFFECT_TYPE_FIELD
)
c
7
:
SetCode
(
EFFECT_ACTIVATE_COST
)
c
7
:
SetRange
(
LOCATION_MZONE
)
c
7
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
c
7
:
SetTargetRange
(
0
,
1
)
c
7
:
SetCost
(
cm
.
costchk
)
c
7
:
SetOperation
(
cm
.
costop
)
c
:
RegisterEffect
(
c
7
)
local
e
7
=
Effect
.
CreateEffect
(
c
)
e
7
:
SetType
(
EFFECT_TYPE_FIELD
)
e
7
:
SetCode
(
EFFECT_ACTIVATE_COST
)
e
7
:
SetRange
(
LOCATION_MZONE
)
e
7
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e
7
:
SetTargetRange
(
0
,
1
)
e
7
:
SetCost
(
cm
.
costchk
)
e
7
:
SetOperation
(
cm
.
costop
)
c
:
RegisterEffect
(
e
7
)
--accumulate
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
@@ -70,6 +70,7 @@ function cm.initial_effect(c)
e8
:
SetTargetRange
(
0
,
1
)
c
:
RegisterEffect
(
e8
)
end
cm
.
Armageddon
=
1
function
cm
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
math.floor
(
ev
/
1000
)
if
ct
>
0
then
...
...
@@ -115,21 +116,18 @@ function cm.addc(e,tp,eg,ep,ev,re,r,rp)
c
:
AddCounter
(
0x7f3
,
d
)
end
end
function
cm
.
damfilter
(
c
,
tp
)
return
c
:
GetCounter
(
0x7f3
)
>
0
and
c
:
IsHasEffect
(
17061230
,
tp
)
function
cm
.
damfilter
(
c
)
return
c
:
GetCounter
(
0x7f3
)
>
0
and
c
.
Armageddon
==
1
end
function
cm
.
costchk
(
e
,
te_or_c
,
tp
)
local
ct
=
Duel
.
GetFlagEffect
(
tp
,
17061230
)
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
damfilter
,
tp
,
LOCATION_ONFIELD
,
nil
,
nil
,
tp
)
local
tc
=
g
:
GetFirst
()
local
sum
=
0
local
sg
=
Duel
.
GetMatchingGroup
(
cm
.
damfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
local
tc
=
sg
:
GetFirst
()
local
count
=
0
while
tc
do
local
sct
=
tc
:
GetCounter
(
0x7f3
)
tc
:
RemoveCounter
(
tp
,
0x7f3
,
sct
,
0
)
sum
=
sum
+
sct
tc
=
g
:
GetNext
()
count
=
count
+
tc
:
GetCounter
(
0x7f3
)
tc
=
sg
:
GetNext
()
end
return
Duel
.
CheckLPCost
(
tp
,
sum
*
300
)
return
Duel
.
CheckLPCost
(
tp
,
count
*
300
)
end
function
cm
.
costop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
17061230
)
...
...
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