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
Ai
ygopro-222DIY-cards
Commits
42c3c98c
Commit
42c3c98c
authored
Feb 04, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 3
parent
183adab3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
97 additions
and
92 deletions
+97
-92
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c14010237.lua
expansions/script/c14010237.lua
+13
-7
expansions/script/c60151501.lua
expansions/script/c60151501.lua
+79
-81
expansions/script/c60152603.lua
expansions/script/c60152603.lua
+5
-4
No files found.
expansions/222DIY.cdb
View file @
42c3c98c
No preview for this file type
expansions/script/c14010237.lua
View file @
42c3c98c
...
@@ -49,6 +49,13 @@ function cm.initial_effect(c)
...
@@ -49,6 +49,13 @@ function cm.initial_effect(c)
e5
:
SetOperation
(
cm
.
addcount
)
e5
:
SetOperation
(
cm
.
addcount
)
Duel
.
RegisterEffect
(
e5
,
0
)
Duel
.
RegisterEffect
(
e5
,
0
)
end
end
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e6
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e6
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e6
:
SetCondition
(
aux
.
bdocon
)
e6
:
SetOperation
(
cm
.
bdop
)
c
:
RegisterEffect
(
e6
)
end
end
function
cm
.
immcon
(
e
)
function
cm
.
immcon
(
e
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -74,13 +81,6 @@ function cm.eaop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -74,13 +81,6 @@ function cm.eaop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
500
)
e1
:
SetValue
(
500
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
if
not
(
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
)
or
c
:
GetAttackAnnouncedCount
()
==
0
then
return
end
if
Duel
.
GetAttacker
()
==
c
then
local
sg
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
#
sg
>
0
then
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
end
end
end
end
end
end
function
cm
.
resetcount
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
resetcount
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -100,3 +100,9 @@ function cm.damop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -100,3 +100,9 @@ function cm.damop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Damage
(
1
-
tp
,
ct
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
ct
,
REASON_EFFECT
)
end
end
end
end
function
cm
.
bdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sg
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
#
sg
>
0
then
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
end
end
\ No newline at end of file
expansions/script/c60151501.lua
View file @
42c3c98c
...
@@ -55,10 +55,8 @@ function c60151501.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,10 +55,8 @@ function c60151501.activate(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
60151501
,
0x9b28
,
0x21
,
1500
,
1500
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_FIRE
)
then
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
60151501
,
0x9b28
,
0x21
,
1500
,
1500
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_FIRE
)
then
c
:
AddMonsterAttribute
(
TYPE_EFFECT
)
c
:
AddMonsterAttribute
(
TYPE_EFFECT
)
Duel
.
SpecialSummonStep
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
c
:
AddMonsterAttributeComplete
()
c
:
RegisterFlagEffect
(
60151501
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
)
c
:
RegisterFlagEffect
(
60151501
,
RESET_EVENT
+
0x1fe0000
,
0
,
1
)
Duel
.
SpecialSummonComplete
()
end
end
end
end
function
c60151501
.
mvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c60151501
.
mvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
expansions/script/c60152603.lua
View file @
42c3c98c
...
@@ -93,11 +93,12 @@ function c60152603.e1op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -93,11 +93,12 @@ function c60152603.e1op(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
if
e
:
GetHandler
():
GetColumnGroupCount
()
==
0
then
if
e
:
GetHandler
():
GetColumnGroupCount
()
==
0
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
tp
,
0
,
LOCATION_GRAVE
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
nil
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60152603
,
1
))
then
if
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
60152603
,
1
))
then
Duel
.
HintSelection
(
g
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_EFFECT
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
sg
)
Duel
.
SendtoDeck
(
sg
,
nil
,
2
,
REASON_EFFECT
)
end
end
else
else
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
...
...
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