Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
50782f7a
Commit
50782f7a
authored
Nov 27, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
aa9d7d5c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
50 additions
and
70 deletions
+50
-70
script/c21698716.lua
script/c21698716.lua
+7
-10
script/c32710364.lua
script/c32710364.lua
+7
-10
script/c32933942.lua
script/c32933942.lua
+7
-10
script/c68215963.lua
script/c68215963.lua
+7
-10
script/c69937550.lua
script/c69937550.lua
+7
-10
script/c7093411.lua
script/c7093411.lua
+7
-10
script/c95600067.lua
script/c95600067.lua
+7
-10
script/constant.lua
script/constant.lua
+1
-0
No files found.
script/c21698716.lua
View file @
50782f7a
...
@@ -2,10 +2,9 @@
...
@@ -2,10 +2,9 @@
function
c21698716
.
initial_effect
(
c
)
function
c21698716
.
initial_effect
(
c
)
--send replace
--send replace
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c21698716
.
repcon
)
e1
:
SetCondition
(
c21698716
.
repcon
)
e1
:
SetOperation
(
c21698716
.
repop
)
e1
:
SetOperation
(
c21698716
.
repop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -21,19 +20,17 @@ function c21698716.initial_effect(c)
...
@@ -21,19 +20,17 @@ function c21698716.initial_effect(c)
e2
:
SetOperation
(
c21698716
.
operation
)
e2
:
SetOperation
(
c21698716
.
operation
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c21698716
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c21698716
.
repcon
(
e
)
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
end
end
function
c21698716
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c21698716
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
Duel
.
SelectEffectYesNo
(
tp
,
c
)
then
return
end
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1
7
c0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1
f
c0000
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
...
...
script/c32710364.lua
View file @
50782f7a
...
@@ -2,10 +2,9 @@
...
@@ -2,10 +2,9 @@
function
c32710364
.
initial_effect
(
c
)
function
c32710364
.
initial_effect
(
c
)
--send replace
--send replace
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c32710364
.
repcon
)
e1
:
SetCondition
(
c32710364
.
repcon
)
e1
:
SetOperation
(
c32710364
.
repop
)
e1
:
SetOperation
(
c32710364
.
repop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -20,19 +19,17 @@ function c32710364.initial_effect(c)
...
@@ -20,19 +19,17 @@ function c32710364.initial_effect(c)
e2
:
SetOperation
(
c32710364
.
operation
)
e2
:
SetOperation
(
c32710364
.
operation
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c32710364
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c32710364
.
repcon
(
e
)
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
end
end
function
c32710364
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c32710364
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
Duel
.
SelectEffectYesNo
(
tp
,
c
)
then
return
end
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1
7
c0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1
f
c0000
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
...
...
script/c32933942.lua
View file @
50782f7a
...
@@ -2,10 +2,9 @@
...
@@ -2,10 +2,9 @@
function
c32933942
.
initial_effect
(
c
)
function
c32933942
.
initial_effect
(
c
)
--send replace
--send replace
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c32933942
.
repcon
)
e1
:
SetCondition
(
c32933942
.
repcon
)
e1
:
SetOperation
(
c32933942
.
repop
)
e1
:
SetOperation
(
c32933942
.
repop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -23,19 +22,17 @@ function c32933942.initial_effect(c)
...
@@ -23,19 +22,17 @@ function c32933942.initial_effect(c)
e3
:
SetOperation
(
c32933942
.
rdop
)
e3
:
SetOperation
(
c32933942
.
rdop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c32933942
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c32933942
.
repcon
(
e
)
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
end
end
function
c32933942
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c32933942
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
Duel
.
SelectEffectYesNo
(
tp
,
c
)
then
return
end
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1
7
c0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1
f
c0000
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
...
...
script/c68215963.lua
View file @
50782f7a
...
@@ -2,10 +2,9 @@
...
@@ -2,10 +2,9 @@
function
c68215963
.
initial_effect
(
c
)
function
c68215963
.
initial_effect
(
c
)
--send replace
--send replace
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c68215963
.
repcon
)
e1
:
SetCondition
(
c68215963
.
repcon
)
e1
:
SetOperation
(
c68215963
.
repop
)
e1
:
SetOperation
(
c68215963
.
repop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -21,19 +20,17 @@ function c68215963.initial_effect(c)
...
@@ -21,19 +20,17 @@ function c68215963.initial_effect(c)
e2
:
SetOperation
(
c68215963
.
operation
)
e2
:
SetOperation
(
c68215963
.
operation
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c68215963
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c68215963
.
repcon
(
e
)
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
end
end
function
c68215963
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c68215963
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
Duel
.
SelectEffectYesNo
(
tp
,
c
)
then
return
end
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1
7
c0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1
f
c0000
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
...
...
script/c69937550.lua
View file @
50782f7a
...
@@ -2,10 +2,9 @@
...
@@ -2,10 +2,9 @@
function
c69937550
.
initial_effect
(
c
)
function
c69937550
.
initial_effect
(
c
)
--send replace
--send replace
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c69937550
.
repcon
)
e1
:
SetCondition
(
c69937550
.
repcon
)
e1
:
SetOperation
(
c69937550
.
repop
)
e1
:
SetOperation
(
c69937550
.
repop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -19,19 +18,17 @@ function c69937550.initial_effect(c)
...
@@ -19,19 +18,17 @@ function c69937550.initial_effect(c)
e2
:
SetOperation
(
c69937550
.
cboperation
)
e2
:
SetOperation
(
c69937550
.
cboperation
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c69937550
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69937550
.
repcon
(
e
)
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
end
end
function
c69937550
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69937550
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
Duel
.
SelectEffectYesNo
(
tp
,
c
)
then
return
end
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1
7
c0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1
f
c0000
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
...
...
script/c7093411.lua
View file @
50782f7a
...
@@ -2,10 +2,9 @@
...
@@ -2,10 +2,9 @@
function
c7093411
.
initial_effect
(
c
)
function
c7093411
.
initial_effect
(
c
)
--send replace
--send replace
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c7093411
.
repcon
)
e1
:
SetCondition
(
c7093411
.
repcon
)
e1
:
SetOperation
(
c7093411
.
repop
)
e1
:
SetOperation
(
c7093411
.
repop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -25,19 +24,17 @@ function c7093411.initial_effect(c)
...
@@ -25,19 +24,17 @@ function c7093411.initial_effect(c)
e4
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
e4
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c7093411
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c7093411
.
repcon
(
e
)
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
end
end
function
c7093411
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c7093411
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
Duel
.
SelectEffectYesNo
(
tp
,
c
)
then
return
end
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1
7
c0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1
f
c0000
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
...
...
script/c95600067.lua
View file @
50782f7a
...
@@ -2,10 +2,9 @@
...
@@ -2,10 +2,9 @@
function
c95600067
.
initial_effect
(
c
)
function
c95600067
.
initial_effect
(
c
)
--send replace
--send replace
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c95600067
.
repcon
)
e1
:
SetCondition
(
c95600067
.
repcon
)
e1
:
SetOperation
(
c95600067
.
repop
)
e1
:
SetOperation
(
c95600067
.
repop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
@@ -19,19 +18,17 @@ function c95600067.initial_effect(c)
...
@@ -19,19 +18,17 @@ function c95600067.initial_effect(c)
e2
:
SetValue
(
400
)
e2
:
SetValue
(
400
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c95600067
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c95600067
.
repcon
(
e
)
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
end
end
function
c95600067
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c95600067
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
Duel
.
SelectEffectYesNo
(
tp
,
c
)
then
return
end
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1
7
c0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1
f
c0000
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
...
...
script/constant.lua
View file @
50782f7a
...
@@ -457,6 +457,7 @@ EFFECT_MATCH_KILL =300 --胜利龙
...
@@ -457,6 +457,7 @@ EFFECT_MATCH_KILL =300 --胜利龙
EFFECT_SYNCHRO_CHECK
=
310
--基因组斗士
EFFECT_SYNCHRO_CHECK
=
310
--基因组斗士
EFFECT_QP_ACT_IN_NTPHAND
=
311
--对方回合从自己手卡发动(失乐的圣女)
EFFECT_QP_ACT_IN_NTPHAND
=
311
--对方回合从自己手卡发动(失乐的圣女)
EFFECT_MUST_BE_SMATERIAL
=
312
--同调素材必须
EFFECT_MUST_BE_SMATERIAL
=
312
--同调素材必须
EFFECT_TO_GRAVE_REDIRECT_CB
=
313
--
EFFECT_SPSUMMON_PROC_G
=
320
--P召唤规则
EFFECT_SPSUMMON_PROC_G
=
320
--P召唤规则
EFFECT_SUMMON_COUNT_LIMIT
=
330
--召唤次数限制
EFFECT_SUMMON_COUNT_LIMIT
=
330
--召唤次数限制
EFFECT_SPSUMMON_COUNT_LIMIT
=
331
--特殊召唤次数限制
EFFECT_SPSUMMON_COUNT_LIMIT
=
331
--特殊召唤次数限制
...
...
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