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
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-scripts
Commits
1a2e492e
Commit
1a2e492e
authored
Jul 01, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
df33ef84
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
35 additions
and
44 deletions
+35
-44
c21140872.lua
c21140872.lua
+1
-1
c43017476.lua
c43017476.lua
+4
-4
c44139064.lua
c44139064.lua
+1
-1
c44352516.lua
c44352516.lua
+0
-1
c45078193.lua
c45078193.lua
+5
-4
c46290741.lua
c46290741.lua
+1
-1
c57135971.lua
c57135971.lua
+6
-6
c6890729.lua
c6890729.lua
+2
-1
c71340250.lua
c71340250.lua
+1
-1
c73828446.lua
c73828446.lua
+1
-9
c7445307.lua
c7445307.lua
+1
-1
c77642288.lua
c77642288.lua
+1
-2
c82562802.lua
c82562802.lua
+5
-4
c82685480.lua
c82685480.lua
+6
-7
c83407038.lua
c83407038.lua
+0
-1
No files found.
c21140872.lua
View file @
1a2e492e
...
@@ -95,7 +95,7 @@ function c21140872.ngcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -95,7 +95,7 @@ function c21140872.ngcon(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
g
and
g
:
IsExists
(
c21140872
.
ngcfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsChainNegatable
(
ev
)
return
g
and
g
:
IsExists
(
c21140872
.
ngcfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c21140872
.
ngfilter
(
c
,
e
,
tp
)
function
c21140872
.
ngfilter
(
c
)
return
c
:
IsType
(
TYPE_EQUIP
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsType
(
TYPE_EQUIP
)
and
c
:
IsAbleToGraveAsCost
()
end
end
function
c21140872
.
ngcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c21140872
.
ngcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c43017476.lua
View file @
1a2e492e
...
@@ -18,7 +18,7 @@ function c43017476.initial_effect(c)
...
@@ -18,7 +18,7 @@ function c43017476.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
4301747
6
+
100
)
e2
:
SetCountLimit
(
1
,
4301747
7
)
e2
:
SetTarget
(
c43017476
.
sptg
)
e2
:
SetTarget
(
c43017476
.
sptg
)
e2
:
SetOperation
(
c43017476
.
spop
)
e2
:
SetOperation
(
c43017476
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
@@ -34,11 +34,11 @@ end
...
@@ -34,11 +34,11 @@ end
function
c43017476
.
filter
(
c
)
function
c43017476
.
filter
(
c
)
return
c
:
IsSetCard
(
0x100
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x100
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
end
end
function
c43017476
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c43017476
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c43017476
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c43017476
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c43017476
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c43017476
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c43017476
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c43017476
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
@@ -50,7 +50,7 @@ function c43017476.spfilter(c,e,tp)
...
@@ -50,7 +50,7 @@ function c43017476.spfilter(c,e,tp)
return
c
:
IsCode
(
22587018
,
58071123
,
43017476
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsCode
(
22587018
,
58071123
,
43017476
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c43017476
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c43017476
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c43017476
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c43017476
.
sp
filter
(
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
(
c43017476
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c43017476
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
c44139064.lua
View file @
1a2e492e
...
@@ -24,7 +24,7 @@ function c44139064.initial_effect(c)
...
@@ -24,7 +24,7 @@ function c44139064.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e3
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e3
:
SetCountLimit
(
1
,
4413906
4
+
100
)
e3
:
SetCountLimit
(
1
,
4413906
5
)
e3
:
SetCondition
(
c44139064
.
atkcon
)
e3
:
SetCondition
(
c44139064
.
atkcon
)
e3
:
SetCost
(
c44139064
.
atkcost
)
e3
:
SetCost
(
c44139064
.
atkcost
)
e3
:
SetOperation
(
c44139064
.
atkop
)
e3
:
SetOperation
(
c44139064
.
atkop
)
...
...
c44352516.lua
View file @
1a2e492e
...
@@ -24,7 +24,6 @@ function c44352516.initial_effect(c)
...
@@ -24,7 +24,6 @@ function c44352516.initial_effect(c)
e4
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SUMMON
)
e4
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SUMMON
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetCode
(
EVENT_FREE_CHAIN
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetCountLimit
(
1
,
44352516
)
e4
:
SetCountLimit
(
1
,
44352516
)
e4
:
SetTarget
(
c44352516
.
target
)
e4
:
SetTarget
(
c44352516
.
target
)
...
...
c45078193.lua
View file @
1a2e492e
...
@@ -18,7 +18,7 @@ function c45078193.initial_effect(c)
...
@@ -18,7 +18,7 @@ function c45078193.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e2
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
,
4507819
3
+
100
)
e2
:
SetCountLimit
(
1
,
4507819
4
)
e2
:
SetCondition
(
c45078193
.
gycon
)
e2
:
SetCondition
(
c45078193
.
gycon
)
e2
:
SetTarget
(
c45078193
.
gytg
)
e2
:
SetTarget
(
c45078193
.
gytg
)
e2
:
SetOperation
(
c45078193
.
gyop
)
e2
:
SetOperation
(
c45078193
.
gyop
)
...
@@ -43,11 +43,12 @@ end
...
@@ -43,11 +43,12 @@ end
function
c45078193
.
filter
(
c
)
function
c45078193
.
filter
(
c
)
return
c
:
IsSetCard
(
0x4093
)
and
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x4093
)
and
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAbleToHand
()
end
end
function
c45078193
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c45078193
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c45078193
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c45078193
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c45078193
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c45078193
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c45078193
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c45078193
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
tg
:
GetCount
()
>
0
then
if
tg
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
...
@@ -76,7 +77,7 @@ function c45078193.con(e,tp,eg,ep,ev,re,r,rp)
...
@@ -76,7 +77,7 @@ function c45078193.con(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
GetPreviousLocation
()
==
LOCATION_SZONE
and
not
c
:
IsReason
(
REASON_LOST_TARGET
)
return
c
:
GetPreviousLocation
()
==
LOCATION_SZONE
and
not
c
:
IsReason
(
REASON_LOST_TARGET
)
end
end
function
c45078193
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c45078193
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
1
)
Duel
.
SetTargetParam
(
1
)
...
...
c46290741.lua
View file @
1a2e492e
...
@@ -65,7 +65,7 @@ function c46290741.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -65,7 +65,7 @@ function c46290741.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c46290741
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c46290741
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
c57135971.lua
View file @
1a2e492e
...
@@ -90,12 +90,12 @@ function c57135971.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -90,12 +90,12 @@ function c57135971.desop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--Def
--Def
local
e
1
=
Effect
.
CreateEffect
(
c
)
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetType
(
EFFECT_TYPE_EQUIP
)
e
2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e
1
:
SetCode
(
EFFECT_SET_DEFENSE
)
e
2
:
SetCode
(
EFFECT_SET_DEFENSE
)
e
1
:
SetValue
(
c
:
GetDefense
())
e
2
:
SetValue
(
c
:
GetDefense
())
e
1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e
2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e
1
)
c
:
RegisterEffect
(
e
2
)
--Equip limit
--Equip limit
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c6890729.lua
View file @
1a2e492e
...
@@ -67,7 +67,8 @@ function c6890729.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -67,7 +67,8 @@ function c6890729.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
)
end
end
function
c6890729
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c6890729
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c6890729
.
thfilter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c6890729
.
thfilter
),
tp
,
LOCATION_DECK
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
...
...
c71340250.lua
View file @
1a2e492e
...
@@ -16,7 +16,7 @@ function c71340250.initial_effect(c)
...
@@ -16,7 +16,7 @@ function c71340250.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
71340250
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
71340250
,
1
))
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetCountLimit
(
1
,
7134025
0
+
100
)
e2
:
SetCountLimit
(
1
,
7134025
1
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCost
(
c71340250
.
spcost
)
e2
:
SetCost
(
c71340250
.
spcost
)
e2
:
SetTarget
(
c71340250
.
sptg
)
e2
:
SetTarget
(
c71340250
.
sptg
)
...
...
c73828446.lua
View file @
1a2e492e
...
@@ -25,7 +25,7 @@ function c73828446.initial_effect(c)
...
@@ -25,7 +25,7 @@ function c73828446.initial_effect(c)
--banish
--banish
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
73828446
,
0
))
e4
:
SetDescription
(
aux
.
Stringid
(
73828446
,
0
))
e4
:
SetCategory
(
CATEGORY_
DAMAG
E
)
e4
:
SetCategory
(
CATEGORY_
REMOV
E
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e4
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetRange
(
LOCATION_SZONE
)
...
@@ -88,14 +88,6 @@ function c73828446.rmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -88,14 +88,6 @@ function c73828446.rmop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
end
end
function
c73828446
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c73828446
.
retop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
Duel
.
SendtoDeck
(
e
:
GetHandler
(),
nil
,
2
,
REASON_EFFECT
)
end
function
c73828446
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c73828446
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
...
...
c7445307.lua
View file @
1a2e492e
...
@@ -79,7 +79,7 @@ function c7445307.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -79,7 +79,7 @@ function c7445307.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemoveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemoveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
end
function
c7445307
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c7445307
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c7445307
.
rmfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
e
:
GetHandler
():
GetAttack
())
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c7445307
.
rmfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
e
:
GetHandler
():
GetAttack
())
end
local
g
=
Duel
.
GetMatchingGroup
(
c7445307
.
rmfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
e
:
GetHandler
():
GetAttack
())
local
g
=
Duel
.
GetMatchingGroup
(
c7445307
.
rmfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
,
e
:
GetHandler
():
GetAttack
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
...
...
c77642288.lua
View file @
1a2e492e
...
@@ -14,8 +14,7 @@ function c77642288.initial_effect(c)
...
@@ -14,8 +14,7 @@ function c77642288.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c77642288
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c77642288
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
st
=
e
:
GetHandler
():
GetSummonType
()
return
aux
.
gbspcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
st
>=
(
SUMMON_TYPE_SPECIAL
+
100
)
and
st
<
(
SUMMON_TYPE_SPECIAL
+
150
)
and
e
:
GetHandler
():
GetBattledGroupCount
()
>
0
and
e
:
GetHandler
():
GetBattledGroupCount
()
>
0
end
end
function
c77642288
.
filter
(
c
,
e
,
tp
)
function
c77642288
.
filter
(
c
,
e
,
tp
)
...
...
c82562802.lua
View file @
1a2e492e
...
@@ -18,7 +18,7 @@ function c82562802.initial_effect(c)
...
@@ -18,7 +18,7 @@ function c82562802.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e2
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
,
8256280
2
+
100
)
e2
:
SetCountLimit
(
1
,
8256280
3
)
e2
:
SetCondition
(
c82562802
.
gycon
)
e2
:
SetCondition
(
c82562802
.
gycon
)
e2
:
SetTarget
(
c82562802
.
gytg
)
e2
:
SetTarget
(
c82562802
.
gytg
)
e2
:
SetOperation
(
c82562802
.
gyop
)
e2
:
SetOperation
(
c82562802
.
gyop
)
...
@@ -43,11 +43,12 @@ end
...
@@ -43,11 +43,12 @@ end
function
c82562802
.
filter2
(
c
)
function
c82562802
.
filter2
(
c
)
return
c
:
IsSetCard
(
0x4093
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x4093
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
end
end
function
c82562802
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c82562802
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c82562802
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c82562802
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c82562802
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c82562802
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c82562802
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c82562802
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
tg
:
GetCount
()
>
0
then
if
tg
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
...
@@ -86,7 +87,7 @@ function c82562802.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -86,7 +87,7 @@ function c82562802.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c82562802
.
filter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c82562802
.
filter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
end
end
function
c82562802
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c82562802
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
...
...
c82685480.lua
View file @
1a2e492e
...
@@ -34,19 +34,18 @@ end
...
@@ -34,19 +34,18 @@ end
function
c82685480
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c82685480
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
g
:
GetCount
()
==
0
then
return
end
if
g
:
GetCount
()
==
0
then
return
end
local
tc
=
g
:
GetFirst
()
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
==
0
then
return
end
local
seq
=
0
local
seq
=
0
local
og
=
Duel
.
GetOperatedGroup
()
local
tc
=
og
:
GetFirst
()
while
tc
do
while
tc
do
local
s
=
bit
.
lshift
(
0x1
,
tc
:
GetSequence
()
+
16
)
seq
=
bit
.
replace
(
seq
,
0x1
,
tc
:
GetPreviousSequence
())
if
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
>
0
then
tc
=
og
:
GetNext
()
seq
=
bit
.
bor
(
seq
,
s
)
end
tc
=
g
:
GetNext
()
end
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_DISABLE_FIELD
)
e1
:
SetCode
(
EFFECT_DISABLE_FIELD
)
e1
:
SetLabel
(
seq
)
e1
:
SetLabel
(
seq
*
0x10000
)
e1
:
SetOperation
(
c82685480
.
disop
)
e1
:
SetOperation
(
c82685480
.
disop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
...
...
c83407038.lua
View file @
1a2e492e
...
@@ -45,7 +45,6 @@ function c83407038.initial_effect(c)
...
@@ -45,7 +45,6 @@ function c83407038.initial_effect(c)
end
end
function
c83407038
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c83407038
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
local
tn
=
Duel
.
GetTurnPlayer
()
local
ph
=
Duel
.
GetCurrentPhase
()
local
ph
=
Duel
.
GetCurrentPhase
()
if
((
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
))
if
((
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
))
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
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