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
8a43c03b
You need to sign in or sign up before continuing.
Commit
8a43c03b
authored
Feb 28, 2022
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ybb
parent
ca563900
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
1 deletion
+40
-1
expansions/script/c16104408.lua
expansions/script/c16104408.lua
+35
-0
expansions/script/c16104421.lua
expansions/script/c16104421.lua
+3
-0
expansions/script/c35700123.lua
expansions/script/c35700123.lua
+2
-1
No files found.
expansions/script/c16104408.lua
View file @
8a43c03b
...
@@ -85,6 +85,41 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -85,6 +85,41 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
else
else
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
atkfilter1
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
nil
,
tc
:
GetAttack
())
while
tc1
do
if
tc1
:
IsLocation
(
LOCATION_MZONE
)
and
tc1
:
IsType
(
TYPE_EFFECT
)
then
Duel
.
NegateRelatedChain
(
tc1
,
RESET_TURN_SET
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc1
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetValue
(
RESET_TURN_SET
)
tc1
:
RegisterEffect
(
e2
)
else
if
tc1
:
IsType
(
TYPE_EFFECT
)
then
Duel
.
NegateRelatedChain
(
tc1
,
RESET_TURN_SET
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x17a0000
)
tc1
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetReset
(
RESET_EVENT
+
0x17a0000
)
tc1
:
RegisterEffect
(
e2
)
tc1
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
0x17a0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
m
,
0
))
end
end
tc1
=
g
:
GetNext
()
end
end
end
end
end
end
end
...
...
expansions/script/c16104421.lua
View file @
8a43c03b
...
@@ -99,6 +99,9 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -99,6 +99,9 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
(
c
:
GetSequence
()
==
4
-
seq
or
(
c
:
GetEquipGroup
()
and
c
:
GetEquipGroup
():
IsExists
(
cm
.
disfilter
,
1
,
nil
,
4
-
seq
)))
and
not
rg
:
IsContains
(
re
:
GetHandler
())
and
c
:
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
and
loc
&
LOCATION_SZONE
~=
0
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
(
c
:
GetSequence
()
==
4
-
seq
or
(
c
:
GetEquipGroup
()
and
c
:
GetEquipGroup
():
IsExists
(
cm
.
disfilter
,
1
,
nil
,
4
-
seq
)))
and
not
rg
:
IsContains
(
re
:
GetHandler
())
and
c
:
IsSummonType
(
SUMMON_TYPE_ADVANCE
)
and
loc
&
LOCATION_SZONE
~=
0
end
end
end
end
function
cm
.
disfilter
(
c
,
seq
)
return
c
:
GetSequence
()
==
seq
end
function
cm
.
disoperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
disoperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateEffect
(
ev
)
Duel
.
NegateEffect
(
ev
)
end
end
...
...
expansions/script/c35700123.lua
View file @
8a43c03b
...
@@ -12,6 +12,7 @@ function cm.initial_effect(c)
...
@@ -12,6 +12,7 @@ function cm.initial_effect(c)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetType
(
EFFECT_TYPE_FIELD
)
e0
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e0
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e0
:
SetRange
(
LOCATION_EXTRA
)
e0
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_DUEL
)
e0
:
SetCondition
(
function
(
e
,
c
,
og
,
min
,
max
)
e0
:
SetCondition
(
function
(
e
,
c
,
og
,
min
,
max
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
local
tp
=
c
:
GetControler
()
...
@@ -42,7 +43,7 @@ function cm.initial_effect(c)
...
@@ -42,7 +43,7 @@ function cm.initial_effect(c)
e3
:
SetCategory
(
CATEGORY_NEGATE
)
e3
:
SetCategory
(
CATEGORY_NEGATE
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_CHAINING
)
e3
:
SetCode
(
EVENT_CHAINING
)
e3
:
SetCountLimit
(
1
,
m
)
e3
:
SetCountLimit
(
1
,
m
+
10000
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCondition
(
cm
.
discon
)
e3
:
SetCondition
(
cm
.
discon
)
...
...
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