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
REIKAI
ygopro-222DIY-cards
Commits
1196cb71
Commit
1196cb71
authored
Jun 09, 2019
by
gg123gg
Committed by
GitHub
Jun 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add files via upload
parent
b44cd50b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
112 additions
and
109 deletions
+112
-109
expansions/script/c12005022.lua
expansions/script/c12005022.lua
+112
-109
No files found.
expansions/script/c12005022.lua
View file @
1196cb71
...
...
@@ -2,7 +2,6 @@
function
c12005022
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_NEGATE
+
CATEGORY_DAMAGE
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TODECK
+
CATEGORY_TOGRAVE
+
CATEGORY_DRAW
+
CATEGORY_TODECK
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCondition
(
c12005022
.
condition
)
...
...
@@ -65,16 +64,20 @@ function c12005022.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
100
)
local
ex
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_REMOVE
)
if
re
:
IsHasCategory
(
CATEGORY_SPECIAL_SUMMON
)
then
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
c
,
1
,
0
,
0
)
end
if
re
:
IsHasCategory
(
CATEGORY_DRAW
+
CATEGORY_TOHAND
)
then
e
:
SetCategory
(
CATEGORY_DRAW
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
if
re
:
IsHasCategory
(
CATEGORY_DESTROY
+
CATEGORY_REMOVE
)
or
ex
then
e
:
SetCategory
(
CATEGORY_DESTROY
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
0
,
LOCATION_ONFIELD
)
end
if
re
:
IsHasCategory
(
CATEGORY_DISABLE
+
CATEGORY_NEGATE
+
CATEGORY_DISABLE_SUMMON
)
then
e
:
SetCategory
(
CATEGORY_DISABLE
+
CATEGORY_NEGATE
+
CATEGORY_DISABLE_SUMMON
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
end
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