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
3902f311
Commit
3902f311
authored
Apr 25, 2015
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c1892016
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
56 additions
and
43 deletions
+56
-43
script/c10117149.lua
script/c10117149.lua
+20
-17
script/c17016362.lua
script/c17016362.lua
+1
-3
script/c18239909.lua
script/c18239909.lua
+1
-1
script/c21452275.lua
script/c21452275.lua
+1
-0
script/c24019092.lua
script/c24019092.lua
+2
-1
script/c24131534.lua
script/c24131534.lua
+2
-1
script/c30500113.lua
script/c30500113.lua
+3
-3
script/c32566831.lua
script/c32566831.lua
+2
-2
script/c43383478.lua
script/c43383478.lua
+2
-2
script/c50407691.lua
script/c50407691.lua
+2
-1
script/c57624336.lua
script/c57624336.lua
+2
-0
script/c58446973.lua
script/c58446973.lua
+2
-1
script/c61639289.lua
script/c61639289.lua
+2
-1
script/c65872270.lua
script/c65872270.lua
+2
-1
script/c71612253.lua
script/c71612253.lua
+2
-3
script/c82734805.lua
script/c82734805.lua
+5
-3
script/c82956492.lua
script/c82956492.lua
+1
-1
script/c96802306.lua
script/c96802306.lua
+2
-1
script/c97024987.lua
script/c97024987.lua
+2
-1
No files found.
script/c10117149.lua
View file @
3902f311
...
@@ -21,30 +21,33 @@ function c10117149.initial_effect(c)
...
@@ -21,30 +21,33 @@ function c10117149.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_DESTROY
)
e3
:
SetCategory
(
CATEGORY_DESTROY
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_S
PS
UMMON_SUCCESS
)
e3
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e3
:
SetTarget
(
c10117149
.
destg
)
e3
:
SetTarget
(
c10117149
.
destg
)
e3
:
SetOperation
(
c10117149
.
desop
)
e3
:
SetOperation
(
c10117149
.
desop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--atk up
local
e4
=
e3
:
Clone
()
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetValue
(
c10117149
.
atkval
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--
spsummon
--
atk up
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e5
:
SetCode
(
EVENT_DESTROYED
)
e5
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e5
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetCountLimit
(
1
,
10117149
)
e5
:
SetValue
(
c10117149
.
atkval
)
e5
:
SetCondition
(
c10117149
.
spcon
)
e5
:
SetTarget
(
c10117149
.
sptg
)
e5
:
SetOperation
(
c10117149
.
spop
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
--spsummon
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e6
:
SetCode
(
EVENT_DESTROYED
)
e6
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e6
:
SetCountLimit
(
1
,
10117149
)
e6
:
SetCondition
(
c10117149
.
spcon
)
e6
:
SetTarget
(
c10117149
.
sptg
)
e6
:
SetOperation
(
c10117149
.
spop
)
c
:
RegisterEffect
(
e6
)
end
end
function
c10117149
.
splimcon
(
e
)
function
c10117149
.
splimcon
(
e
)
return
not
e
:
GetHandler
():
IsForbidden
()
return
not
e
:
GetHandler
():
IsForbidden
()
...
...
script/c17016362.lua
View file @
3902f311
...
@@ -40,9 +40,7 @@ function c17016362.damval(e,re,val,r,rp,rc)
...
@@ -40,9 +40,7 @@ function c17016362.damval(e,re,val,r,rp,rc)
if
val
<=
atk
then
return
0
else
return
val
end
if
val
<=
atk
then
return
0
else
return
val
end
end
end
function
c17016362
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c17016362
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
=
Duel
.
GetTurnPlayer
()
return
Duel
.
IsAbleToEnterBP
()
return
Duel
.
GetTurnCount
()
~=
1
and
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
and
not
Duel
.
IsPlayerAffectedByEffect
(
p
,
EFFECT_CANNOT_BP
)
end
end
function
c17016362
.
mtcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c17016362
.
mtcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
...
...
script/c18239909.lua
View file @
3902f311
...
@@ -56,7 +56,7 @@ function c18239909.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,7 +56,7 @@ function c18239909.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c18239909
.
spfilter
(
c
,
e
,
tp
)
function
c18239909
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xc7
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENCE
)
return
c
:
IsSetCard
(
0xc7
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c18239909
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c18239909
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
script/c21452275.lua
View file @
3902f311
...
@@ -20,6 +20,7 @@ function c21452275.initial_effect(c)
...
@@ -20,6 +20,7 @@ function c21452275.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
c21452275
.
reccon
)
e3
:
SetCondition
(
c21452275
.
reccon
)
e3
:
SetTarget
(
c21452275
.
rectg
)
e3
:
SetTarget
(
c21452275
.
rectg
)
...
...
script/c24019092.lua
View file @
3902f311
...
@@ -26,8 +26,9 @@ function c24019092.filter(c)
...
@@ -26,8 +26,9 @@ function c24019092.filter(c)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
end
end
function
c24019092
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c24019092
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c24019092
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
13
-
e
:
GetHandler
():
GetSequence
())
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
13
-
e
:
GetHandler
():
GetSequence
())
if
chk
==
0
then
return
e
:
GetHandler
():
IsDestructable
()
and
pc
:
IsDestructable
()
and
Duel
.
IsExistingMatchingCard
(
c24019092
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
e
:
GetHandler
(),
pc
)
local
g
=
Group
.
FromCards
(
e
:
GetHandler
(),
pc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
...
...
script/c24131534.lua
View file @
3902f311
...
@@ -26,8 +26,9 @@ function c24131534.filter(c)
...
@@ -26,8 +26,9 @@ function c24131534.filter(c)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
end
end
function
c24131534
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c24131534
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c24131534
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
13
-
e
:
GetHandler
():
GetSequence
())
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
13
-
e
:
GetHandler
():
GetSequence
())
if
chk
==
0
then
return
e
:
GetHandler
():
IsDestructable
()
and
pc
:
IsDestructable
()
and
Duel
.
IsExistingMatchingCard
(
c24131534
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
e
:
GetHandler
(),
pc
)
local
g
=
Group
.
FromCards
(
e
:
GetHandler
(),
pc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
...
...
script/c30500113.lua
View file @
3902f311
...
@@ -4,8 +4,8 @@ function c30500113.initial_effect(c)
...
@@ -4,8 +4,8 @@ function c30500113.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_DESTROYED
)
e1
:
SetCode
(
EVENT_
BATTLE_
DESTROYED
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_D
AMAGE_STEP
+
EFFECT_FLAG_D
ELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e1
:
SetCondition
(
c30500113
.
condition
)
e1
:
SetCondition
(
c30500113
.
condition
)
e1
:
SetTarget
(
c30500113
.
target
)
e1
:
SetTarget
(
c30500113
.
target
)
e1
:
SetOperation
(
c30500113
.
activate
)
e1
:
SetOperation
(
c30500113
.
activate
)
...
@@ -25,7 +25,7 @@ function c30500113.initial_effect(c)
...
@@ -25,7 +25,7 @@ function c30500113.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c30500113
.
cfilter1
(
c
,
tp
)
function
c30500113
.
cfilter1
(
c
,
tp
)
return
c
:
IsSetCard
(
0xba
)
and
c
:
IsReason
(
REASON_BATTLE
)
and
c
:
GetPreviousControler
()
==
tp
return
c
:
IsSetCard
(
0xba
)
and
c
:
GetPreviousControler
()
==
tp
end
end
function
c30500113
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c30500113
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c30500113
.
cfilter1
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c30500113
.
cfilter1
,
1
,
nil
,
tp
)
...
...
script/c32566831.lua
View file @
3902f311
...
@@ -30,9 +30,9 @@ function c32566831.tgfilter(c)
...
@@ -30,9 +30,9 @@ function c32566831.tgfilter(c)
end
end
function
c32566831
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c32566831
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
local
dr
=
Duel
.
Draw
(
p
,
d
,
REASON_EFFECT
)
local
g
=
Duel
.
GetMatchingGroup
(
c32566831
.
tgfilter
,
p
,
LOCATION_DECK
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c32566831
.
tgfilter
,
p
,
LOCATION_DECK
,
0
,
nil
)
if
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
p
,
aux
.
Stringid
(
32566831
,
0
))
then
if
dr
~=
0
and
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
p
,
aux
.
Stringid
(
32566831
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
local
sg
=
g
:
Select
(
p
,
1
,
1
,
nil
)
local
sg
=
g
:
Select
(
p
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
)
...
...
script/c43383478.lua
View file @
3902f311
...
@@ -41,7 +41,7 @@ function c43383478.filter1(c,e,tp)
...
@@ -41,7 +41,7 @@ function c43383478.filter1(c,e,tp)
and
Duel
.
IsExistingMatchingCard
(
c43383478
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetRank
(),
c
)
and
Duel
.
IsExistingMatchingCard
(
c43383478
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetRank
(),
c
)
end
end
function
c43383478
.
filter2
(
c
,
e
,
tp
,
rk
,
mc
)
function
c43383478
.
filter2
(
c
,
e
,
tp
,
rk
,
mc
)
return
c
:
GetRank
()
==
rk
+
1
and
c
:
IsSetCard
(
0xba
)
and
mc
:
IsCanBeXyzMaterial
(
c
,
true
)
return
c
:
GetRank
()
==
rk
+
1
and
c
:
IsSetCard
(
0xba
)
and
mc
:
IsCanBeXyzMaterial
(
c
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
end
function
c43383478
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c43383478
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
@@ -53,7 +53,7 @@ function c43383478.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -53,7 +53,7 @@ function c43383478.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
function
c43383478
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c43383478
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
0
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
=
0
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsImmuneToEffect
(
e
)
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsImmuneToEffect
(
e
)
then
return
end
if
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
==
0
then
return
end
if
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
==
0
then
return
end
...
...
script/c50407691.lua
View file @
3902f311
...
@@ -26,8 +26,9 @@ function c50407691.filter(c)
...
@@ -26,8 +26,9 @@ function c50407691.filter(c)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
end
end
function
c50407691
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c50407691
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c50407691
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
13
-
e
:
GetHandler
():
GetSequence
())
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
13
-
e
:
GetHandler
():
GetSequence
())
if
chk
==
0
then
return
e
:
GetHandler
():
IsDestructable
()
and
pc
:
IsDestructable
()
and
Duel
.
IsExistingMatchingCard
(
c50407691
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
e
:
GetHandler
(),
pc
)
local
g
=
Group
.
FromCards
(
e
:
GetHandler
(),
pc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
...
...
script/c57624336.lua
View file @
3902f311
...
@@ -13,6 +13,7 @@ function c57624336.initial_effect(c)
...
@@ -13,6 +13,7 @@ function c57624336.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetCountLimit
(
1
,
57624336
)
e2
:
SetTarget
(
c57624336
.
destg1
)
e2
:
SetTarget
(
c57624336
.
destg1
)
e2
:
SetOperation
(
c57624336
.
desop1
)
e2
:
SetOperation
(
c57624336
.
desop1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
@@ -22,6 +23,7 @@ function c57624336.initial_effect(c)
...
@@ -22,6 +23,7 @@ function c57624336.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCountLimit
(
1
,
57624337
)
e3
:
SetCost
(
c57624336
.
descost2
)
e3
:
SetCost
(
c57624336
.
descost2
)
e3
:
SetTarget
(
c57624336
.
destg2
)
e3
:
SetTarget
(
c57624336
.
destg2
)
e3
:
SetOperation
(
c57624336
.
desop2
)
e3
:
SetOperation
(
c57624336
.
desop2
)
...
...
script/c58446973.lua
View file @
3902f311
...
@@ -25,7 +25,8 @@ function c58446973.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,7 +25,8 @@ function c58446973.operation(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c58446973
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c58446973
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
tc
and
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
~=
0
and
c
:
IsRelateToEffect
(
e
)
then
if
tc
and
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_LEVEL
)
e1
:
SetCode
(
EFFECT_UPDATE_LEVEL
)
...
...
script/c61639289.lua
View file @
3902f311
...
@@ -26,8 +26,9 @@ function c61639289.filter(c)
...
@@ -26,8 +26,9 @@ function c61639289.filter(c)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
end
end
function
c61639289
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c61639289
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c61639289
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
13
-
e
:
GetHandler
():
GetSequence
())
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
13
-
e
:
GetHandler
():
GetSequence
())
if
chk
==
0
then
return
e
:
GetHandler
():
IsDestructable
()
and
pc
:
IsDestructable
()
and
Duel
.
IsExistingMatchingCard
(
c61639289
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
e
:
GetHandler
(),
pc
)
local
g
=
Group
.
FromCards
(
e
:
GetHandler
(),
pc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
...
...
script/c65872270.lua
View file @
3902f311
...
@@ -37,7 +37,8 @@ function c65872270.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -37,7 +37,8 @@ function c65872270.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
end
end
function
c65872270
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65872270
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
and
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
return
Duel
.
GetTurnPlayer
()
==
tp
and
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
end
end
function
c65872270
.
desfilter
(
c
)
function
c65872270
.
desfilter
(
c
)
return
c
:
IsSetCard
(
0xc8
)
and
c
:
IsDestructable
()
return
c
:
IsSetCard
(
0xc8
)
and
c
:
IsDestructable
()
...
...
script/c71612253.lua
View file @
3902f311
...
@@ -62,7 +62,7 @@ function c71612253.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -62,7 +62,7 @@ function c71612253.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c71612253
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c71612253
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsType
(
TYPE_MONSTER
)
then
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
)
...
@@ -72,8 +72,7 @@ function c71612253.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -72,8 +72,7 @@ function c71612253.operation(e,tp,eg,ep,ev,re,r,rp)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Damage
(
1
-
tp
,
1000
,
REASON_EFFECT
)
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
end
end
end
end
function
c71612253
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c71612253
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c82734805.lua
View file @
3902f311
...
@@ -80,16 +80,18 @@ function c82734805.extg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -80,16 +80,18 @@ function c82734805.extg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c82734805
.
exop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c82734805
.
exop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g1
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
local
g1
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_EXTRA
,
0
,
nil
)
local
sg1
=
nil
if
g1
:
GetCount
()
>=
3
then
if
g1
:
GetCount
()
>=
3
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
sg1
=
g1
:
Select
(
tp
,
3
,
3
,
nil
)
sg1
=
g1
:
Select
(
tp
,
3
,
3
,
nil
)
end
e
lse
sg1
=
g1
e
nd
local
g2
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToGrave
,
tp
,
0
,
LOCATION_EXTRA
,
nil
)
local
g2
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToGrave
,
tp
,
0
,
LOCATION_EXTRA
,
nil
)
local
sg2
=
nil
if
g2
:
GetCount
()
>=
3
then
if
g2
:
GetCount
()
>=
3
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
sg2
=
g2
:
Select
(
1
-
tp
,
3
,
3
,
nil
)
sg2
=
g2
:
Select
(
1
-
tp
,
3
,
3
,
nil
)
sg1
:
Merge
(
sg2
)
else
sg2
=
g2
end
end
sg1
:
Merge
(
sg2
)
if
sg1
:
GetCount
()
>
0
then
if
sg1
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
sg1
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
sg1
,
REASON_EFFECT
)
end
end
...
...
script/c82956492.lua
View file @
3902f311
...
@@ -14,5 +14,5 @@ function c82956492.initial_effect(c)
...
@@ -14,5 +14,5 @@ function c82956492.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c82956492
.
rev
(
e
,
re
,
r
,
rp
,
rc
)
function
c82956492
.
rev
(
e
,
re
,
r
,
rp
,
rc
)
return
bit
.
band
(
r
,
REASON_EFFECT
)
>
0
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
end
end
script/c96802306.lua
View file @
3902f311
...
@@ -26,8 +26,9 @@ function c96802306.filter(c)
...
@@ -26,8 +26,9 @@ function c96802306.filter(c)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
end
end
function
c96802306
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c96802306
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c96802306
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
13
-
e
:
GetHandler
():
GetSequence
())
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
13
-
e
:
GetHandler
():
GetSequence
())
if
chk
==
0
then
return
e
:
GetHandler
():
IsDestructable
()
and
pc
:
IsDestructable
()
and
Duel
.
IsExistingMatchingCard
(
c96802306
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
e
:
GetHandler
(),
pc
)
local
g
=
Group
.
FromCards
(
e
:
GetHandler
(),
pc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
...
...
script/c97024987.lua
View file @
3902f311
...
@@ -26,8 +26,9 @@ function c97024987.filter(c)
...
@@ -26,8 +26,9 @@ function c97024987.filter(c)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
return
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
end
end
function
c97024987
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c97024987
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c97024987
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
13
-
e
:
GetHandler
():
GetSequence
())
local
pc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
13
-
e
:
GetHandler
():
GetSequence
())
if
chk
==
0
then
return
e
:
GetHandler
():
IsDestructable
()
and
pc
:
IsDestructable
()
and
Duel
.
IsExistingMatchingCard
(
c97024987
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
g
=
Group
.
FromCards
(
e
:
GetHandler
(),
pc
)
local
g
=
Group
.
FromCards
(
e
:
GetHandler
(),
pc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
...
...
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