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
c025854a
Commit
c025854a
authored
Nov 13, 2014
by
Argon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:Fluorohydride/ygopro
parents
a0e850d2
6ad6ee2d
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
71 additions
and
85 deletions
+71
-85
script/c21698716.lua
script/c21698716.lua
+8
-10
script/c28120197.lua
script/c28120197.lua
+1
-1
script/c31812496.lua
script/c31812496.lua
+2
-3
script/c32710364.lua
script/c32710364.lua
+8
-10
script/c32933942.lua
script/c32933942.lua
+8
-10
script/c56460688.lua
script/c56460688.lua
+4
-1
script/c68215963.lua
script/c68215963.lua
+8
-10
script/c68815401.lua
script/c68815401.lua
+1
-2
script/c69750546.lua
script/c69750546.lua
+2
-4
script/c69937550.lua
script/c69937550.lua
+8
-10
script/c7093411.lua
script/c7093411.lua
+8
-10
script/c76459806.lua
script/c76459806.lua
+1
-2
script/c91677585.lua
script/c91677585.lua
+3
-2
script/c93717133.lua
script/c93717133.lua
+1
-0
script/c95600067.lua
script/c95600067.lua
+8
-10
No files found.
script/c21698716.lua
View file @
c025854a
...
@@ -2,13 +2,12 @@
...
@@ -2,13 +2,12 @@
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
:
SetDescription
(
aux
.
Stringid
(
21698716
,
0
))
e1
:
SetCode
(
EFFECT_SEND_REPLACE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
Set
Target
(
c21698716
.
reptarget
)
e1
:
Set
Condition
(
c21698716
.
repcon
)
e1
:
SetOperation
(
c21698716
.
repop
eration
)
e1
:
SetOperation
(
c21698716
.
repop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--return deck
--return deck
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -22,14 +21,13 @@ function c21698716.initial_effect(c)
...
@@ -22,14 +21,13 @@ function c21698716.initial_effect(c)
e2
:
SetOperation
(
c21698716
.
operation
)
e2
:
SetOperation
(
c21698716
.
operation
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c21698716
.
reptarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c21698716
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
if
chk
==
0
then
return
c
:
GetDestination
()
==
LOCATION_GRAVE
and
c
:
IsReason
(
REASON_DESTROY
)
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
false
end
return
Duel
.
SelectEffectYesNo
(
tp
,
c
)
end
end
function
c21698716
.
repoperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
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
)
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
)
...
...
script/c28120197.lua
View file @
c025854a
--
όӵ؎
--
断層地帯
function
c28120197
.
initial_effect
(
c
)
function
c28120197
.
initial_effect
(
c
)
--activate
--activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
script/c31812496.lua
View file @
c025854a
--
ƥʯ
--
アステカの石像
function
c31812496
.
initial_effect
(
c
)
function
c31812496
.
initial_effect
(
c
)
--deepen damage
--deepen damage
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e1
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e1
:
SetCondition
(
c31812496
.
dcon
)
e1
:
SetCondition
(
c31812496
.
dcon
)
e1
:
SetOperation
(
c31812496
.
dop
)
e1
:
SetOperation
(
c31812496
.
dop
)
...
...
script/c32710364.lua
View file @
c025854a
...
@@ -2,13 +2,12 @@
...
@@ -2,13 +2,12 @@
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
:
SetDescription
(
aux
.
Stringid
(
32710364
,
0
))
e1
:
SetCode
(
EFFECT_SEND_REPLACE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
Set
Target
(
c32710364
.
reptarget
)
e1
:
Set
Condition
(
c32710364
.
repcon
)
e1
:
SetOperation
(
c32710364
.
repop
eration
)
e1
:
SetOperation
(
c32710364
.
repop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--special summon
--special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -21,14 +20,13 @@ function c32710364.initial_effect(c)
...
@@ -21,14 +20,13 @@ function c32710364.initial_effect(c)
e2
:
SetOperation
(
c32710364
.
operation
)
e2
:
SetOperation
(
c32710364
.
operation
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c32710364
.
reptarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c32710364
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
if
chk
==
0
then
return
c
:
GetDestination
()
==
LOCATION_GRAVE
and
c
:
IsReason
(
REASON_DESTROY
)
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
false
end
return
Duel
.
SelectEffectYesNo
(
tp
,
c
)
end
end
function
c32710364
.
repoperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
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
)
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
)
...
...
script/c32933942.lua
View file @
c025854a
...
@@ -2,13 +2,12 @@
...
@@ -2,13 +2,12 @@
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
:
SetDescription
(
aux
.
Stringid
(
32933942
,
0
))
e1
:
SetCode
(
EFFECT_SEND_REPLACE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
Set
Target
(
c32933942
.
reptarget
)
e1
:
Set
Condition
(
c32933942
.
repcon
)
e1
:
SetOperation
(
c32933942
.
repop
eration
)
e1
:
SetOperation
(
c32933942
.
repop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--direct attack
--direct attack
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -24,14 +23,13 @@ function c32933942.initial_effect(c)
...
@@ -24,14 +23,13 @@ function c32933942.initial_effect(c)
e3
:
SetOperation
(
c32933942
.
rdop
)
e3
:
SetOperation
(
c32933942
.
rdop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c32933942
.
reptarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c32933942
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
if
chk
==
0
then
return
c
:
GetDestination
()
==
LOCATION_GRAVE
and
c
:
IsReason
(
REASON_DESTROY
)
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
false
end
return
Duel
.
SelectEffectYesNo
(
tp
,
c
)
end
end
function
c32933942
.
repoperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
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
)
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
)
...
...
script/c56460688.lua
View file @
c025854a
...
@@ -54,7 +54,10 @@ function c56460688.retop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,7 +54,10 @@ function c56460688.retop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
e
:
GetLabelObject
():
GetLabelObject
()
local
g
=
e
:
GetLabelObject
():
GetLabelObject
()
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
if
tc
:
GetFlagEffect
(
56460688
)
>
0
then
Duel
.
ReturnToField
(
tc
)
end
if
tc
:
GetFlagEffect
(
56460688
)
>
0
then
Duel
.
ReturnToField
(
tc
)
tc
:
SetStatus
(
STATUS_SUMMON_TURN
+
STATUS_FORM_CHANGED
,
false
)
end
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
g
:
DeleteGroup
()
g
:
DeleteGroup
()
...
...
script/c68215963.lua
View file @
c025854a
...
@@ -2,13 +2,12 @@
...
@@ -2,13 +2,12 @@
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
:
SetDescription
(
aux
.
Stringid
(
68215963
,
0
))
e1
:
SetCode
(
EFFECT_SEND_REPLACE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
Set
Target
(
c68215963
.
reptarget
)
e1
:
Set
Condition
(
c68215963
.
repcon
)
e1
:
SetOperation
(
c68215963
.
repop
eration
)
e1
:
SetOperation
(
c68215963
.
repop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--change pos
--change pos
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -22,14 +21,13 @@ function c68215963.initial_effect(c)
...
@@ -22,14 +21,13 @@ function c68215963.initial_effect(c)
e2
:
SetOperation
(
c68215963
.
operation
)
e2
:
SetOperation
(
c68215963
.
operation
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c68215963
.
reptarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c68215963
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
if
chk
==
0
then
return
c
:
GetDestination
()
==
LOCATION_GRAVE
and
c
:
IsReason
(
REASON_DESTROY
)
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
false
end
return
Duel
.
SelectEffectYesNo
(
tp
,
c
)
end
end
function
c68215963
.
repoperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
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
)
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
)
...
...
script/c68815401.lua
View file @
c025854a
...
@@ -23,8 +23,7 @@ function c68815401.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -23,8 +23,7 @@ function c68815401.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c68815401
.
filter1
(
c
)
function
c68815401
.
filter1
(
c
)
local
code
=
c
:
GetCode
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xb9
)
and
c
:
IsDestructable
()
return
c
:
IsFaceup
()
and
(
code
==
69537999
or
code
==
21420702
)
and
c
:
IsDestructable
()
end
end
function
c68815401
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c68815401
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c68815401
.
filter1
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c68815401
.
filter1
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
)
...
...
script/c69750546.lua
View file @
c025854a
...
@@ -12,7 +12,7 @@ function c69750546.initial_effect(c)
...
@@ -12,7 +12,7 @@ function c69750546.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--destroy
--destroy
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
69750546
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
69750546
,
1
))
e2
:
SetCategory
(
CATEGORY_DESTROY
)
e2
:
SetCategory
(
CATEGORY_DESTROY
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
...
@@ -37,9 +37,7 @@ function c69750546.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -37,9 +37,7 @@ function c69750546.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
end
end
function
c69750546
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69750546
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
or
e
:
GetHandler
():
IsReason
(
REASON_RETURN
)
then
return
false
end
return
not
e
:
GetHandler
():
IsReason
(
REASON_RETURN
)
and
re
and
re
:
GetHandler
():
IsSetCard
(
0xb9
)
local
code
=
re
:
GetHandler
():
GetCode
()
return
code
==
69537999
or
code
==
21420702
end
end
function
c69750546
.
costfilter
(
c
)
function
c69750546
.
costfilter
(
c
)
return
c
:
IsCode
(
69750546
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsCode
(
69750546
)
and
c
:
IsAbleToGraveAsCost
()
...
...
script/c69937550.lua
View file @
c025854a
...
@@ -2,13 +2,12 @@
...
@@ -2,13 +2,12 @@
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
:
SetDescription
(
aux
.
Stringid
(
69937550
,
0
))
e1
:
SetCode
(
EFFECT_SEND_REPLACE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
Set
Target
(
c69937550
.
reptarget
)
e1
:
Set
Condition
(
c69937550
.
repcon
)
e1
:
SetOperation
(
c69937550
.
repop
eration
)
e1
:
SetOperation
(
c69937550
.
repop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--change battle target
--change battle target
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -20,14 +19,13 @@ function c69937550.initial_effect(c)
...
@@ -20,14 +19,13 @@ function c69937550.initial_effect(c)
e2
:
SetOperation
(
c69937550
.
cboperation
)
e2
:
SetOperation
(
c69937550
.
cboperation
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c69937550
.
reptarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c69937550
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
if
chk
==
0
then
return
c
:
GetDestination
()
==
LOCATION_GRAVE
and
c
:
IsReason
(
REASON_DESTROY
)
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
false
end
return
Duel
.
SelectEffectYesNo
(
tp
,
c
)
end
end
function
c69937550
.
repoperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
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
)
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
)
...
...
script/c7093411.lua
View file @
c025854a
...
@@ -2,13 +2,12 @@
...
@@ -2,13 +2,12 @@
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
:
SetDescription
(
aux
.
Stringid
(
7093411
,
0
))
e1
:
SetCode
(
EFFECT_SEND_REPLACE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
Set
Target
(
c7093411
.
reptarget
)
e1
:
Set
Condition
(
c7093411
.
repcon
)
e1
:
SetOperation
(
c7093411
.
repop
eration
)
e1
:
SetOperation
(
c7093411
.
repop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--place
--place
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -26,14 +25,13 @@ function c7093411.initial_effect(c)
...
@@ -26,14 +25,13 @@ 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
.
reptarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c7093411
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
if
chk
==
0
then
return
c
:
GetDestination
()
==
LOCATION_GRAVE
and
c
:
IsReason
(
REASON_DESTROY
)
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
false
end
return
Duel
.
SelectEffectYesNo
(
tp
,
c
)
end
end
function
c7093411
.
repoperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
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
)
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
)
...
...
script/c76459806.lua
View file @
c025854a
...
@@ -17,8 +17,7 @@ function c76459806.initial_effect(c)
...
@@ -17,8 +17,7 @@ function c76459806.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c76459806
.
filter
(
c
)
function
c76459806
.
filter
(
c
)
local
code
=
c
:
GetCode
()
return
c
:
IsSetCard
(
0xb9
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
return
(
code
==
69537999
or
code
==
21420702
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
end
end
function
c76459806
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c76459806
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c76459806
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c76459806
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c91677585.lua
View file @
c025854a
...
@@ -37,12 +37,13 @@ function c91677585.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -37,12 +37,13 @@ function c91677585.activate(e,tp,eg,ep,ev,re,r,rp)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetValue
(
c91677585
.
aclimit
)
e2
:
SetValue
(
c91677585
.
aclimit
)
e2
:
SetCondition
(
c91677585
.
actcon
)
e2
:
SetCondition
(
c91677585
.
actcon
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_BATTLE
)
e2
:
SetReset
(
RESET_
EVENT
+
0x1fe0000
+
RESET_
PHASE
+
PHASE_BATTLE
)
Duel
.
RegisterEffect
(
e2
,
tp
)
tc
:
RegisterEffect
(
e2
)
end
end
end
end
function
c91677585
.
actcon
(
e
)
function
c91677585
.
actcon
(
e
)
...
...
script/c93717133.lua
View file @
c025854a
...
@@ -87,6 +87,7 @@ function c93717133.retop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -87,6 +87,7 @@ function c93717133.retop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
e
:
GetLabel
()
*
500
)
e1
:
SetValue
(
e
:
GetLabel
()
*
500
)
e
:
GetOwner
():
RegisterEffect
(
e1
)
e
:
GetOwner
():
RegisterEffect
(
e1
)
end
end
tc
:
SetStatus
(
STATUS_SUMMON_TURN
+
STATUS_FORM_CHANGED
,
false
)
tc
=
sg
:
GetNext
()
tc
=
sg
:
GetNext
()
end
end
end
end
script/c95600067.lua
View file @
c025854a
...
@@ -2,13 +2,12 @@
...
@@ -2,13 +2,12 @@
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
:
SetDescription
(
aux
.
Stringid
(
95600067
,
0
))
e1
:
SetCode
(
EFFECT_SEND_REPLACE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
Set
Target
(
c95600067
.
reptarget
)
e1
:
Set
Condition
(
c95600067
.
repcon
)
e1
:
SetOperation
(
c95600067
.
repop
eration
)
e1
:
SetOperation
(
c95600067
.
repop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--atkup
--atkup
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -20,14 +19,13 @@ function c95600067.initial_effect(c)
...
@@ -20,14 +19,13 @@ function c95600067.initial_effect(c)
e2
:
SetValue
(
400
)
e2
:
SetValue
(
400
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c95600067
.
reptarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c95600067
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
e
:
GetHandler
():
GetDestination
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
if
chk
==
0
then
return
c
:
GetDestination
()
==
LOCATION_GRAVE
and
c
:
IsReason
(
REASON_DESTROY
)
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
<=
0
then
return
false
end
return
Duel
.
SelectEffectYesNo
(
tp
,
c
)
end
end
function
c95600067
.
repoperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
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
)
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
)
...
...
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