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
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
REIKAI
ygopro
Commits
09de10fe
Commit
09de10fe
authored
Jul 22, 2013
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
04ecaac8
Changes
27
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
60 additions
and
52 deletions
+60
-52
script/c16279989.lua
script/c16279989.lua
+1
-0
script/c1855932.lua
script/c1855932.lua
+0
-1
script/c20032555.lua
script/c20032555.lua
+1
-1
script/c24184846.lua
script/c24184846.lua
+2
-2
script/c2978414.lua
script/c2978414.lua
+6
-0
script/c35307484.lua
script/c35307484.lua
+1
-2
script/c39972129.lua
script/c39972129.lua
+4
-5
script/c43378076.lua
script/c43378076.lua
+1
-1
script/c50527144.lua
script/c50527144.lua
+1
-0
script/c53090623.lua
script/c53090623.lua
+4
-4
script/c53678698.lua
script/c53678698.lua
+2
-3
script/c55204071.lua
script/c55204071.lua
+3
-3
script/c55735315.lua
script/c55735315.lua
+0
-1
script/c56427559.lua
script/c56427559.lua
+2
-1
script/c58272005.lua
script/c58272005.lua
+1
-1
script/c63422098.lua
script/c63422098.lua
+6
-6
script/c64245689.lua
script/c64245689.lua
+4
-3
script/c6691855.lua
script/c6691855.lua
+1
-4
script/c73625877.lua
script/c73625877.lua
+2
-2
script/c75367227.lua
script/c75367227.lua
+1
-1
script/c78540593.lua
script/c78540593.lua
+2
-1
script/c84677654.lua
script/c84677654.lua
+1
-1
script/c85893201.lua
script/c85893201.lua
+1
-1
script/c86516889.lua
script/c86516889.lua
+2
-2
script/c88241506.lua
script/c88241506.lua
+1
-2
script/c92609670.lua
script/c92609670.lua
+0
-1
script/c98850929.lua
script/c98850929.lua
+10
-3
No files found.
script/c16279989.lua
View file @
09de10fe
...
...
@@ -22,6 +22,7 @@ function c16279989.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e3
:
SetCondition
(
c16279989
.
thcon
)
e3
:
SetCost
(
c16279989
.
thcost
)
e3
:
SetTarget
(
c16279989
.
thtg
)
e3
:
SetOperation
(
c16279989
.
thop
)
c
:
RegisterEffect
(
e3
)
...
...
script/c1855932.lua
View file @
09de10fe
...
...
@@ -10,7 +10,6 @@ function c1855932.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCategory
(
CATEGORY_DECKDES
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c1855932
.
discon
)
e1
:
SetTarget
(
c1855932
.
distg
)
e1
:
SetOperation
(
c1855932
.
disop
)
...
...
script/c20032555.lua
View file @
09de10fe
...
...
@@ -30,7 +30,7 @@ function c20032555.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c20032555
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetLabel
()
==
0
then
Duel
.
Damage
(
1
-
tp
,
800
,
RASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
800
,
R
E
ASON_EFFECT
)
else
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
script/c24184846.lua
View file @
09de10fe
...
...
@@ -40,9 +40,9 @@ function c24184846.rmop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCondition
(
c24184846
.
retcon
)
e1
:
SetOperation
(
c24184846
.
retop
)
if
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_DRAW
then
e
:
G
etLabel
(
0
)
e
1
:
S
etLabel
(
0
)
else
e
:
G
etLabel
(
Duel
.
GetTurnCount
())
e
1
:
S
etLabel
(
Duel
.
GetTurnCount
())
end
Duel
.
RegisterEffect
(
e1
,
tp
)
end
...
...
script/c2978414.lua
View file @
09de10fe
...
...
@@ -9,6 +9,7 @@ function c2978414.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c2978414
.
condition
)
e1
:
SetCost
(
c2978414
.
cost
)
e1
:
SetTarget
(
c2978414
.
sptg
)
e1
:
SetOperation
(
c2978414
.
spop
)
...
...
@@ -20,6 +21,7 @@ function c2978414.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
c2978414
.
condition
)
e2
:
SetCost
(
c2978414
.
cost
)
e2
:
SetTarget
(
c2978414
.
cttg
)
e2
:
SetOperation
(
c2978414
.
ctop
)
...
...
@@ -29,10 +31,14 @@ function c2978414.initial_effect(c)
e3
:
SetDescription
(
aux
.
Stringid
(
2978414
,
2
))
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCondition
(
c2978414
.
condition
)
e3
:
SetCost
(
c2978414
.
cost
)
e3
:
SetOperation
(
c2978414
.
efop
)
c
:
RegisterEffect
(
e3
)
end
function
c2978414
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
<=
1
end
function
c2978414
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
2978414
)
==
0
and
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
...
...
script/c35307484.lua
View file @
09de10fe
...
...
@@ -4,9 +4,8 @@ function c35307484.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
35307484
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_CHAIN_UNIQUE
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_CHAIN_UNIQUE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetCondition
(
c35307484
.
condition
)
...
...
script/c39972129.lua
View file @
09de10fe
...
...
@@ -33,14 +33,13 @@ function c39972129.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c39972129
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
39972130
,
0
,
0x4011
,
-
2
,
0
,
6
,
RACE_MACHINE
,
ATTRIBUTE_WIND
)
end
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
ft
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
ft
,
0
,
0
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
39972130
,
0
,
0x4011
,
-
2
,
0
,
1
,
RACE_BEAST
,
ATTRIBUTE_EARTH
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
c39972129
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
39972130
,
0
,
0x4011
,
-
2
,
0
,
6
,
RACE_MACHINE
,
ATTRIBUTE_WIND
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
39972130
,
0
,
0x4011
,
-
2
,
0
,
1
,
RACE_BEAST
,
ATTRIBUTE_EARTH
)
then
return
end
local
token
=
Duel
.
CreateToken
(
tp
,
39972130
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
g
,
atk
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
):
GetMaxGroup
(
Card
.
GetAttack
)
...
...
script/c43378076.lua
View file @
09de10fe
...
...
@@ -51,7 +51,7 @@ function c43378076.sretcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c43378076
.
filter
(
c
)
return
c
:
Is
Faceup
(
)
and
c
:
IsAbleToHand
()
return
c
:
Is
Position
(
POS_FACEUP_ATTACK
)
and
c
:
IsAbleToHand
()
end
function
c43378076
.
srettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c43378076
.
filter
(
chkc
)
end
...
...
script/c50527144.lua
View file @
09de10fe
...
...
@@ -22,6 +22,7 @@ function c50527144.activate(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTarget
(
c50527144
.
tgfilter
)
e1
:
SetValue
(
1
)
...
...
script/c53090623.lua
View file @
09de10fe
...
...
@@ -39,17 +39,17 @@ function c53090623.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c53090623
.
rdcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetOverlayCount
(
tp
,
1
,
0
)
>
0
end
if
chk
==
0
then
return
Duel
.
CheckRemoveOverlayCard
(
tp
,
1
,
0
,
1
,
REASON_COST
)
end
Duel
.
RemoveOverlayCard
(
tp
,
1
,
0
,
1
,
1
,
REASON_COST
)
end
function
c53090623
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
end
function
c53090623
.
rdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c53090623
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c53090623
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c53090623
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c53090623
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c53090623
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c53090623
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
function
c53090623
.
rdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
script/c53678698.lua
View file @
09de10fe
...
...
@@ -43,8 +43,7 @@ function c53678698.spcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c53678698
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c53678698
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -54,7 +53,7 @@ function c53678698.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c53678698
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
and
e
:
GetHandler
():
GetFlagEffect
(
53678698
)
>
0
return
e
:
GetHandler
():
GetFlagEffect
(
53678698
)
>
0
end
function
c53678698
.
filter
(
c
)
return
c
:
IsSetCard
(
0x88
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
...
...
script/c55204071.lua
View file @
09de10fe
...
...
@@ -17,7 +17,7 @@ function c55204071.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
Set
Target
(
c55204071
.
spcon2
)
e2
:
Set
Condition
(
c55204071
.
spcon2
)
e2
:
SetTarget
(
c55204071
.
sptg2
)
e2
:
SetOperation
(
c55204071
.
spop2
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -27,13 +27,13 @@ function c55204071.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetOperation
(
c55204071
.
spop3
)
c
:
RegisterEffect
(
e
2
)
c
:
RegisterEffect
(
e
3
)
end
function
c55204071
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
end
function
c55204071
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
Duel
.
GetFlagEffect
(
tp
,
55204071
)
==
0
end
if
c
==
nil
then
return
Duel
.
GetFlagEffect
(
c
:
GetControler
()
,
55204071
)
==
0
end
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>-
1
and
Duel
.
CheckReleaseGroup
(
c
:
GetControler
(),
c55204071
.
cfilter
,
1
,
nil
)
end
...
...
script/c55735315.lua
View file @
09de10fe
...
...
@@ -11,7 +11,6 @@ function c55735315.initial_effect(c)
--atkup
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
55735315
,
0
))
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCondition
(
c55735315
.
atkcon
)
...
...
script/c56427559.lua
View file @
09de10fe
...
...
@@ -20,7 +20,8 @@ function c56427559.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c56427559
.
lvfilter
(
c
,
lv
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x83
)
and
c
:
GetLevel
()
~=
lv
local
clv
=
c
:
GetLevel
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x83
)
and
clv
>
0
and
clv
~=
lv
end
function
c56427559
.
lvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c56427559
.
lvfilter
(
chkc
,
e
:
GetHandler
():
GetLevel
())
end
...
...
script/c58272005.lua
View file @
09de10fe
...
...
@@ -49,7 +49,7 @@ function c58272005.operation(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e2
)
--chain attack
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
70194827
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
58272005
,
0
))
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
...
...
script/c63422098.lua
View file @
09de10fe
...
...
@@ -16,16 +16,16 @@ function c63422098.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCondition
(
c63422098
.
regcon
)
e2
:
SetOperation
(
c63422098
.
regop
)
e2
:
SetLabelObject
(
e1
)
c
:
RegisterEffect
(
e2
)
end
function
c63422098
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_SYNCHRO
end
function
c63422098
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ct
=
c
:
GetMaterialCount
()
e
:
GetLabelObject
():
SetValue
(
ct
*
300
-
300
)
if
c
:
GetSummonType
()
==
SUMMON_TYPE_SYNCHRO
then
local
ct
=
c
:
GetMaterialCount
()
e
:
GetLabelObject
():
SetValue
(
ct
*
200
-
200
)
else
e
:
GetLabelObject
():
SetValue
(
0
)
end
end
script/c64245689.lua
View file @
09de10fe
...
...
@@ -3,7 +3,7 @@ function c64245689.initial_effect(c)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
aux
.
XyzFilterFunctionF
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_EARTH
),
3
),
2
)
c
:
EnableReviveLimit
()
--
spsummon
--
to grave
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
64245689
,
0
))
e1
:
SetCategory
(
CATEGORY_TOGRAVE
)
...
...
@@ -13,7 +13,7 @@ function c64245689.initial_effect(c)
e1
:
SetTarget
(
c64245689
.
tgtg
)
e1
:
SetOperation
(
c64245689
.
tgop
)
c
:
RegisterEffect
(
e1
)
--
control
--
spsummon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
64245689
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
@@ -49,7 +49,8 @@ function c64245689.spfilter(c,e,tp)
end
function
c64245689
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c64245689
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c64245689
.
ctfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c64245689
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c64245689
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
...
...
script/c6691855.lua
View file @
09de10fe
...
...
@@ -51,14 +51,11 @@ function c6691855.operation(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetValue
(
c6691855
.
eqlimit
)
e3
:
SetValue
(
1
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e3
)
end
end
function
c6691855
.
eqlimit
(
e
,
c
)
return
c
:
GetControler
()
==
e
:
GetOwnerPlayer
()
end
function
c6691855
.
defcon
(
e
)
local
eq
=
e
:
GetHandler
():
GetEquipTarget
()
return
Duel
.
GetCurrentPhase
()
==
PHASE_DAMAGE_CAL
and
eq
:
IsRelateToBattle
()
and
eq
:
IsDefencePos
()
...
...
script/c73625877.lua
View file @
09de10fe
...
...
@@ -40,9 +40,9 @@ function c73625877.rmop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCondition
(
c73625877
.
retcon
)
e1
:
SetOperation
(
c73625877
.
retop
)
if
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_DRAW
then
e
:
G
etLabel
(
0
)
e
1
:
S
etLabel
(
0
)
else
e
:
G
etLabel
(
Duel
.
GetTurnCount
())
e
1
:
S
etLabel
(
Duel
.
GetTurnCount
())
end
Duel
.
RegisterEffect
(
e1
,
tp
)
end
...
...
script/c75367227.lua
View file @
09de10fe
...
...
@@ -67,7 +67,7 @@ function c75367227.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c75367227
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c75367227
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
TOHAND
,
g
,
1
,
0
,
0
)
end
function
c75367227
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
script/c78540593.lua
View file @
09de10fe
...
...
@@ -26,8 +26,9 @@ function c78540593.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
c78540593
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
script/c84677654.lua
View file @
09de10fe
...
...
@@ -13,7 +13,7 @@ end
function
c84677654
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c84677654
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
567
)
local
lv
=
Duel
.
AnnounceNumber
(
1
-
tp
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
)
local
lv
=
Duel
.
AnnounceNumber
(
tp
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
)
Duel
.
SetTargetParam
(
lv
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
PLAYER_ALL
,
2
)
end
...
...
script/c85893201.lua
View file @
09de10fe
...
...
@@ -7,7 +7,7 @@ function c85893201.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--destroy
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
62188962
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
85893201
,
0
))
e2
:
SetCategory
(
CATEGORY_DESTROY
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetRange
(
LOCATION_SZONE
)
...
...
script/c86516889.lua
View file @
09de10fe
...
...
@@ -11,11 +11,11 @@ function c86516889.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c86516889
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
Get
Location
(
LOCATION_MZONE
)
and
chkc
:
IsFacedown
()
end
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
Is
Location
(
LOCATION_MZONE
)
and
chkc
:
IsFacedown
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFacedown
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEDOWN
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFacedown
,
tp
,
LOCATION_MZONE
,
0
,
1
,
5
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
g
:
GetCount
()
,
0
,
0
)
end
function
c86516889
.
filter
(
c
,
e
)
return
c
:
IsFacedown
()
and
c
:
IsRelateToEffect
(
e
)
...
...
script/c88241506.lua
View file @
09de10fe
...
...
@@ -36,8 +36,7 @@ function c88241506.natg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c88241506
.
naop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
NegateAttack
()
if
c
:
IsRelateToEffect
(
e
)
then
if
Duel
.
NegateAttack
()
and
c
:
IsRelateToEffect
(
e
)
then
Duel
.
ChangePosition
(
c
,
POS_FACEUP_DEFENCE
,
POS_FACEUP_DEFENCE
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
c88241506
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
...
...
script/c92609670.lua
View file @
09de10fe
...
...
@@ -14,7 +14,6 @@ function c92609670.initial_effect(c)
--lvchange
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
92609670
,
1
))
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
92609670
)
e2
:
SetCost
(
c92609670
.
lvcost
)
...
...
script/c98850929.lua
View file @
09de10fe
...
...
@@ -6,7 +6,8 @@ function c98850929.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCost
(
c98850929
.
condition1
)
e1
:
SetCondition
(
c98850929
.
condition1
)
e1
:
SetCost
(
c98850929
.
cost
)
e1
:
SetTarget
(
c98850929
.
target1
)
e1
:
SetOperation
(
c98850929
.
operation
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -16,7 +17,8 @@ function c98850929.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCost
(
c98850929
.
condition2
)
e2
:
SetCondition
(
c98850929
.
condition2
)
e2
:
SetCost
(
c98850929
.
cost
)
e2
:
SetTarget
(
c98850929
.
target2
)
e2
:
SetOperation
(
c98850929
.
operation
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -26,7 +28,8 @@ function c98850929.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetCost
(
c98850929
.
condition3
)
e3
:
SetCondition
(
c98850929
.
condition3
)
e3
:
SetCost
(
c98850929
.
cost
)
e3
:
SetTarget
(
c98850929
.
target3
)
e3
:
SetOperation
(
c98850929
.
operation
)
c
:
RegisterEffect
(
e3
)
...
...
@@ -41,6 +44,10 @@ function c98850929.condition1(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
c98850929
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
return
g
:
GetClassCount
(
c98850929
.
typecast
)
>=
2
end
function
c98850929
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
98850929
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
98850929
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
end
function
c98850929
.
filter1
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
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