Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
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 @@
function
c21698716
.
initial_effect
(
c
)
--send replace
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCondition
(
c21698716
.
repcon
)
e1
:
SetOperation
(
c21698716
.
repop
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -21,19 +20,17 @@ function c21698716.initial_effect(c)
e2
:
SetOperation
(
c21698716
.
operation
)
c
:
RegisterEffect
(
e2
)
end
function
c21698716
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
function
c21698716
.
repcon
(
e
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
end
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
()
if
not
Duel
.
SelectEffectYesNo
(
tp
,
c
)
then
return
end
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
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
)
c
:
RegisterEffect
(
e1
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
...
...
script/c32710364.lua
View file @
50782f7a
...
...
@@ -2,10 +2,9 @@
function
c32710364
.
initial_effect
(
c
)
--send replace
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCondition
(
c32710364
.
repcon
)
e1
:
SetOperation
(
c32710364
.
repop
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -20,19 +19,17 @@ function c32710364.initial_effect(c)
e2
:
SetOperation
(
c32710364
.
operation
)
c
:
RegisterEffect
(
e2
)
end
function
c32710364
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
function
c32710364
.
repcon
(
e
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
end
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
()
if
not
Duel
.
SelectEffectYesNo
(
tp
,
c
)
then
return
end
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
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
)
c
:
RegisterEffect
(
e1
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
...
...
script/c32933942.lua
View file @
50782f7a
...
...
@@ -2,10 +2,9 @@
function
c32933942
.
initial_effect
(
c
)
--send replace
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCondition
(
c32933942
.
repcon
)
e1
:
SetOperation
(
c32933942
.
repop
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -23,19 +22,17 @@ function c32933942.initial_effect(c)
e3
:
SetOperation
(
c32933942
.
rdop
)
c
:
RegisterEffect
(
e3
)
end
function
c32933942
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
function
c32933942
.
repcon
(
e
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
end
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
()
if
not
Duel
.
SelectEffectYesNo
(
tp
,
c
)
then
return
end
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
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
)
c
:
RegisterEffect
(
e1
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
...
...
script/c68215963.lua
View file @
50782f7a
...
...
@@ -2,10 +2,9 @@
function
c68215963
.
initial_effect
(
c
)
--send replace
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCondition
(
c68215963
.
repcon
)
e1
:
SetOperation
(
c68215963
.
repop
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -21,19 +20,17 @@ function c68215963.initial_effect(c)
e2
:
SetOperation
(
c68215963
.
operation
)
c
:
RegisterEffect
(
e2
)
end
function
c68215963
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
function
c68215963
.
repcon
(
e
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
end
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
()
if
not
Duel
.
SelectEffectYesNo
(
tp
,
c
)
then
return
end
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
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
)
c
:
RegisterEffect
(
e1
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
...
...
script/c69937550.lua
View file @
50782f7a
...
...
@@ -2,10 +2,9 @@
function
c69937550
.
initial_effect
(
c
)
--send replace
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCondition
(
c69937550
.
repcon
)
e1
:
SetOperation
(
c69937550
.
repop
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,19 +18,17 @@ function c69937550.initial_effect(c)
e2
:
SetOperation
(
c69937550
.
cboperation
)
c
:
RegisterEffect
(
e2
)
end
function
c69937550
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
function
c69937550
.
repcon
(
e
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
end
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
()
if
not
Duel
.
SelectEffectYesNo
(
tp
,
c
)
then
return
end
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
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
)
c
:
RegisterEffect
(
e1
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
...
...
script/c7093411.lua
View file @
50782f7a
...
...
@@ -2,10 +2,9 @@
function
c7093411
.
initial_effect
(
c
)
--send replace
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCondition
(
c7093411
.
repcon
)
e1
:
SetOperation
(
c7093411
.
repop
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -25,19 +24,17 @@ function c7093411.initial_effect(c)
e4
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
c
:
RegisterEffect
(
e4
)
end
function
c7093411
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
function
c7093411
.
repcon
(
e
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
end
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
()
if
not
Duel
.
SelectEffectYesNo
(
tp
,
c
)
then
return
end
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
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
)
c
:
RegisterEffect
(
e1
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
...
...
script/c95600067.lua
View file @
50782f7a
...
...
@@ -2,10 +2,9 @@
function
c95600067
.
initial_effect
(
c
)
--send replace
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT_CB
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCondition
(
c95600067
.
repcon
)
e1
:
SetOperation
(
c95600067
.
repop
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,19 +18,17 @@ function c95600067.initial_effect(c)
e2
:
SetValue
(
400
)
c
:
RegisterEffect
(
e2
)
end
function
c95600067
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
function
c95600067
.
repcon
(
e
)
local
c
=
e
:
GetHandler
()
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_DESTROY
)
end
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
()
if
not
Duel
.
SelectEffectYesNo
(
tp
,
c
)
then
return
end
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
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
)
c
:
RegisterEffect
(
e1
)
Duel
.
RaiseEvent
(
c
,
47408488
,
e
,
0
,
tp
,
0
,
0
)
...
...
script/constant.lua
View file @
50782f7a
...
...
@@ -457,6 +457,7 @@ EFFECT_MATCH_KILL =300 --胜利龙
EFFECT_SYNCHRO_CHECK
=
310
--基因组斗士
EFFECT_QP_ACT_IN_NTPHAND
=
311
--对方回合从自己手卡发动(失乐的圣女)
EFFECT_MUST_BE_SMATERIAL
=
312
--同调素材必须
EFFECT_TO_GRAVE_REDIRECT_CB
=
313
--
EFFECT_SPSUMMON_PROC_G
=
320
--P召唤规则
EFFECT_SUMMON_COUNT_LIMIT
=
330
--召唤次数限制
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