Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
4
Merge Requests
4
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
MyCard
ygopro-scripts-888
Commits
776d426a
Commit
776d426a
authored
Feb 03, 2025
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into master
parents
dfe0841e
dba03b3a
Changes
34
Hide whitespace changes
Inline
Side-by-side
Showing
34 changed files
with
103 additions
and
70 deletions
+103
-70
c1154611.lua
c1154611.lua
+1
-0
c14731897.lua
c14731897.lua
+9
-4
c15310033.lua
c15310033.lua
+1
-1
c16240772.lua
c16240772.lua
+2
-1
c17548456.lua
c17548456.lua
+1
-1
c22398665.lua
c22398665.lua
+1
-1
c24903843.lua
c24903843.lua
+1
-0
c2674965.lua
c2674965.lua
+1
-1
c31111109.lua
c31111109.lua
+1
-1
c33787730.lua
c33787730.lua
+3
-15
c3734202.lua
c3734202.lua
+2
-0
c39354437.lua
c39354437.lua
+1
-1
c425934.lua
c425934.lua
+4
-0
c48452496.lua
c48452496.lua
+2
-2
c49655592.lua
c49655592.lua
+4
-0
c51606429.lua
c51606429.lua
+1
-0
c56246017.lua
c56246017.lua
+1
-0
c64765016.lua
c64765016.lua
+1
-0
c70491413.lua
c70491413.lua
+5
-1
c71939275.lua
c71939275.lua
+1
-1
c71978434.lua
c71978434.lua
+4
-2
c74139959.lua
c74139959.lua
+1
-1
c75366958.lua
c75366958.lua
+1
-1
c80627281.lua
c80627281.lua
+1
-1
c85065943.lua
c85065943.lua
+1
-0
c87800375.lua
c87800375.lua
+4
-1
c9190563.lua
c9190563.lua
+5
-1
c92487128.lua
c92487128.lua
+1
-1
c92586237.lua
c92586237.lua
+1
-0
c94415058.lua
c94415058.lua
+1
-1
c96029570.lua
c96029570.lua
+1
-1
c9763474.lua
c9763474.lua
+2
-0
c99788587.lua
c99788587.lua
+13
-4
utility.lua
utility.lua
+24
-26
No files found.
c1154611.lua
View file @
776d426a
...
@@ -7,6 +7,7 @@ function c1154611.initial_effect(c)
...
@@ -7,6 +7,7 @@ function c1154611.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetTarget
(
c1154611
.
target
)
e1
:
SetTarget
(
c1154611
.
target
)
e1
:
SetOperation
(
c1154611
.
activate
)
e1
:
SetOperation
(
c1154611
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
...
c14731897.lua
View file @
776d426a
...
@@ -13,14 +13,19 @@ function c14731897.initial_effect(c)
...
@@ -13,14 +13,19 @@ function c14731897.initial_effect(c)
e1
:
SetOperation
(
c14731897
.
activate
)
e1
:
SetOperation
(
c14731897
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c14731897
.
filter
(
c
)
function
c14731897
.
sum
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsDefenseAbove
(
0
)
return
c
:
IsFaceup
()
and
c
:
IsDefenseAbove
(
0
)
end
end
function
c14731897
.
filter
(
c
,
def
)
return
c
:
IsFaceup
()
and
c
:
IsDefenseAbove
(
0
)
and
not
c
:
IsDefense
(
def
)
end
function
c14731897
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c14731897
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c14731897
.
filter
(
chkc
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c14731897
.
sumfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c14731897
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
sum
=
g
:
GetSum
(
Card
.
GetBaseDefense
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c14731897
.
filter
(
chkc
,
sum
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c14731897
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
sum
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c14731897
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c14731897
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
sum
)
end
end
function
c14731897
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c14731897
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
...
...
c15310033.lua
View file @
776d426a
...
@@ -7,7 +7,7 @@ function c15310033.initial_effect(c)
...
@@ -7,7 +7,7 @@ function c15310033.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
15310033
+
EFFECT_COUNT_CODE_DUEL
)
e1
:
SetCountLimit
(
1
,
15310033
+
EFFECT_COUNT_CODE_
OATH
+
EFFECT_COUNT_CODE_
DUEL
)
e1
:
SetCondition
(
c15310033
.
spcon
)
e1
:
SetCondition
(
c15310033
.
spcon
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
...
...
c16240772.lua
View file @
776d426a
...
@@ -55,13 +55,14 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,13 +55,14 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
dfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
s
.
dfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
tc
:
IsFaceup
()
and
#
g
>
0
then
if
tc
:
IsFaceup
()
and
#
g
>
0
then
if
chk
then
Duel
.
BreakEffect
()
end
if
chk
then
Duel
.
BreakEffect
()
end
local
atkd
=
tc
:
GetAttack
()
local
dg
=
Group
.
CreateGroup
()
local
dg
=
Group
.
CreateGroup
()
for
sc
in
aux
.
Next
(
g
)
do
for
sc
in
aux
.
Next
(
g
)
do
local
patk
=
sc
:
GetAttack
()
local
patk
=
sc
:
GetAttack
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
-
tc
:
GetAttack
()
)
e1
:
SetValue
(
-
atkd
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
sc
:
RegisterEffect
(
e1
)
sc
:
RegisterEffect
(
e1
)
if
patk
~=
0
and
sc
:
IsAttack
(
0
)
then
dg
:
AddCard
(
sc
)
end
if
patk
~=
0
and
sc
:
IsAttack
(
0
)
then
dg
:
AddCard
(
sc
)
end
...
...
c17548456.lua
View file @
776d426a
...
@@ -7,7 +7,7 @@ function c17548456.initial_effect(c)
...
@@ -7,7 +7,7 @@ function c17548456.initial_effect(c)
--destroy
--destroy
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
17548456
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
17548456
,
0
))
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_GRAVE_SPSUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCondition
(
c17548456
.
descon
)
e1
:
SetCondition
(
c17548456
.
descon
)
...
...
c22398665.lua
View file @
776d426a
...
@@ -35,7 +35,7 @@ end
...
@@ -35,7 +35,7 @@ end
function
c22398665
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c22398665
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsAttackAbove
(
1000
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsAttackAbove
(
1000
)
and
not
tc
:
IsImmuneToEffect
(
e
)
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_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
...
c24903843.lua
View file @
776d426a
...
@@ -6,6 +6,7 @@ function c24903843.initial_effect(c)
...
@@ -6,6 +6,7 @@ function c24903843.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetTarget
(
c24903843
.
target
)
e1
:
SetTarget
(
c24903843
.
target
)
e1
:
SetOperation
(
c24903843
.
activate
)
e1
:
SetOperation
(
c24903843
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
...
c2674965.lua
View file @
776d426a
...
@@ -75,7 +75,7 @@ end
...
@@ -75,7 +75,7 @@ end
function
s
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
return
rc
:
IsAllTypes
(
TYPE_TRAP
+
TYPE_CONTINUOUS
)
and
re
:
GetActivateLocation
()
==
LOCATION_MZONE
return
rc
:
IsAllTypes
(
TYPE_TRAP
+
TYPE_CONTINUOUS
)
and
re
:
GetActivateLocation
()
==
LOCATION_MZONE
and
Duel
.
IsExistingMatchingCard
(
s
.
cfilter2
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
s
.
cfilter2
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
and
rp
==
tp
end
end
function
s
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsOnField
()
and
aux
.
NegateAnyFilter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsOnField
()
and
aux
.
NegateAnyFilter
(
chkc
)
end
...
...
c31111109.lua
View file @
776d426a
...
@@ -80,7 +80,7 @@ function c31111109.rstop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -80,7 +80,7 @@ function c31111109.rstop(e,tp,eg,ep,ev,re,r,rp)
atke
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
atke
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
end
end
c
:
ResetEffect
(
cid
,
RESET_COPY
)
c
:
ResetEffect
(
cid
,
RESET_COPY
)
c
:
ResetEffect
(
RESET_DISABLE
,
RESET_EVENT
)
c
:
ResetEffect
(
RESET_DISABLE
,
RESET_EVENT
+
RESETS_STANDARD
)
if
atke
then
if
atke
then
atke
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
atke
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
end
end
...
...
c33787730.lua
View file @
776d426a
...
@@ -65,28 +65,16 @@ end
...
@@ -65,28 +65,16 @@ end
function
s
.
filter
(
c
)
function
s
.
filter
(
c
)
return
c
:
IsCanOverlay
()
and
c
:
IsFaceup
()
return
c
:
IsCanOverlay
()
and
c
:
IsFaceup
()
end
end
function
s
.
fselect
(
sg
,
tp
)
local
mg
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
return
mg
:
CheckSubGroup
(
s
.
matfilter
,
1
,
#
mg
,
tp
,
sg
)
end
function
s
.
matfilter
(
sg
,
tp
,
g
)
if
sg
:
Filter
(
Card
.
IsSetCard
,
nil
,
0x1be
):
GetCount
()
==
0
then
return
false
end
return
Duel
.
IsExistingMatchingCard
(
s
.
xyzfilter1
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
sg
)
end
function
s
.
xyzfilter1
(
c
,
mg
)
return
c
:
IsXyzSummonable
(
mg
,
#
mg
,
#
mg
)
end
function
s
.
xyztg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
xyztg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
mg
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
mg
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
chk
==
0
then
return
mg
:
CheckSubGroup
(
s
.
fselect
,
1
,
mg
:
GetCount
(),
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
xyzfilter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
mg
)
end
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
s
.
xyzfilter2
(
c
,
mg
)
function
s
.
xyzfilter2
(
c
,
mg
)
return
mg
:
CheckSubGroup
(
s
.
gselect
,
1
,
#
mg
,
c
)
return
c
:
IsType
(
TYPE_XYZ
)
and
mg
:
CheckSubGroup
(
s
.
gselect
,
1
,
#
mg
,
c
)
end
end
function
s
.
gselect
(
sg
,
c
)
function
s
.
gselect
(
sg
,
c
)
if
sg
:
Filter
(
Card
.
IsSetCard
,
nil
,
0x1be
):
GetCount
()
==
0
then
return
false
end
return
sg
:
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x1be
)
and
c
:
IsXyzSummonable
(
sg
,
#
sg
,
#
sg
)
return
c
:
IsXyzSummonable
(
sg
,
#
sg
,
#
sg
)
end
end
function
s
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
xyzop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
mg
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
mg
=
Duel
.
GetMatchingGroup
(
s
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
...
...
c3734202.lua
View file @
776d426a
...
@@ -13,6 +13,7 @@ function c3734202.initial_effect(c)
...
@@ -13,6 +13,7 @@ function c3734202.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e2
:
SetCountLimit
(
1
,
3734202
)
e2
:
SetCountLimit
(
1
,
3734202
)
e2
:
SetCost
(
c3734202
.
spcost1
)
e2
:
SetCost
(
c3734202
.
spcost1
)
e2
:
SetTarget
(
c3734202
.
sptg1
)
e2
:
SetTarget
(
c3734202
.
sptg1
)
...
@@ -25,6 +26,7 @@ function c3734202.initial_effect(c)
...
@@ -25,6 +26,7 @@ function c3734202.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e3
:
SetCountLimit
(
1
,
3734202
)
e3
:
SetCountLimit
(
1
,
3734202
)
e3
:
SetCost
(
c3734202
.
spcost2
)
e3
:
SetCost
(
c3734202
.
spcost2
)
e3
:
SetTarget
(
c3734202
.
sptg2
)
e3
:
SetTarget
(
c3734202
.
sptg2
)
...
...
c39354437.lua
View file @
776d426a
...
@@ -20,7 +20,7 @@ function c39354437.initial_effect(c)
...
@@ -20,7 +20,7 @@ function c39354437.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_BE_BATTLE_TARGET
)
e3
:
SetCode
(
EVENT_BE_BATTLE_TARGET
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
39354438
+
EFFECT_COUNT_CODE_SINGLE
)
e3
:
SetCountLimit
(
1
,
39354438
)
e3
:
SetCondition
(
c39354437
.
spcon1
)
e3
:
SetCondition
(
c39354437
.
spcon1
)
e3
:
SetTarget
(
c39354437
.
sptg
)
e3
:
SetTarget
(
c39354437
.
sptg
)
e3
:
SetOperation
(
c39354437
.
spop
)
e3
:
SetOperation
(
c39354437
.
spop
)
...
...
c425934.lua
View file @
776d426a
...
@@ -8,6 +8,10 @@ function c425934.initial_effect(c)
...
@@ -8,6 +8,10 @@ function c425934.initial_effect(c)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
1
,
1
)
e1
:
SetTargetRange
(
1
,
1
)
e1
:
SetCode
(
EFFECT_CANNOT_DISCARD_HAND
)
e1
:
SetCode
(
EFFECT_CANNOT_DISCARD_HAND
)
e1
:
SetTarget
(
c425934
.
target
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c425934
.
target
(
e
,
dc
,
re
,
r
)
return
r
&
REASON_COST
==
REASON_COST
end
c48452496.lua
View file @
776d426a
...
@@ -42,8 +42,8 @@ end
...
@@ -42,8 +42,8 @@ end
function
s
.
filter
(
c
,
tp
)
function
s
.
filter
(
c
,
tp
)
local
r
=
LOCATION_REASON_TOFIELD
local
r
=
LOCATION_REASON_TOFIELD
if
not
c
:
IsControler
(
c
:
GetOwner
())
then
r
=
LOCATION_REASON_CONTROL
end
if
not
c
:
IsControler
(
c
:
GetOwner
())
then
r
=
LOCATION_REASON_CONTROL
end
return
(
c
:
Is
Type
(
TYPE_MONSTER
)
or
c
:
IsLocation
(
LOCATION_MZONE
))
and
c
:
IsFaceupEx
(
)
return
(
c
:
Is
Location
(
LOCATION_MZONE
)
or
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsForbidden
()
and
c
:
CheckUniqueOnField
(
c
:
GetOwner
())
)
and
Duel
.
GetLocationCount
(
c
:
GetOwner
(),
LOCATION_SZONE
,
tp
,
r
)
>
0
and
c
:
IsFaceupEx
()
and
Duel
.
GetLocationCount
(
c
:
GetOwner
(),
LOCATION_SZONE
,
tp
,
r
)
>
0
end
end
function
s
.
mvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
s
.
mvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_MZONE
)
and
s
.
filter
(
chkc
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_MZONE
)
and
s
.
filter
(
chkc
,
tp
)
end
...
...
c49655592.lua
View file @
776d426a
...
@@ -47,6 +47,7 @@ function c49655592.initial_effect(c)
...
@@ -47,6 +47,7 @@ function c49655592.initial_effect(c)
e5
:
SetTargetRange
(
0
,
1
)
e5
:
SetTargetRange
(
0
,
1
)
e5
:
SetCode
(
EFFECT_CANNOT_DISCARD_HAND
)
e5
:
SetCode
(
EFFECT_CANNOT_DISCARD_HAND
)
e5
:
SetCondition
(
c49655592
.
excon
)
e5
:
SetCondition
(
c49655592
.
excon
)
e5
:
SetTarget
(
c49655592
.
extarget
)
e5
:
SetValue
(
1
)
e5
:
SetValue
(
1
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
...
@@ -95,3 +96,6 @@ end
...
@@ -95,3 +96,6 @@ end
function
c49655592
.
excon
(
e
)
function
c49655592
.
excon
(
e
)
return
e
:
GetHandler
():
IsLevelAbove
(
7
)
return
e
:
GetHandler
():
IsLevelAbove
(
7
)
end
end
function
c49655592
.
extarget
(
e
,
dc
,
re
,
r
)
return
r
&
REASON_COST
==
REASON_COST
end
c51606429.lua
View file @
776d426a
...
@@ -6,6 +6,7 @@ function c51606429.initial_effect(c)
...
@@ -6,6 +6,7 @@ function c51606429.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetTarget
(
c51606429
.
target
)
e1
:
SetTarget
(
c51606429
.
target
)
e1
:
SetOperation
(
c51606429
.
activate
)
e1
:
SetOperation
(
c51606429
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
...
c56246017.lua
View file @
776d426a
...
@@ -7,6 +7,7 @@ function c56246017.initial_effect(c)
...
@@ -7,6 +7,7 @@ function c56246017.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetCost
(
c56246017
.
cost
)
e1
:
SetCost
(
c56246017
.
cost
)
e1
:
SetTarget
(
c56246017
.
target
)
e1
:
SetTarget
(
c56246017
.
target
)
e1
:
SetOperation
(
c56246017
.
activate
)
e1
:
SetOperation
(
c56246017
.
activate
)
...
...
c64765016.lua
View file @
776d426a
...
@@ -6,6 +6,7 @@ function c64765016.initial_effect(c)
...
@@ -6,6 +6,7 @@ function c64765016.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOGRAVE
)
e1
:
SetCategory
(
CATEGORY_TOGRAVE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetTarget
(
c64765016
.
target
)
e1
:
SetTarget
(
c64765016
.
target
)
e1
:
SetOperation
(
c64765016
.
activate
)
e1
:
SetOperation
(
c64765016
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
...
c70491413.lua
View file @
776d426a
...
@@ -34,7 +34,11 @@ end
...
@@ -34,7 +34,11 @@ end
function
c70491413
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c70491413
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
cl
=
Duel
.
GetCurrentChain
()
local
cl
=
Duel
.
GetCurrentChain
()
if
cl
>=
2
then
if
cl
>=
2
then
Duel
.
SortDecktop
(
tp
,
tp
,
cl
)
Duel
.
ConfirmDecktop
(
tp
,
cl
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
cl
)
if
g
:
GetCount
()
>
0
then
Duel
.
SortDecktop
(
tp
,
tp
,
g
:
GetCount
())
end
end
end
if
cl
>=
3
then
if
cl
>=
3
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
...
...
c71939275.lua
View file @
776d426a
...
@@ -186,4 +186,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -186,4 +186,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
end
end
end
end
\ No newline at end of file
c71978434.lua
View file @
776d426a
...
@@ -42,11 +42,13 @@ function c71978434.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -42,11 +42,13 @@ function c71978434.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
1
-
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
1
-
tp
,
LOCATION_HAND
)
end
end
function
c71978434
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c71978434
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_HAND
,
nil
)
if
g
:
GetCount
()
==
0
then
return
end
if
g
:
GetCount
()
==
0
then
return
end
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
ConfirmCards
(
tp
,
g
)
local
g1
=
g
:
Filter
(
Card
.
IsAbleToRemove
,
nil
)
if
g1
:
GetCount
()
==
0
then
Duel
.
ShuffleHand
(
1
-
tp
)
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
local
tc
=
g
1
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
ShuffleHand
(
1
-
tp
)
Duel
.
ShuffleHand
(
1
-
tp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c74139959.lua
View file @
776d426a
...
@@ -40,7 +40,7 @@ function s.initial_effect(c)
...
@@ -40,7 +40,7 @@ function s.initial_effect(c)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCountLimit
(
1
)
e4
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e4
:
SetHintTiming
(
TIMING_DAMAGE_STEP
,
TIMINGS_CHECK_MONSTER
+
TIMING_DAMAGE_STEP
+
TIMING_END_PHASE
)
e4
:
SetCost
(
s
.
atkcost
)
e4
:
SetCost
(
s
.
atkcost
)
e4
:
SetOperation
(
s
.
atkop
)
e4
:
SetOperation
(
s
.
atkop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
...
...
c75366958.lua
View file @
776d426a
...
@@ -7,7 +7,7 @@ function c75366958.initial_effect(c)
...
@@ -7,7 +7,7 @@ function c75366958.initial_effect(c)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
75366958
+
EFFECT_COUNT_CODE_DUEL
)
e1
:
SetCountLimit
(
1
,
75366958
+
EFFECT_COUNT_CODE_
OATH
+
EFFECT_COUNT_CODE_
DUEL
)
e1
:
SetCondition
(
c75366958
.
spcon
)
e1
:
SetCondition
(
c75366958
.
spcon
)
e1
:
SetOperation
(
c75366958
.
spop
)
e1
:
SetOperation
(
c75366958
.
spop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
...
c80627281.lua
View file @
776d426a
...
@@ -54,7 +54,7 @@ function c80627281.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,7 +54,7 @@ function c80627281.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCondition
(
c80627281
.
immcon
)
e1
:
SetCondition
(
c80627281
.
immcon
)
e1
:
SetValue
(
c80627281
.
efilter
)
e1
:
SetValue
(
c80627281
.
efilter
)
e1
:
SetOwnerPlayer
(
tp
)
e1
:
SetOwnerPlayer
(
tp
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CONTROL
)
tc
:
RegisterEffect
(
e1
,
true
)
tc
:
RegisterEffect
(
e1
,
true
)
tc
:
CompleteProcedure
()
tc
:
CompleteProcedure
()
end
end
...
...
c85065943.lua
View file @
776d426a
...
@@ -36,6 +36,7 @@ function s.initial_effect(c)
...
@@ -36,6 +36,7 @@ function s.initial_effect(c)
e3
:
SetOperation
(
s
.
spop
)
e3
:
SetOperation
(
s
.
spop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
s
.
material_type
=
TYPE_SYNCHRO
function
s
.
mfilter1
(
c
)
function
s
.
mfilter1
(
c
)
return
c
:
IsLevelAbove
(
6
)
and
c
:
IsFusionType
(
TYPE_FUSION
)
return
c
:
IsLevelAbove
(
6
)
and
c
:
IsFusionType
(
TYPE_FUSION
)
end
end
...
...
c87800375.lua
View file @
776d426a
...
@@ -40,7 +40,10 @@ function c87800375.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,7 +40,10 @@ function c87800375.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
DisableShuffleCheck
()
Duel
.
DisableShuffleCheck
()
if
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
~=
0
then
ct
=
ct
-
1
end
if
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
~=
0
then
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
ct
=
ct
-
1
end
Duel
.
ShuffleHand
(
tp
)
Duel
.
ShuffleHand
(
tp
)
if
ct
>
0
then
Duel
.
SortDecktop
(
tp
,
tp
,
ct
)
end
if
ct
>
0
then
Duel
.
SortDecktop
(
tp
,
tp
,
ct
)
end
end
end
...
...
c9190563.lua
View file @
776d426a
...
@@ -31,11 +31,15 @@ function c9190563.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -31,11 +31,15 @@ function c9190563.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c9190563
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c9190563
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c9190563
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c9190563
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetFirst
()
==
e
:
GetHandler
()
then
e
:
GetHandler
():
ReleaseEffectRelation
(
e
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
end
function
c9190563
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9190563
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
local
c
=
e
:
GetHandler
()
if
tc
:
IsRelateToChain
()
or
(
tc
==
c
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetReasonEffect
()
==
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
c92487128.lua
View file @
776d426a
...
@@ -90,7 +90,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -90,7 +90,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
rfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
aux
.
ExceptThisCard
(
e
),
tp
,
c
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
s
.
rfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
aux
.
ExceptThisCard
(
e
),
tp
,
c
)
if
Duel
.
Release
(
g
,
REASON_EFFECT
)
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
true
,
true
,
POS_FACEUP
)
~=
0
then
if
Duel
.
Release
(
g
,
REASON_EFFECT
)
~=
0
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
SUMMON_TYPE_RITUAL
,
tp
,
tp
,
true
,
true
,
POS_FACEUP
)
~=
0
then
c
:
CompleteProcedure
()
c
:
CompleteProcedure
()
if
Duel
.
IsExistingMatchingCard
(
s
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
tp
)
if
Duel
.
IsExistingMatchingCard
(
s
.
desfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
s
.
pfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
s
.
pfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
tp
)
...
...
c92586237.lua
View file @
776d426a
...
@@ -77,6 +77,7 @@ function c92586237.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -77,6 +77,7 @@ function c92586237.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c92586237
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
code
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c92586237
.
thfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
code
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
end
end
end
end
...
...
c94415058.lua
View file @
776d426a
...
@@ -57,7 +57,7 @@ end
...
@@ -57,7 +57,7 @@ end
function
c94415058
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94415058
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
if
eg
:
GetCount
()
==
1
and
rp
==
1
-
tp
and
tc
:
IsReason
(
REASON_EFFECT
)
if
eg
:
GetCount
()
==
1
and
rp
==
1
-
tp
and
tc
:
IsReason
(
REASON_EFFECT
)
and
tc
:
IsPreviousControler
(
tp
)
and
tc
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
tc
:
IsPreviousControler
(
tp
)
and
tc
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
tc
:
IsPreviousPosition
(
POS_FACEUP
)
and
tc
:
IsType
(
TYPE_PENDULUM
)
and
tc
:
IsControler
(
tp
)
then
and
tc
:
IsType
(
TYPE_PENDULUM
)
and
tc
:
IsControler
(
tp
)
then
e
:
SetLabel
(
tc
:
GetCode
())
e
:
SetLabel
(
tc
:
GetCode
())
return
true
return
true
...
...
c96029570.lua
View file @
776d426a
...
@@ -83,7 +83,7 @@ function s.autg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -83,7 +83,7 @@ function s.autg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
s
.
auop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
auop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetTargetsRelateToChain
():
GetFirst
()
local
tc
=
Duel
.
GetTargetsRelateToChain
():
GetFirst
()
if
tc
:
IsFaceup
()
then
if
tc
and
tc
:
IsFaceup
()
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
)
...
...
c9763474.lua
View file @
776d426a
...
@@ -43,6 +43,8 @@ function s.actg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -43,6 +43,8 @@ function s.actg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SelectTarget
(
tp
,
s
.
atkcheck
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
atk
)
Duel
.
SelectTarget
(
tp
,
s
.
atkcheck
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
atk
)
if
race
==
RACE_REPTILE
then
if
race
==
RACE_REPTILE
then
e
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DRAW
)
e
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DRAW
)
else
e
:
SetCategory
(
CATEGORY_ATKCHANGE
)
end
end
end
end
function
s
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c99788587.lua
View file @
776d426a
...
@@ -13,16 +13,25 @@ function c99788587.initial_effect(c)
...
@@ -13,16 +13,25 @@ function c99788587.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c99788587
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c99788587
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsAllColumn
()
return
e
:
GetHandler
():
IsAllColumn
()
and
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c99788587
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c99788587
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
local
c
=
e
:
GetHandler
()
e
:
SetLabel
(
aux
.
GetColumn
(
c
)
+
1
)
local
g
=
e
:
GetHandler
():
GetColumnGroup
()
local
g
=
e
:
GetHandler
():
GetColumnGroup
()
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c99788587
.
opfilter
(
c
,
col
)
return
aux
.
GetColumn
(
c
)
==
col
end
function
c99788587
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c99788587
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
e
:
GetHandler
():
GetColumnGroup
()
local
col
=
e
:
GetLabel
()
if
g
:
GetCount
()
>
0
then
if
col
>
0
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
col
=
col
-
1
local
g
=
Duel
.
GetMatchingGroup
(
c99788587
.
opfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
aux
.
ExceptThisCard
(
e
),
col
)
if
g
:
GetCount
()
>
0
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
end
end
end
utility.lua
View file @
776d426a
...
@@ -1627,26 +1627,25 @@ function Auxiliary.RegisterMergedDelayedEvent_ToSingleCard(c,code,events)
...
@@ -1627,26 +1627,25 @@ function Auxiliary.RegisterMergedDelayedEvent_ToSingleCard(c,code,events)
g
:
KeepAlive
()
g
:
KeepAlive
()
local
mt
=
getmetatable
(
c
)
local
mt
=
getmetatable
(
c
)
local
seed
=
0
local
seed
=
0
if
type
(
events
)
==
"table"
then
if
type
(
events
)
==
"table"
then
for
_
,
event
in
ipairs
(
events
)
do
for
_
,
event
in
ipairs
(
events
)
do
seed
=
seed
+
event
seed
=
seed
+
event
end
end
else
else
seed
=
events
seed
=
events
end
while
(
mt
[
seed
]
==
true
)
do
seed
=
seed
+
1
end
end
mt
[
seed
]
=
true
while
(
mt
[
seed
]
==
true
)
do
seed
=
seed
+
1
end
mt
[
seed
]
=
true
local
event_code_single
=
(
code
~
(
seed
<<
16
))
|
EVENT_CUSTOM
local
event_code_single
=
(
code
~
(
seed
<<
16
))
|
EVENT_CUSTOM
if
type
(
events
)
==
"table"
then
if
type
(
events
)
==
"table"
then
for
_
,
event
in
ipairs
(
events
)
do
for
_
,
event
in
ipairs
(
events
)
do
Auxiliary
.
RegisterMergedDelayedEvent_ToSingleCard_AddOperation
(
c
,
g
,
event
,
event_code_single
)
Auxiliary
.
RegisterMergedDelayedEvent_ToSingleCard_AddOperation
(
c
,
g
,
event
,
event_code_single
)
end
end
else
else
Auxiliary
.
RegisterMergedDelayedEvent_ToSingleCard_AddOperation
(
c
,
g
,
events
,
event_code_single
)
Auxiliary
.
RegisterMergedDelayedEvent_ToSingleCard_AddOperation
(
c
,
g
,
events
,
event_code_single
)
end
end
--listened to again
--listened to again
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
...
@@ -1675,21 +1674,20 @@ end
...
@@ -1675,21 +1674,20 @@ end
function
Auxiliary
.
ThisCardMovedToPublicResetCheck_ToSingleCard
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
Auxiliary
.
ThisCardMovedToPublicResetCheck_ToSingleCard
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetOwner
()
local
c
=
e
:
GetOwner
()
local
g
=
e
:
GetLabelObject
()
local
g
=
e
:
GetLabelObject
()
if
c
:
IsFaceup
()
or
c
:
IsPublic
()
then
if
c
:
IsFaceup
()
or
c
:
IsPublic
()
then
g
:
Clear
()
g
:
Clear
()
end
end
end
end
function
Auxiliary
.
MergedDelayEventCheck1_ToSingleCard
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
Auxiliary
.
MergedDelayEventCheck1_ToSingleCard
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
e
:
GetLabelObject
()
local
g
=
e
:
GetLabelObject
()
local
c
=
e
:
GetOwner
()
local
c
=
e
:
GetOwner
()
g
:
Merge
(
eg
)
g
:
Merge
(
eg
)
if
Duel
.
CheckEvent
(
EVENT_MOVE
)
then
if
Duel
.
CheckEvent
(
EVENT_MOVE
)
then
_
,
meg
=
Duel
.
CheckEvent
(
EVENT_MOVE
,
true
)
local
_
,
meg
=
Duel
.
CheckEvent
(
EVENT_MOVE
,
true
)
local
c
=
e
:
GetOwner
()
if
meg
:
IsContains
(
c
)
and
(
c
:
IsFaceup
()
or
c
:
IsPublic
())
then
if
meg
:
IsContains
(
c
)
and
(
c
:
IsFaceup
()
or
c
:
IsPublic
())
then
g
:
Clear
()
g
:
Clear
()
end
end
end
end
if
Duel
.
GetCurrentChain
()
==
0
and
#
g
>
0
and
not
Duel
.
CheckEvent
(
EVENT_CHAIN_END
)
then
if
Duel
.
GetCurrentChain
()
==
0
and
#
g
>
0
and
not
Duel
.
CheckEvent
(
EVENT_CHAIN_END
)
then
local
_eg
=
g
:
Clone
()
local
_eg
=
g
:
Clone
()
Duel
.
RaiseEvent
(
_eg
,
e
:
GetLabel
(),
re
,
r
,
rp
,
ep
,
ev
)
Duel
.
RaiseEvent
(
_eg
,
e
:
GetLabel
(),
re
,
r
,
rp
,
ep
,
ev
)
...
@@ -1698,13 +1696,13 @@ function Auxiliary.MergedDelayEventCheck1_ToSingleCard(e,tp,eg,ep,ev,re,r,rp)
...
@@ -1698,13 +1696,13 @@ function Auxiliary.MergedDelayEventCheck1_ToSingleCard(e,tp,eg,ep,ev,re,r,rp)
end
end
function
Auxiliary
.
MergedDelayEventCheck2_ToSingleCard
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
Auxiliary
.
MergedDelayEventCheck2_ToSingleCard
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
e
:
GetLabelObject
()
local
g
=
e
:
GetLabelObject
()
if
Duel
.
CheckEvent
(
EVENT_MOVE
)
then
if
Duel
.
CheckEvent
(
EVENT_MOVE
)
then
_
,
meg
=
Duel
.
CheckEvent
(
EVENT_MOVE
,
true
)
local
_
,
meg
=
Duel
.
CheckEvent
(
EVENT_MOVE
,
true
)
local
c
=
e
:
GetOwner
()
local
c
=
e
:
GetOwner
()
if
meg
:
IsContains
(
c
)
and
(
c
:
IsFaceup
()
or
c
:
IsPublic
())
then
if
meg
:
IsContains
(
c
)
and
(
c
:
IsFaceup
()
or
c
:
IsPublic
())
then
g
:
Clear
()
g
:
Clear
()
end
end
end
end
if
#
g
>
0
then
if
#
g
>
0
then
local
_eg
=
g
:
Clone
()
local
_eg
=
g
:
Clone
()
Duel
.
RaiseEvent
(
_eg
,
e
:
GetLabel
(),
re
,
r
,
rp
,
ep
,
ev
)
Duel
.
RaiseEvent
(
_eg
,
e
:
GetLabel
(),
re
,
r
,
rp
,
ep
,
ev
)
...
...
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