Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
八宫一月
ygopro-scripts
Commits
69b1a5e5
Commit
69b1a5e5
authored
Apr 22, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix activate in deck
parent
58c25936
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
20 deletions
+28
-20
c87997872.lua
c87997872.lua
+13
-9
c92377303.lua
c92377303.lua
+15
-11
No files found.
c87997872.lua
View file @
69b1a5e5
...
...
@@ -12,7 +12,7 @@ function c87997872.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
87997872
,
0
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetRange
(
LOCATION_HAND
+
LOCATION_DECK
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetProperty
(
EFFECT_FLAG_CHAIN_UNIQUE
)
e2
:
SetCode
(
EVENT_LEAVE_FIELD
)
e2
:
SetCondition
(
c87997872
.
spcon
)
...
...
@@ -20,15 +20,19 @@ function c87997872.initial_effect(c)
e2
:
SetTarget
(
c87997872
.
sptg
)
e2
:
SetOperation
(
c87997872
.
spop
)
c
:
RegisterEffect
(
e2
)
--atkup
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
87997872
,
1
))
e3
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetCost
(
c87997872
.
cost
)
e3
:
SetOperation
(
c87997872
.
atkop
)
local
e3
=
e2
:
Clone
()
e3
:
SetRange
(
LOCATION_DECK
)
e3
:
SetProperty
(
EFFECT_FLAG_CHAIN_UNIQUE
,
EFFECT_FLAG2_NAGA
)
c
:
RegisterEffect
(
e3
)
--atkup
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
87997872
,
1
))
e4
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e4
:
SetCost
(
c87997872
.
cost
)
e4
:
SetOperation
(
c87997872
.
atkop
)
c
:
RegisterEffect
(
e4
)
end
function
c87997872
.
cfilter
(
c
,
tp
,
code
)
return
c
:
IsCode
(
code
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsReason
(
REASON_DESTROY
)
...
...
c92377303.lua
View file @
69b1a5e5
...
...
@@ -6,7 +6,7 @@ function c92377303.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
92377303
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetRange
(
LOCATION_HAND
+
LOCATION_DECK
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetProperty
(
EFFECT_FLAG_CHAIN_UNIQUE
)
e1
:
SetCode
(
EVENT_CUSTOM
+
71625222
)
e1
:
SetCondition
(
c92377303
.
spcon
)
...
...
@@ -14,17 +14,21 @@ function c92377303.initial_effect(c)
e1
:
SetTarget
(
c92377303
.
sptg
)
e1
:
SetOperation
(
c92377303
.
spop
)
c
:
RegisterEffect
(
e1
)
--to hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
92377303
,
1
))
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCondition
(
c92377303
.
thcon
)
e2
:
SetTarget
(
c92377303
.
thtg
)
e2
:
SetOperation
(
c92377303
.
thop
)
local
e2
=
e1
:
Clone
()
e2
:
SetRange
(
LOCATION_DECK
)
e2
:
SetProperty
(
EFFECT_FLAG_CHAIN_UNIQUE
,
EFFECT_FLAG2_NAGA
)
c
:
RegisterEffect
(
e2
)
--to hand
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
92377303
,
1
))
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetCondition
(
c92377303
.
thcon
)
e3
:
SetTarget
(
c92377303
.
thtg
)
e3
:
SetOperation
(
c92377303
.
thop
)
c
:
RegisterEffect
(
e3
)
end
function
c92377303
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
tp
...
...
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