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
86ecad15
Commit
86ecad15
authored
Jan 26, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6db9cdf8
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
37 additions
and
43 deletions
+37
-43
c11493868.lua
c11493868.lua
+1
-1
c12615446.lua
c12615446.lua
+2
-1
c19462747.lua
c19462747.lua
+2
-2
c23160024.lua
c23160024.lua
+1
-2
c23338098.lua
c23338098.lua
+1
-1
c32465539.lua
c32465539.lua
+1
-0
c45644898.lua
c45644898.lua
+1
-1
c47598941.lua
c47598941.lua
+6
-6
c51777272.lua
c51777272.lua
+10
-13
c58600555.lua
c58600555.lua
+2
-1
c73977033.lua
c73977033.lua
+5
-7
c84812868.lua
c84812868.lua
+3
-3
c86157908.lua
c86157908.lua
+1
-1
c94919024.lua
c94919024.lua
+1
-1
c97165977.lua
c97165977.lua
+0
-3
No files found.
c11493868.lua
View file @
86ecad15
...
@@ -45,7 +45,7 @@ function c11493868.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -45,7 +45,7 @@ function c11493868.atkop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0x1f
f
0000
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
)
e1
:
SetReset
(
RESET_EVENT
+
0x1f
e
0000
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
)
e1
:
SetValue
(
800
)
e1
:
SetValue
(
800
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
end
end
...
...
c12615446.lua
View file @
86ecad15
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
function
c12615446
.
initial_effect
(
c
)
function
c12615446
.
initial_effect
(
c
)
--xyz summon
--xyz summon
aux
.
AddXyzProcedure
(
c
,
c12615446
.
matfilter
,
3
,
2
,
nil
,
nil
,
5
)
aux
.
AddXyzProcedure
(
c
,
c12615446
.
matfilter
,
3
,
2
,
nil
,
nil
,
5
)
c
:
EnableReviveLimit
()
--Position+Negate
--Position+Negate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
12615446
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
12615446
,
0
))
...
@@ -19,7 +20,7 @@ function c12615446.initial_effect(c)
...
@@ -19,7 +20,7 @@ function c12615446.initial_effect(c)
--Attach
--Attach
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
12615446
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
12615446
,
1
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
F
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
O
)
e2
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e2
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
c12615446
.
xyzcon
)
e2
:
SetCondition
(
c12615446
.
xyzcon
)
...
...
c19462747.lua
View file @
86ecad15
...
@@ -5,7 +5,7 @@ function c19462747.initial_effect(c)
...
@@ -5,7 +5,7 @@ function c19462747.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
19462747
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
19462747
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCountLimit
(
1
,
19462747
)
e1
:
SetCountLimit
(
1
,
19462747
)
e1
:
SetTarget
(
c19462747
.
target
)
e1
:
SetTarget
(
c19462747
.
target
)
e1
:
SetOperation
(
c19462747
.
operation
)
e1
:
SetOperation
(
c19462747
.
operation
)
...
@@ -35,7 +35,7 @@ function c19462747.filter(c)
...
@@ -35,7 +35,7 @@ function c19462747.filter(c)
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
>
0
and
c
:
IsSetCard
(
0x33
)
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
>
0
and
c
:
IsSetCard
(
0x33
)
end
end
function
c19462747
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c19462747
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c19462747
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c
hkc
:
IsControler
(
tp
)
and
c
19462747
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c19462747
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c19462747
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c19462747
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c19462747
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
c23160024.lua
View file @
86ecad15
...
@@ -19,7 +19,6 @@ function c23160024.initial_effect(c)
...
@@ -19,7 +19,6 @@ function c23160024.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--draw
--draw
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCategory
(
CATEGORY_DRAW
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetCode
(
EVENT_RELEASE
)
e4
:
SetCode
(
EVENT_RELEASE
)
...
@@ -39,7 +38,7 @@ function c23160024.initial_effect(c)
...
@@ -39,7 +38,7 @@ function c23160024.initial_effect(c)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c23160024
.
cfilter
(
c
,
tp
)
function
c23160024
.
cfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0xe0
)
and
c
:
IsReason
(
REASON_RELEASE
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetPreviousControler
()
==
tp
return
c
:
Is
Previous
SetCard
(
0xe0
)
and
c
:
IsReason
(
REASON_RELEASE
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetPreviousControler
()
==
tp
end
end
function
c23160024
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23160024
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c23160024
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c23160024
.
cfilter
,
1
,
nil
,
tp
)
...
...
c23338098.lua
View file @
86ecad15
...
@@ -71,7 +71,7 @@ function c23338098.spfilter(c,e,tp)
...
@@ -71,7 +71,7 @@ function c23338098.spfilter(c,e,tp)
return
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsRace
(
RACE_WINDBEAST
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsCode
(
23338098
)
return
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsRace
(
RACE_WINDBEAST
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsCode
(
23338098
)
end
end
function
c23338098
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c23338098
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c23338098
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c
hkc
:
IsControler
(
tp
)
and
c
23338098
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c23338098
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c23338098
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
c32465539.lua
View file @
86ecad15
...
@@ -69,6 +69,7 @@ function c32465539.efop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,6 +69,7 @@ function c32465539.efop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c32465539
.
aclimit
)
e1
:
SetValue
(
c32465539
.
aclimit
)
e1
:
SetCondition
(
c32465539
.
actcon
)
e1
:
SetCondition
(
c32465539
.
actcon
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
rc
:
RegisterEffect
(
e1
,
true
)
rc
:
RegisterEffect
(
e1
,
true
)
if
not
rc
:
IsType
(
TYPE_EFFECT
)
then
if
not
rc
:
IsType
(
TYPE_EFFECT
)
then
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
c45644898.lua
View file @
86ecad15
...
@@ -45,7 +45,7 @@ function c45644898.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -45,7 +45,7 @@ function c45644898.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoDeck
(
e
:
GetHandler
(),
nil
,
2
,
REASON_COST
)
Duel
.
SendtoDeck
(
e
:
GetHandler
(),
nil
,
2
,
REASON_COST
)
end
end
function
c45644898
.
gvfilter
(
c
)
function
c45644898
.
gvfilter
(
c
)
return
c
:
IsType
(
TYPE_EFFECT
)
and
c
:
IsAbleToGrave
()
return
c
:
Is
Faceup
()
and
c
:
Is
Type
(
TYPE_EFFECT
)
and
c
:
IsAbleToGrave
()
end
end
function
c45644898
.
spfilter
(
c
,
e
,
tp
)
function
c45644898
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xdd
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0xdd
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c47598941.lua
View file @
86ecad15
...
@@ -5,17 +5,17 @@ function c47598941.initial_effect(c)
...
@@ -5,17 +5,17 @@ function c47598941.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
TIMING_DESTROY
,
TIMING_DESTROY
)
e1
:
SetHintTiming
(
TIMING_DESTROY
,
TIMING_DESTROY
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetTarget
(
c47598941
.
target1
)
e1
:
SetTarget
(
c47598941
.
target1
)
e1
:
SetOperation
(
c47598941
.
operation
)
e1
:
SetOperation
(
c47598941
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--set p
--set p
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_DESTROYED
)
e2
:
SetCode
(
EVENT_DESTROYED
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
,
47598941
)
e2
:
SetCondition
(
c47598941
.
condition
)
e2
:
SetCondition
(
c47598941
.
condition
)
e2
:
SetTarget
(
c47598941
.
target2
)
e2
:
SetTarget
(
c47598941
.
target2
)
e2
:
SetOperation
(
c47598941
.
operation
)
e2
:
SetOperation
(
c47598941
.
operation
)
...
@@ -33,7 +33,7 @@ function c47598941.initial_effect(c)
...
@@ -33,7 +33,7 @@ function c47598941.initial_effect(c)
e4
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
e4
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c47598941
.
filter
(
c
,
e
,
tp
)
function
c47598941
.
filter
(
c
)
return
c
:
IsSetCard
(
0xe0
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
return
c
:
IsSetCard
(
0xe0
)
and
c
:
IsType
(
TYPE_PENDULUM
)
and
not
c
:
IsForbidden
()
end
end
function
c47598941
.
cfilter
(
c
,
tp
)
function
c47598941
.
cfilter
(
c
,
tp
)
...
@@ -44,7 +44,7 @@ function c47598941.target1(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -44,7 +44,7 @@ function c47598941.target1(e,tp,eg,ep,ev,re,r,rp,chk)
local
res
,
teg
,
tep
,
tev
,
tre
,
tr
,
trp
=
Duel
.
CheckEvent
(
EVENT_DESTROYED
,
true
)
local
res
,
teg
,
tep
,
tev
,
tre
,
tr
,
trp
=
Duel
.
CheckEvent
(
EVENT_DESTROYED
,
true
)
if
res
if
res
and
Duel
.
GetFlagEffect
(
tp
,
47598941
)
==
0
and
Duel
.
GetFlagEffect
(
tp
,
47598941
)
==
0
and
Duel
.
IsExistingMatchingCard
(
c47598941
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c47598941
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
and
teg
:
IsExists
(
c47598941
.
cfilter
,
1
,
nil
,
tp
)
and
teg
:
IsExists
(
c47598941
.
cfilter
,
1
,
nil
,
tp
)
and
Duel
.
SelectYesNo
(
tp
,
94
)
then
and
Duel
.
SelectYesNo
(
tp
,
94
)
then
...
@@ -58,7 +58,7 @@ function c47598941.target2(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -58,7 +58,7 @@ function c47598941.target2(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
GetFlagEffect
(
tp
,
47598941
)
==
0
and
Duel
.
GetFlagEffect
(
tp
,
47598941
)
==
0
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
and
(
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
and
Duel
.
IsExistingMatchingCard
(
c47598941
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
c47598941
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
RegisterFlagEffect
(
tp
,
47598941
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
47598941
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c47598941
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47598941
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -66,7 +66,7 @@ function c47598941.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -66,7 +66,7 @@ function c47598941.operation(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
GetFlagEffect
(
tp
,
47598941
)
==
0
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
GetFlagEffect
(
tp
,
47598941
)
==
0
then
return
end
if
not
(
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
then
return
end
if
not
(
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
6
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_SZONE
,
7
))
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c47598941
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c47598941
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
then
if
tc
then
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
...
...
c51777272.lua
View file @
86ecad15
...
@@ -39,20 +39,17 @@ function c51777272.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -39,20 +39,17 @@ function c51777272.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c51777272
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c51777272
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTarget
(
c51777272
.
reptg
)
e1
:
SetValue
(
c51777272
.
repval
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
g
=
Group
.
CreateGroup
()
g
:
KeepAlive
()
e1
:
SetLabelObject
(
g
)
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
then
--indestructible
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTarget
(
c51777272
.
reptg
)
e1
:
SetValue
(
c51777272
.
repval
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
g
=
Group
.
CreateGroup
()
g
:
KeepAlive
()
e1
:
SetLabelObject
(
g
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_ATTACK_ALL
)
e2
:
SetCode
(
EFFECT_ATTACK_ALL
)
...
...
c58600555.lua
View file @
86ecad15
...
@@ -26,10 +26,11 @@ function c58600555.initial_effect(c)
...
@@ -26,10 +26,11 @@ function c58600555.initial_effect(c)
--Change position
--Change position
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
58600555
,
1
))
e3
:
SetDescription
(
aux
.
Stringid
(
58600555
,
1
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_
F
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_
O
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCode
(
EVENT_CHANGE_POS
)
e3
:
SetCode
(
EVENT_CHANGE_POS
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetTarget
(
c58600555
.
target
)
e3
:
SetTarget
(
c58600555
.
target
)
e3
:
SetOperation
(
c58600555
.
operation
)
e3
:
SetOperation
(
c58600555
.
operation
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
...
c73977033.lua
View file @
86ecad15
--RR-ブースター・ストリクス
--RR-ブースター・ストリクス
function
c73977033
.
initial_effect
(
c
)
function
c73977033
.
initial_effect
(
c
)
--
Activate
--
destroy
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_BE_BATTLE_TARGET
)
e1
:
SetCode
(
EVENT_BE_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCondition
(
c73977033
.
condition
)
e1
:
SetCondition
(
c73977033
.
condition
)
e1
:
SetCost
(
c73977033
.
cost
)
e1
:
SetCost
(
c73977033
.
cost
)
e1
:
SetTarget
(
c73977033
.
target
)
e1
:
SetTarget
(
c73977033
.
target
)
e1
:
SetOperation
(
c73977033
.
activate
)
e1
:
SetOperation
(
c73977033
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c73977033
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c73977033
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -21,14 +20,13 @@ function c73977033.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -21,14 +20,13 @@ function c73977033.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
end
end
function
c73977033
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c73977033
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tg
=
Duel
.
GetAttacker
()
local
tg
=
Duel
.
GetAttacker
()
if
chkc
then
return
chkc
==
tg
end
if
chk
==
0
then
return
tg
:
IsOnField
()
and
tg
:
IsDestructable
()
end
if
chk
==
0
then
return
tg
:
IsOnField
()
and
tg
:
IsDestructable
()
and
tg
:
IsCanBeEffectTarget
(
e
)
end
Duel
.
SetTargetCard
(
tg
)
Duel
.
SetTargetCard
(
tg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
tg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
tg
,
1
,
0
,
0
)
end
end
function
c73977033
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c73977033
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsAttackable
()
and
not
tc
:
IsStatus
(
STATUS_ATTACK_CANCELED
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsAttackable
()
and
not
tc
:
IsStatus
(
STATUS_ATTACK_CANCELED
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
...
...
c84812868.lua
View file @
86ecad15
...
@@ -45,12 +45,12 @@ function c84812868.filter2(c)
...
@@ -45,12 +45,12 @@ function c84812868.filter2(c)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
end
end
function
c84812868
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c84812868
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
and
c
hkc
:
IsAbleToHand
(
)
end
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
and
c
84812868
.
filter2
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c84812868
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c84812868
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
IsExistingTarget
(
c84812868
.
filter2
,
tp
,
0
,
LOCATION_
SZONE
,
1
,
nil
)
end
and
Duel
.
IsExistingTarget
(
c84812868
.
filter2
,
tp
,
0
,
LOCATION_
ONFIELD
,
1
,
nil
)
end
local
ct
=
Duel
.
GetMatchingGroupCount
(
c84812868
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
e
:
GetHandler
())
local
ct
=
Duel
.
GetMatchingGroupCount
(
c84812868
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
e
:
GetHandler
())
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c84812868
.
filter2
,
tp
,
0
,
LOCATION_
SZONE
,
1
,
ct
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c84812868
.
filter2
,
tp
,
0
,
LOCATION_
ONFIELD
,
1
,
ct
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c84812868
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c84812868
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c86157908.lua
View file @
86ecad15
...
@@ -36,7 +36,7 @@ function c86157908.atkcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -36,7 +36,7 @@ function c86157908.atkcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c86157908
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c86157908
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
at
=
Duel
.
GetAttacker
()
local
at
=
Duel
.
GetAttacker
()
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c86157908
.
atkfilter
(
chkc
)
and
chkc
~=
at
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c
hkc
:
IsControler
(
tp
)
and
c
86157908
.
atkfilter
(
chkc
)
and
chkc
~=
at
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c86157908
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
at
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c86157908
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
at
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c86157908
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
at
)
Duel
.
SelectTarget
(
tp
,
c86157908
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
at
)
...
...
c94919024.lua
View file @
86ecad15
...
@@ -18,6 +18,7 @@ function c94919024.initial_effect(c)
...
@@ -18,6 +18,7 @@ function c94919024.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e2
:
SetCondition
(
c94919024
.
condition
)
e2
:
SetCondition
(
c94919024
.
condition
)
e2
:
SetCost
(
c94919024
.
cost
)
e2
:
SetCost
(
c94919024
.
cost
)
e2
:
SetTarget
(
c94919024
.
target
)
e2
:
SetTarget
(
c94919024
.
target
)
...
@@ -45,7 +46,6 @@ function c94919024.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -45,7 +46,6 @@ function c94919024.atkop(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
end
end
end
end
function
c94919024
.
filter
(
c
,
tp
)
function
c94919024
.
filter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xdf
)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xdf
)
end
end
...
...
c97165977.lua
View file @
86ecad15
...
@@ -21,7 +21,6 @@ function c97165977.initial_effect(c)
...
@@ -21,7 +21,6 @@ function c97165977.initial_effect(c)
--Multiple attacks
--Multiple attacks
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
97165977
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
97165977
,
0
))
e3
:
SetCategory
(
CATEGORY_TOHAND
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCountLimit
(
1
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
...
@@ -51,9 +50,7 @@ function c97165977.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,9 +50,7 @@ function c97165977.operation(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e1
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTarget
(
c97165977
.
reptg
)
e1
:
SetTarget
(
c97165977
.
reptg
)
e1
:
SetValue
(
c97165977
.
repval
)
e1
:
SetValue
(
c97165977
.
repval
)
...
...
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