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
9f66cebb
Commit
9f66cebb
authored
Jun 09, 2019
by
gg123gg
Committed by
GitHub
Jun 09, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2 from purerosefallen/丘依儿fix
Add files via upload
parents
b44cd50b
1196cb71
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 @
9f66cebb
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
function
c12005022
.
initial_effect
(
c
)
function
c12005022
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
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
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCondition
(
c12005022
.
condition
)
e1
:
SetCondition
(
c12005022
.
condition
)
...
@@ -65,16 +64,20 @@ function c12005022.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -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
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
100
)
local
ex
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_REMOVE
)
local
ex
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_REMOVE
)
if
re
:
IsHasCategory
(
CATEGORY_SPECIAL_SUMMON
)
then
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_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
c
,
1
,
0
,
0
)
end
end
if
re
:
IsHasCategory
(
CATEGORY_DRAW
+
CATEGORY_TOHAND
)
then
if
re
:
IsHasCategory
(
CATEGORY_DRAW
+
CATEGORY_TOHAND
)
then
e
:
SetCategory
(
CATEGORY_DRAW
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
end
if
re
:
IsHasCategory
(
CATEGORY_DESTROY
+
CATEGORY_REMOVE
)
or
ex
then
if
re
:
IsHasCategory
(
CATEGORY_DESTROY
+
CATEGORY_REMOVE
)
or
ex
then
e
:
SetCategory
(
CATEGORY_DESTROY
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
0
,
LOCATION_ONFIELD
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
0
,
LOCATION_ONFIELD
)
end
end
if
re
:
IsHasCategory
(
CATEGORY_DISABLE
+
CATEGORY_NEGATE
+
CATEGORY_DISABLE_SUMMON
)
then
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
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
end
end
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