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
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
MyCard
ygopro-scripts
Commits
24a901fa
Commit
24a901fa
authored
Oct 28, 2015
by
独孤朲
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #82 from mercury233/patch-2
fix
parents
b6cfef0f
81effa8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
c59255742.lua
c59255742.lua
+6
-6
No files found.
c59255742.lua
View file @
24a901fa
...
@@ -3,7 +3,7 @@ function c59255742.initial_effect(c)
...
@@ -3,7 +3,7 @@ function c59255742.initial_effect(c)
--fusion material
--fusion material
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
aux
.
AddFusionProcFunRep
(
c
,
c59255742
.
ffilter
,
2
,
false
)
aux
.
AddFusionProcFunRep
(
c
,
c59255742
.
ffilter
,
2
,
false
)
--
--
special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e1
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
...
@@ -12,7 +12,7 @@ function c59255742.initial_effect(c)
...
@@ -12,7 +12,7 @@ function c59255742.initial_effect(c)
e1
:
SetTarget
(
c59255742
.
sptg
)
e1
:
SetTarget
(
c59255742
.
sptg
)
e1
:
SetOperation
(
c59255742
.
spop
)
e1
:
SetOperation
(
c59255742
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
--
special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
...
@@ -22,7 +22,7 @@ function c59255742.initial_effect(c)
...
@@ -22,7 +22,7 @@ function c59255742.initial_effect(c)
e2
:
SetTarget
(
c59255742
.
sptg2
)
e2
:
SetTarget
(
c59255742
.
sptg2
)
e2
:
SetOperation
(
c59255742
.
spop
)
e2
:
SetOperation
(
c59255742
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--
--
take control
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_CONTROL
)
e3
:
SetCategory
(
CATEGORY_CONTROL
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
...
@@ -32,7 +32,7 @@ function c59255742.initial_effect(c)
...
@@ -32,7 +32,7 @@ function c59255742.initial_effect(c)
e3
:
SetTarget
(
c59255742
.
target
)
e3
:
SetTarget
(
c59255742
.
target
)
e3
:
SetOperation
(
c59255742
.
operation
)
e3
:
SetOperation
(
c59255742
.
operation
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--
--
return control
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD
)
...
@@ -84,11 +84,11 @@ function c59255742.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -84,11 +84,11 @@ function c59255742.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c59255742
.
filter
(
c
,
tp
)
function
c59255742
.
filter
(
c
,
tp
)
return
c
:
GetSummonPlayer
()
~=
tp
and
c
:
IsControlerCanBeChanged
()
return
c
:
GetSummonPlayer
()
==
1
-
tp
and
c
:
IsControlerCanBeChanged
()
end
end
function
c59255742
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c59255742
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
eg
:
Filter
(
c59255742
.
filter
,
nil
,
tp
)
local
g
=
eg
:
Filter
(
c59255742
.
filter
,
nil
,
tp
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>=
g
:
GetCount
()
-
1
end
if
chk
==
0
then
return
g
:
GetCount
()
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>=
g
:
GetCount
()
-
1
end
Duel
.
SetTargetCard
(
g
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
g
,
g
:
GetCount
(),
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