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
1b84d403
Commit
1b84d403
authored
Dec 03, 2023
by
Uytrewq
Committed by
GitHub
Dec 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix equip trap (#2064)
* fix * fix * fix
parent
c4d93b91
Changes
49
Hide whitespace changes
Inline
Side-by-side
Showing
49 changed files
with
160 additions
and
109 deletions
+160
-109
c13235258.lua
c13235258.lua
+3
-2
c13317419.lua
c13317419.lua
+6
-2
c15684835.lua
c15684835.lua
+1
-1
c18096222.lua
c18096222.lua
+4
-3
c18446701.lua
c18446701.lua
+4
-3
c20007374.lua
c20007374.lua
+2
-1
c20989253.lua
c20989253.lua
+4
-3
c21350571.lua
c21350571.lua
+3
-2
c23122036.lua
c23122036.lua
+5
-2
c2542230.lua
c2542230.lua
+3
-2
c259314.lua
c259314.lua
+3
-2
c26647858.lua
c26647858.lua
+6
-5
c29867611.lua
c29867611.lua
+4
-2
c30155789.lua
c30155789.lua
+2
-3
c35146019.lua
c35146019.lua
+2
-1
c36591747.lua
c36591747.lua
+4
-2
c37390589.lua
c37390589.lua
+6
-8
c38643567.lua
c38643567.lua
+3
-2
c43405287.lua
c43405287.lua
+4
-3
c47819246.lua
c47819246.lua
+5
-4
c49551909.lua
c49551909.lua
+3
-2
c51686645.lua
c51686645.lua
+2
-2
c53656677.lua
c53656677.lua
+1
-1
c54451023.lua
c54451023.lua
+3
-2
c55262310.lua
c55262310.lua
+4
-2
c57135971.lua
c57135971.lua
+3
-2
c57470761.lua
c57470761.lua
+3
-2
c58272005.lua
c58272005.lua
+4
-3
c59490397.lua
c59490397.lua
+3
-2
c6112401.lua
c6112401.lua
+5
-2
c62753201.lua
c62753201.lua
+3
-2
c62868900.lua
c62868900.lua
+2
-1
c63049052.lua
c63049052.lua
+3
-2
c6691855.lua
c6691855.lua
+1
-1
c66984907.lua
c66984907.lua
+4
-2
c68054593.lua
c68054593.lua
+2
-2
c68540058.lua
c68540058.lua
+1
-1
c75361204.lua
c75361204.lua
+6
-3
c75987257.lua
c75987257.lua
+1
-1
c78586116.lua
c78586116.lua
+3
-2
c80143954.lua
c80143954.lua
+3
-2
c86607583.lua
c86607583.lua
+2
-1
c87043568.lua
c87043568.lua
+2
-3
c879958.lua
c879958.lua
+3
-2
c92650018.lua
c92650018.lua
+4
-2
c93473606.lua
c93473606.lua
+4
-2
c93655221.lua
c93655221.lua
+4
-2
c97182396.lua
c97182396.lua
+4
-2
c98239899.lua
c98239899.lua
+3
-3
No files found.
c13235258.lua
View file @
1b84d403
...
...
@@ -79,7 +79,7 @@ function c13235258.filter(c)
end
function
c13235258
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c13235258
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c13235258
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c13235258
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -113,7 +113,8 @@ function c13235258.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c13235258
.
eqlimit
(
e
,
c
)
return
c
:
IsRace
(
RACE_INSECT
)
or
e
:
GetHandler
():
GetEquipTarget
()
==
c
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsRace
(
RACE_INSECT
)
end
function
c13235258
.
atkcon1
(
e
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
...
...
c13317419.lua
View file @
1b84d403
...
...
@@ -57,7 +57,7 @@ function c13317419.filter(c)
end
function
c13317419
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c13317419
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c13317419
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c13317419
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -82,13 +82,17 @@ function c13317419.operation(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
c13317419
.
eqlimit
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e2
)
else
c
:
CancelToGrave
(
false
)
end
end
function
c13317419
.
eqlimit
(
e
,
c
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
c
:
IsAttackAbove
(
800
)
end
function
c13317419
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetEquipTarget
()
end
...
...
c15684835.lua
View file @
1b84d403
...
...
@@ -41,7 +41,7 @@ function c15684835.filter(c,e,tp)
end
function
c15684835
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
eg
:
IsContains
(
chkc
)
and
c15684835
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
eg
:
IsExists
(
c15684835
.
filter
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
eg
:
FilterSelect
(
tp
,
c15684835
.
filter
,
1
,
1
,
nil
,
e
,
tp
)
...
...
c18096222.lua
View file @
1b84d403
...
...
@@ -54,7 +54,7 @@ function c18096222.filter(c)
end
function
c18096222
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c18096222
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c18096222
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c18096222
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -65,7 +65,7 @@ function c18096222.operation(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsLocation
(
LOCATION_SZONE
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsControler
(
tp
)
then
Duel
.
Equip
(
tp
,
c
,
tc
)
--Atkup
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -87,7 +87,8 @@ function c18096222.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c18096222
.
eqlimit
(
e
,
c
)
return
c
:
GetControler
()
==
e
:
GetOwnerPlayer
()
and
c
:
IsType
(
TYPE_DUAL
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsType
(
TYPE_DUAL
)
end
function
c18096222
.
dacon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c18446701.lua
View file @
1b84d403
...
...
@@ -41,7 +41,7 @@ function c18446701.filter(c)
end
function
c18446701
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c18446701
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c18446701
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c18446701
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -52,7 +52,7 @@ function c18446701.operation(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsLocation
(
LOCATION_SZONE
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
GetControler
()
==
c
:
GetControler
(
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsControler
(
tp
)
and
tc
:
IsRace
(
RACE_SPELLCASTER
)
then
Duel
.
Equip
(
tp
,
c
,
tc
)
--draw
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -75,5 +75,6 @@ function c18446701.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c18446701
.
eqlimit
(
e
,
c
)
return
c
:
GetControler
()
==
e
:
GetOwnerPlayer
()
and
c
:
IsRace
(
RACE_SPELLCASTER
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsRace
(
RACE_SPELLCASTER
)
end
c20007374.lua
View file @
1b84d403
...
...
@@ -66,7 +66,8 @@ function c20007374.filter(c,e,tp)
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
nil
,
c
)
>
0
end
function
c20007374
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
MustMaterialCheck
(
nil
,
tp
,
EFFECT_MUST_BE_SMATERIAL
)
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
aux
.
MustMaterialCheck
(
nil
,
tp
,
EFFECT_MUST_BE_SMATERIAL
)
and
Duel
.
IsExistingMatchingCard
(
c20007374
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
...
...
c20989253.lua
View file @
1b84d403
...
...
@@ -68,7 +68,7 @@ function c20989253.filter(c,tp)
end
function
c20989253
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c20989253
.
filter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c20989253
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c20989253
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
...
...
@@ -88,7 +88,6 @@ function c20989253.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
c20989253
.
eqlimit
)
e1
:
SetLabelObject
(
tc
)
c
:
RegisterEffect
(
e1
)
end
elseif
c
:
IsRelateToEffect
(
e
)
and
not
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
then
...
...
@@ -96,7 +95,9 @@ function c20989253.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c20989253
.
eqlimit
(
e
,
c
)
return
e
:
GetLabelObject
()
==
c
local
tp
=
e
:
GetHandlerPlayer
()
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
1
-
tp
)
and
c
:
GetEquipGroup
():
IsExists
(
c20989253
.
cfilter
,
1
,
nil
,
tp
)
end
function
c20989253
.
cval
(
e
,
c
)
return
e
:
GetHandlerPlayer
()
...
...
c21350571.lua
View file @
1b84d403
...
...
@@ -43,7 +43,7 @@ function c21350571.filter(c)
end
function
c21350571
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c21350571
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c21350571
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c21350571
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -89,7 +89,8 @@ function c21350571.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c21350571
.
eqlimit
(
e
,
c
)
return
c
:
IsRace
(
RACE_BEAST
+
RACE_BEASTWARRIOR
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsRace
(
RACE_BEAST
+
RACE_BEASTWARRIOR
)
end
function
c21350571
.
drfilter
(
c
,
rc
)
return
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsReason
(
REASON_BATTLE
)
and
c
:
GetReasonCard
()
==
rc
...
...
c23122036.lua
View file @
1b84d403
...
...
@@ -41,7 +41,7 @@ function c23122036.filter(c)
end
function
c23122036
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c23122036
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c23122036
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c23122036
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -74,7 +74,7 @@ function c23122036.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
(
1
)
e3
:
SetValue
(
c23122036
.
eqlimit
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e3
)
else
...
...
@@ -87,3 +87,6 @@ end
function
c23122036
.
damcon
(
e
)
return
e
:
GetHandler
():
GetEquipTarget
():
GetControler
()
==
e
:
GetHandlerPlayer
()
end
function
c23122036
.
eqlimit
(
e
,
c
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
end
c2542230.lua
View file @
1b84d403
...
...
@@ -63,7 +63,7 @@ function c2542230.filter(c)
end
function
c2542230
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c2542230
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c2542230
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c2542230
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -97,7 +97,8 @@ function c2542230.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c2542230
.
eqlimit
(
e
,
c
)
return
c
:
GetControler
()
==
e
:
GetHandlerPlayer
()
or
e
:
GetHandler
():
GetEquipTarget
()
==
c
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsRace
(
RACE_DRAGON
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
end
function
c2542230
.
discon
(
e
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
...
...
c259314.lua
View file @
1b84d403
...
...
@@ -43,7 +43,7 @@ function c259314.filter(c)
end
function
c259314
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c259314
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c259314
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c259314
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -82,5 +82,6 @@ function c259314.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c259314
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x56
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsSetCard
(
0x56
)
end
c26647858.lua
View file @
1b84d403
...
...
@@ -41,11 +41,11 @@ function c26647858.filter(c)
return
c
:
IsFaceup
()
and
c
:
IsAttackBelow
(
1500
)
and
c
:
IsRace
(
RACE_WARRIOR
)
end
function
c26647858
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
Is
Controler
(
tp
)
and
chkc
:
Is
Location
(
LOCATION_MZONE
)
and
c26647858
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
IsExistingTarget
(
c26647858
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c26647858
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c26647858
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c26647858
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c26647858
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c26647858
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -75,7 +75,8 @@ function c26647858.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c26647858
.
eqlimit
(
e
,
c
)
return
c
:
IsAttackBelow
(
1500
)
and
c
:
IsRace
(
RACE_WARRIOR
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsAttackBelow
(
1500
)
and
c
:
IsRace
(
RACE_WARRIOR
)
end
function
c26647858
.
atval
(
e
,
c
)
return
c
:
IsAttackAbove
(
1900
)
and
not
c
:
IsImmuneToEffect
(
e
)
...
...
c29867611.lua
View file @
1b84d403
...
...
@@ -67,7 +67,7 @@ function c29867611.filter(c,tp)
end
function
c29867611
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c29867611
.
filter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c29867611
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c29867611
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
...
...
@@ -93,7 +93,9 @@ function c29867611.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c29867611
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x15b
)
or
c
:
IsControler
(
1
-
e
:
GetHandlerPlayer
())
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsSetCard
(
0x15b
)
or
c
:
IsControler
(
1
-
e
:
GetHandlerPlayer
())
end
function
c29867611
.
con
(
e
)
return
e
:
GetHandler
():
GetEquipTarget
():
IsControler
(
e
:
GetHandlerPlayer
())
...
...
c30155789.lua
View file @
1b84d403
...
...
@@ -38,7 +38,7 @@ function c30155789.tgop(e,tp,eg,ep,ev,re,r,rp)
end
function
c30155789
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -67,7 +67,6 @@ function c30155789.operation(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetValue
(
c30155789
.
eqlimit
)
e3
:
SetLabelObject
(
tc
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e3
)
else
...
...
@@ -75,7 +74,7 @@ function c30155789.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c30155789
.
eqlimit
(
e
,
c
)
return
c
==
e
:
GetLabelObject
(
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
()
)
end
function
c30155789
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
ep
~=
tp
and
rp
==
tp
...
...
c35146019.lua
View file @
1b84d403
...
...
@@ -66,7 +66,8 @@ function c35146019.spfilter(c,e,tp)
end
function
c35146019
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c35146019
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c35146019
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c35146019
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
...
...
c36591747.lua
View file @
1b84d403
...
...
@@ -66,7 +66,7 @@ function c36591747.filter(c,tp)
end
function
c36591747
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c36591747
.
filter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c36591747
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c36591747
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
...
...
@@ -92,7 +92,9 @@ function c36591747.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c36591747
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x15b
)
or
c
:
IsControler
(
1
-
e
:
GetHandlerPlayer
())
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsSetCard
(
0x15b
)
or
c
:
IsControler
(
1
-
e
:
GetHandlerPlayer
())
end
function
c36591747
.
stcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
...
...
c37390589.lua
View file @
1b84d403
...
...
@@ -8,15 +8,10 @@ function c37390589.initial_effect(c)
e1
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetCondition
(
aux
.
dscon
)
e1
:
SetCost
(
c37390589
.
cost
)
e1
:
SetTarget
(
c37390589
.
target
)
e1
:
SetOperation
(
c37390589
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
c37390589
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
e
:
SetLabel
(
9
)
end
function
c37390589
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
if
e
:
GetLabel
()
==
0
then
...
...
@@ -28,7 +23,7 @@ function c37390589.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
b1
=
Duel
.
CheckEvent
(
EVENT_ATTACK_ANNOUNCE
)
and
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
GetAttacker
():
IsLocation
(
LOCATION_MZONE
)
and
Duel
.
GetAttacker
():
IsAttackPos
()
and
Duel
.
GetAttacker
():
IsCanChangePosition
()
and
Duel
.
GetAttacker
():
IsCanBeEffectTarget
(
e
)
local
b2
=
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
local
b2
=
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
b1
or
b2
end
local
opt
=
0
...
...
@@ -43,7 +38,7 @@ function c37390589.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetTargetCard
(
Duel
.
GetAttacker
())
end
if
opt
==
1
or
opt
==
2
then
if
e
:
GetLabel
()
==
9
then
if
e
:
IsCostChecked
()
then
local
c
=
e
:
GetHandler
()
local
cid
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_CHAIN_ID
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -101,7 +96,7 @@ function c37390589.operation(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
c37390589
.
eqlimit
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e2
)
else
...
...
@@ -109,3 +104,6 @@ function c37390589.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function
c37390589
.
eqlimit
(
e
,
c
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
end
c38643567.lua
View file @
1b84d403
...
...
@@ -43,7 +43,7 @@ function c38643567.filter(c)
end
function
c38643567
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c38643567
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c38643567
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c38643567
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -95,7 +95,8 @@ function c38643567.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c38643567
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x56
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsSetCard
(
0x56
)
end
function
c38643567
.
ngcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
...
...
c43405287.lua
View file @
1b84d403
...
...
@@ -55,7 +55,7 @@ function c43405287.filter(c)
end
function
c43405287
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c43405287
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c43405287
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c43405287
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -66,7 +66,7 @@ function c43405287.operation(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsLocation
(
LOCATION_SZONE
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsControler
(
tp
)
then
Duel
.
Equip
(
tp
,
c
,
tc
)
--Atkup
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -88,7 +88,8 @@ function c43405287.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c43405287
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0xc008
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsSetCard
(
0xc008
)
end
function
c43405287
.
damfilter
(
c
,
rc
)
return
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsReason
(
REASON_BATTLE
)
and
c
:
GetReasonCard
()
==
rc
...
...
c47819246.lua
View file @
1b84d403
...
...
@@ -64,7 +64,7 @@ function c47819246.filter(c)
end
function
c47819246
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c47819246
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c47819246
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c47819246
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -75,7 +75,7 @@ function c47819246.operation(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsLocation
(
LOCATION_SZONE
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
GetControler
()
==
c
:
GetControler
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
Duel
.
Equip
(
tp
,
c
,
tc
)
--Equip limit
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -90,7 +90,8 @@ function c47819246.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c47819246
.
eqlimit
(
e
,
c
)
return
c
:
GetControler
()
==
e
:
GetOwnerPlayer
()
and
c
:
IsSetCard
(
0xdc
)
and
c
:
IsType
(
TYPE_XYZ
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsSetCard
(
0xdc
)
and
c
:
IsType
(
TYPE_XYZ
)
end
function
c47819246
.
atkval
(
e
,
c
)
return
c
:
GetRank
()
*
100
...
...
@@ -106,7 +107,7 @@ function c47819246.mtcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c47819246
.
mttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
if
chk
==
0
then
return
ec
and
not
ec
:
IsHasEffect
(
EFFECT_EXTRA_ATTACK
)
end
if
chk
==
0
then
return
ec
and
ec
:
IsControler
(
tp
)
and
not
ec
:
IsHasEffect
(
EFFECT_EXTRA_ATTACK
)
end
end
function
c47819246
.
mtop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
Duel
.
GetFirstTarget
()
...
...
c49551909.lua
View file @
1b84d403
...
...
@@ -42,7 +42,7 @@ function c49551909.filter(c)
end
function
c49551909
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c49551909
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c49551909
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c49551909
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -86,7 +86,8 @@ function c49551909.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c49551909
.
eqlimit
(
e
,
c
)
return
c
:
GetControler
()
==
e
:
GetOwnerPlayer
()
and
c
:
IsSetCard
(
0x6f
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsSetCard
(
0x6f
)
end
function
c49551909
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
...
...
c51686645.lua
View file @
1b84d403
...
...
@@ -51,7 +51,7 @@ function c51686645.tgop(e,tp,eg,ep,ev,re,r,rp)
end
function
c51686645
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
...
...
@@ -86,7 +86,7 @@ function c51686645.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c51686645
.
eqlimit
(
e
,
c
)
return
c
:
IsControler
(
1
-
e
:
GetHandlerPlayer
())
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
1
-
e
:
GetHandlerPlayer
())
end
function
c51686645
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_LOST_TARGET
)
...
...
c53656677.lua
View file @
1b84d403
...
...
@@ -41,7 +41,7 @@ function c53656677.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
if
chk
==
0
then
return
d
and
d
:
IsControler
(
tp
)
and
d
:
IsFaceup
()
and
d
:
IsCanBeEffectTarget
(
e
)
and
d
:
GetAttack
()
<
a
:
GetAttack
()
end
and
d
:
GetAttack
()
<
a
:
GetAttack
()
and
e
:
IsCostChecked
()
end
Duel
.
SetTargetCard
(
d
)
end
function
c53656677
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c54451023.lua
View file @
1b84d403
...
...
@@ -54,7 +54,7 @@ function c54451023.filter(c)
end
function
c54451023
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c54451023
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c54451023
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c54451023
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -87,7 +87,8 @@ function c54451023.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c54451023
.
eqlimit
(
e
,
c
)
return
c
:
GetControler
()
==
e
:
GetOwnerPlayer
()
and
c
:
IsRace
(
RACE_PLANT
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsRace
(
RACE_PLANT
)
end
function
c54451023
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
e
:
GetHandler
():
GetReason
(),
REASON_EFFECT
+
REASON_DESTROY
)
==
REASON_EFFECT
+
REASON_DESTROY
...
...
c55262310.lua
View file @
1b84d403
...
...
@@ -69,7 +69,7 @@ function c55262310.filter(c,tp)
end
function
c55262310
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c55262310
.
filter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c55262310
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c55262310
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
...
...
@@ -95,7 +95,9 @@ function c55262310.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c55262310
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x15b
)
or
c
:
IsControler
(
1
-
e
:
GetHandlerPlayer
())
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsSetCard
(
0x15b
)
or
c
:
IsControler
(
1
-
e
:
GetHandlerPlayer
())
end
function
c55262310
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
...
...
c57135971.lua
View file @
1b84d403
...
...
@@ -54,7 +54,7 @@ function c57135971.filter(c)
end
function
c57135971
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
c57135971
.
filter
(
chkc
)
and
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c57135971
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c57135971
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -86,7 +86,8 @@ function c57135971.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c57135971
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x3b
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsSetCard
(
0x3b
)
end
function
c57135971
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetEquipTarget
()
and
aux
.
dscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c57470761.lua
View file @
1b84d403
...
...
@@ -43,7 +43,7 @@ function c57470761.filter(c)
end
function
c57470761
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c57470761
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c57470761
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c57470761
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
...
...
@@ -108,7 +108,8 @@ function c57470761.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c57470761
.
eqlimit
(
e
,
c
)
return
c
:
IsRace
(
RACE_DRAGON
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsRace
(
RACE_DRAGON
)
end
function
c57470761
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c58272005.lua
View file @
1b84d403
...
...
@@ -43,7 +43,7 @@ function c58272005.filter(c)
end
function
c58272005
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c58272005
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c58272005
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c58272005
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -54,7 +54,7 @@ function c58272005.operation(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsLocation
(
LOCATION_SZONE
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsControler
(
tp
)
and
tc
:
IsRace
(
RACE_DINOSAUR
)
then
Duel
.
Equip
(
tp
,
c
,
tc
)
--Atkup
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -86,7 +86,8 @@ function c58272005.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c58272005
.
eqlimit
(
e
,
c
)
return
c
:
IsRace
(
RACE_DINOSAUR
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsRace
(
RACE_DINOSAUR
)
end
function
c58272005
.
atcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
...
...
c59490397.lua
View file @
1b84d403
...
...
@@ -53,14 +53,15 @@ function c59490397.filter(c)
end
function
c59490397
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c59490397
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c59490397
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c59490397
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c59490397
.
eqlimit
(
e
,
c
)
return
c
:
GetControler
()
==
e
:
GetHandlerPlayer
()
and
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsSetCard
(
0x10b
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsSetCard
(
0x10b
)
end
function
c59490397
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c6112401.lua
View file @
1b84d403
...
...
@@ -47,7 +47,7 @@ function c6112401.tgop(e,tp,eg,ep,ev,re,r,rp)
end
function
c6112401
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
e
:
GetLabelObject
():
IsCanBeEffectTarget
(
e
)
end
Duel
.
SetTargetCard
(
e
:
GetLabelObject
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
...
...
@@ -92,7 +92,10 @@ function c6112401.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c6112401
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x100d
)
if
e
:
GetHandler
():
GetEquipTarget
()
==
c
then
return
true
end
local
g
=
Duel
.
GetFieldGroup
(
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
)
local
tc
=
g
:
GetFirst
()
return
g
:
GetCount
()
==
1
and
tc
==
c
and
c
:
IsSetCard
(
0x100d
)
end
function
c6112401
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsContains
(
e
:
GetHandler
():
GetEquipTarget
())
...
...
c62753201.lua
View file @
1b84d403
...
...
@@ -46,14 +46,15 @@ function c62753201.filter(c)
end
function
c62753201
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c62753201
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c62753201
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c62753201
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c62753201
.
eqlimit
(
e
,
c
)
return
c
:
GetControler
()
==
e
:
GetHandlerPlayer
()
and
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsSetCard
(
0x10f
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsType
(
TYPE_LINK
)
and
c
:
IsSetCard
(
0x10f
)
end
function
c62753201
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c62868900.lua
View file @
1b84d403
...
...
@@ -43,7 +43,8 @@ function c62868900.tgop(e,tp,eg,ep,ev,re,r,rp)
end
function
c62868900
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
==
eg
:
GetFirst
()
end
if
chk
==
0
then
return
eg
:
GetFirst
():
IsCanBeEffectTarget
(
e
)
end
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
eg
:
GetFirst
():
IsCanBeEffectTarget
(
e
)
end
Duel
.
SetTargetCard
(
eg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
...
...
c63049052.lua
View file @
1b84d403
...
...
@@ -43,7 +43,7 @@ function c63049052.filter(c)
end
function
c63049052
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c63049052
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c63049052
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c63049052
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -90,7 +90,8 @@ function c63049052.atkval(e,c)
return
c
:
GetOverlayCount
()
*
300
end
function
c63049052
.
eqlimit
(
e
,
c
)
return
c
:
GetControler
()
==
e
:
GetOwnerPlayer
()
and
c
:
IsType
(
TYPE_XYZ
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsRank
(
4
)
end
function
c63049052
.
mfilter
(
c
)
return
c
:
IsSetCard
(
0x88
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanOverlay
()
...
...
c6691855.lua
View file @
1b84d403
...
...
@@ -43,7 +43,7 @@ function c6691855.filter(c)
end
function
c6691855
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c6691855
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c6691855
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c6691855
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
...
...
c66984907.lua
View file @
1b84d403
...
...
@@ -69,7 +69,7 @@ function c66984907.filter(c,tp)
end
function
c66984907
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c66984907
.
filter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c66984907
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c66984907
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
...
...
@@ -95,7 +95,9 @@ function c66984907.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c66984907
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x15b
)
or
c
:
IsControler
(
1
-
e
:
GetHandlerPlayer
())
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsSetCard
(
0x15b
)
or
c
:
IsControler
(
1
-
e
:
GetHandlerPlayer
())
end
function
c66984907
.
togcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
...
...
c68054593.lua
View file @
1b84d403
...
...
@@ -43,7 +43,7 @@ function c68054593.filter(c)
end
function
c68054593
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c68054593
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c68054593
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c68054593
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -77,7 +77,7 @@ function c68054593.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c68054593
.
eqlimit
(
e
,
c
)
return
c
:
GetControler
()
==
e
:
GetOwnerPlayer
(
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
()
)
end
function
c68054593
.
atkfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetAttack
()
>
c
:
GetBaseAttack
()
...
...
c68540058.lua
View file @
1b84d403
...
...
@@ -43,7 +43,7 @@ function c68540058.filter(c)
end
function
c68540058
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c68540058
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c68540058
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c68540058
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
...
...
c75361204.lua
View file @
1b84d403
...
...
@@ -40,7 +40,7 @@ function c75361204.tgop(e,tp,eg,ep,ev,re,r,rp)
end
function
c75361204
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -51,7 +51,7 @@ function c75361204.operation(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsLocation
(
LOCATION_SZONE
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsControler
(
tp
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
Duel
.
Equip
(
tp
,
c
,
tc
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_EQUIP
)
...
...
@@ -63,7 +63,7 @@ function c75361204.operation(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
c75361204
.
eqlimit
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -82,6 +82,9 @@ function c75361204.operation(e,tp,eg,ep,ev,re,r,rp)
c
:
CancelToGrave
(
false
)
end
end
function
c75361204
.
eqlimit
(
e
,
c
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
end
function
c75361204
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetEquipTarget
()
and
Duel
.
GetTurnPlayer
()
==
tp
and
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
...
...
c75987257.lua
View file @
1b84d403
...
...
@@ -55,7 +55,7 @@ function c75987257.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
tc
=
Duel
.
GetAttacker
()
if
chkc
then
return
chkc
==
tc
end
if
chk
==
0
then
return
tc
:
IsLocation
(
LOCATION_MZONE
)
and
tc
:
IsAttackPos
()
and
tc
:
IsCanChangePosition
()
and
tc
:
IsCanBeEffectTarget
(
e
)
end
and
tc
:
IsCanChangePosition
()
and
tc
:
IsCanBeEffectTarget
(
e
)
and
e
:
IsCostChecked
()
end
Duel
.
SetTargetCard
(
tc
)
end
function
c75987257
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c78586116.lua
View file @
1b84d403
...
...
@@ -51,7 +51,7 @@ function c78586116.filter(c)
end
function
c78586116
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c78586116
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c78586116
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c78586116
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -84,7 +84,8 @@ function c78586116.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c78586116
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x26
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsSetCard
(
0x26
)
end
function
c78586116
.
attg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
eq
=
e
:
GetHandler
():
GetEquipTarget
()
...
...
c80143954.lua
View file @
1b84d403
...
...
@@ -58,7 +58,7 @@ function c80143954.filter(c)
end
function
c80143954
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c80143954
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c80143954
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c80143954
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -89,7 +89,8 @@ function c80143954.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c80143954
.
eqlimit
(
e
,
c
)
return
c
:
GetControler
()
==
e
:
GetHandlerPlayer
()
or
e
:
GetHandler
():
GetEquipTarget
()
==
c
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsSetCard
(
0x103
)
end
function
c80143954
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
...
...
c86607583.lua
View file @
1b84d403
...
...
@@ -59,7 +59,8 @@ function c86607583.cfilter(c)
return
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsType
(
TYPE_LINK
)
end
function
c86607583
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsCanAddCounter
(
tp
,
0x47
,
1
,
e
:
GetHandler
())
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
IsCanAddCounter
(
tp
,
0x47
,
1
,
e
:
GetHandler
())
and
Duel
.
IsExistingMatchingCard
(
c86607583
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c86607583
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
local
ct
=
Duel
.
GetMatchingGroupCount
(
c86607583
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
...
...
c87043568.lua
View file @
1b84d403
...
...
@@ -38,7 +38,7 @@ function c87043568.tgop(e,tp,eg,ep,ev,re,r,rp)
end
function
c87043568
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -73,14 +73,13 @@ function c87043568.operation(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetValue
(
c87043568
.
eqlimit
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetLabelObject
(
tc
)
c
:
RegisterEffect
(
e2
)
else
c
:
CancelToGrave
(
false
)
end
end
function
c87043568
.
eqlimit
(
e
,
c
)
return
c
==
e
:
GetLabelObject
(
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
()
)
end
function
c87043568
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
...
...
c879958.lua
View file @
1b84d403
...
...
@@ -53,14 +53,15 @@ function c879958.filter(c)
end
function
c879958
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c879958
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c879958
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c879958
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c879958
.
eqlimit
(
e
,
c
)
return
c
:
GetControler
()
==
e
:
GetHandlerPlayer
()
and
c
:
IsType
(
TYPE_LINK
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsType
(
TYPE_LINK
)
end
function
c879958
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c92650018.lua
View file @
1b84d403
...
...
@@ -69,7 +69,7 @@ function c92650018.filter(c,tp)
end
function
c92650018
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c92650018
.
filter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c92650018
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c92650018
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
...
...
@@ -95,7 +95,9 @@ function c92650018.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c92650018
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x15b
)
or
c
:
IsControler
(
1
-
e
:
GetHandlerPlayer
())
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsSetCard
(
0x15b
)
or
c
:
IsControler
(
1
-
e
:
GetHandlerPlayer
())
end
function
c92650018
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
...
...
c93473606.lua
View file @
1b84d403
...
...
@@ -69,7 +69,7 @@ function c93473606.filter(c,tp)
end
function
c93473606
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c93473606
.
filter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c93473606
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c93473606
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
...
...
@@ -95,7 +95,9 @@ function c93473606.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c93473606
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x15b
)
or
c
:
IsControler
(
1
-
e
:
GetHandlerPlayer
())
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsSetCard
(
0x15b
)
or
c
:
IsControler
(
1
-
e
:
GetHandlerPlayer
())
end
function
c93473606
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
...
...
c93655221.lua
View file @
1b84d403
...
...
@@ -53,7 +53,8 @@ function c93655221.disfilter(c)
end
function
c93655221
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c93655221
.
eqfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
e
:
IsCostChecked
()
and
Duel
.
IsExistingTarget
(
c93655221
.
eqfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
c93655221
.
disfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SELF
)
Duel
.
SelectTarget
(
tp
,
c93655221
.
eqfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -106,5 +107,6 @@ function c93655221.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c93655221
.
eqlimit
(
e
,
c
)
return
c
:
GetControler
()
==
e
:
GetHandlerPlayer
()
and
c
:
IsType
(
TYPE_LINK
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsType
(
TYPE_LINK
)
end
c97182396.lua
View file @
1b84d403
...
...
@@ -65,7 +65,7 @@ function c97182396.filter(c,tp)
end
function
c97182396
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c97182396
.
filter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c97182396
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c97182396
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
...
...
@@ -91,7 +91,9 @@ function c97182396.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c97182396
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x15b
)
or
c
:
IsControler
(
1
-
e
:
GetHandlerPlayer
())
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
())
and
c
:
IsSetCard
(
0x15b
)
or
c
:
IsControler
(
1
-
e
:
GetHandlerPlayer
())
end
function
c97182396
.
nacon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
at
=
Duel
.
GetAttacker
()
...
...
c98239899.lua
View file @
1b84d403
...
...
@@ -54,7 +54,7 @@ function c98239899.filter(c)
end
function
c98239899
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c98239899
.
filter
(
chkc
)
end
if
chk
==
0
then
return
e
:
Is
HasType
(
EFFECT_TYPE_ACTIVATE
)
if
chk
==
0
then
return
e
:
Is
CostChecked
(
)
and
Duel
.
IsExistingTarget
(
c98239899
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
SelectTarget
(
tp
,
c98239899
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
...
...
@@ -65,7 +65,7 @@ function c98239899.operation(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsLocation
(
LOCATION_SZONE
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsControler
(
tp
)
then
Duel
.
Equip
(
tp
,
c
,
tc
)
--Atkup
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -87,7 +87,7 @@ function c98239899.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c98239899
.
eqlimit
(
e
,
c
)
return
c
:
GetControler
()
==
e
:
GetOwnerPlayer
(
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
c
or
c
:
IsControler
(
e
:
GetHandlerPlayer
()
)
end
function
c98239899
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
0x41
)
==
0x41
and
e
:
GetHandler
():
GetEquipTarget
()
~=
nil
...
...
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