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
703a60c5
Commit
703a60c5
authored
Apr 16, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ladies and xiangqinmen
parent
67b797c1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
6 deletions
+27
-6
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c60159931.lua
expansions/script/c60159931.lua
+27
-6
No files found.
expansions/222DIY.cdb
View file @
703a60c5
No preview for this file type
expansions/script/c60159931.lua
View file @
703a60c5
...
...
@@ -15,22 +15,33 @@ function c60159931.initial_effect(c)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
c
:
RegisterEffect
(
e2
)
--
cannot attack
--
inactivatable
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_DISABLE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetTarget
(
c60159931
.
e
3
tg
)
e3
:
SetTarget
(
c60159931
.
e
6
tg
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_CANNOT_INACTIVATE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetValue
(
c60159931
.
effectfilter
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e3
:
Clone
()
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_CANNOT_DISEFFECT
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetValue
(
c60159931
.
effectfilter
)
c
:
RegisterEffect
(
e5
)
local
e6
=
e3
:
Clone
()
--cannot attack
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
)
e6
:
SetCode
(
EFFECT_PIERCE
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e6
:
SetTarget
(
c60159931
.
e6tg
)
c
:
RegisterEffect
(
e6
)
end
function
c60159931
.
matfilter
(
c
)
...
...
@@ -39,6 +50,16 @@ end
function
c60159931
.
e1tg
(
e
,
c
)
return
not
e
:
GetHandler
():
GetLinkedGroup
():
IsContains
(
c
)
end
function
c60159931
.
e3tg
(
e
,
c
)
function
c60159931
.
effectfilter
(
e
,
ct
)
local
p
=
e
:
GetHandler
():
GetControler
()
local
wz
=
e
:
GetHandler
():
GetSequence
()
local
te
,
tp
,
loc
=
Duel
.
GetChainInfo
(
ct
,
CHAININFO_TRIGGERING_EFFECT
,
CHAININFO_TRIGGERING_PLAYER
,
CHAININFO_TRIGGERING_SEQUENCE
)
if
wz
==
5
then
return
p
==
tp
and
te
:
IsActiveType
(
TYPE_MONSTER
)
and
bit
.
band
(
loc
,
1
)
~=
0
elseif
wz
==
6
then
return
p
==
tp
and
te
:
IsActiveType
(
TYPE_MONSTER
)
and
bit
.
band
(
loc
,
3
)
~=
0
end
end
function
c60159931
.
e6tg
(
e
,
c
)
return
e
:
GetHandler
():
GetLinkedGroup
():
IsContains
(
c
)
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