Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
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
Reinen
ygopro-scripts
Commits
1deb885b
Commit
1deb885b
authored
Feb 03, 2021
by
mallu11
Committed by
GitHub
Feb 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 驚楽園の大使 <Bufo> and 驚楽園の案内人 <Comica> (#1541)
* fix 驚楽園の大使 <Bufo> * fix 驚楽園の案内人 <Comica>
parent
9f560b82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
46 deletions
+45
-46
c30829071.lua
c30829071.lua
+23
-25
c67314110.lua
c67314110.lua
+22
-21
No files found.
c30829071.lua
View file @
1deb885b
--驚楽園の大使 <
Bufo
>
--驚楽園の大使 <
Bufo
>
function
c30829071
.
initial_effect
(
c
)
--equip
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -43,7 +43,7 @@ function c30829071.eqop1(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tc
=
g
:
GetFirst
()
if
tc
==
ec
then
tc
=
g
:
GetNext
()
end
if
ec
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
ec
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsControler
(
1
-
tp
)
then
Duel
.
Equip
(
tp
,
ec
,
tc
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -60,37 +60,35 @@ function c30829071.eqlimit(e,c)
end
function
c30829071
.
eqfilter1
(
c
,
tp
)
return
c
:
IsSetCard
(
0x15c
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsFaceup
()
and
c
:
GetEquipTarget
()
and
Duel
.
IsExisting
Target
(
c30829071
.
eqfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
c
:
GetEquipTarget
(),
tp
)
and
Duel
.
IsExisting
MatchingCard
(
c30829071
.
eqfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
c
:
GetEquipTarget
(),
tp
)
end
function
c30829071
.
eqfilter2
(
c
,
tp
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x15b
)
or
not
c
:
IsControler
(
tp
))
end
function
c30829071
.
eqtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_SZONE
)
and
chkc
:
IsControler
(
tp
)
and
c30829071
.
eqfilter1
(
chkc
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c30829071
.
eqfilter1
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c30829071
.
eqfilter1
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
,
tp
)
local
tc
=
g1
:
GetFirst
()
e
:
SetLabelObject
(
tc
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c30829071
.
eqfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
tc
:
GetEquipTarget
(),
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c30829071
.
eqfilter1
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
g
,
1
,
0
,
0
)
end
function
c30829071
.
eqop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetLabelObject
()
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tc
=
g
:
GetFirst
()
if
tc
==
ec
then
tc
=
g
:
GetNext
()
end
if
ec
:
IsFaceup
()
and
ec
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Equip
(
tp
,
ec
,
tc
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
+
EFFECT_FLAG_OWNER_RELATE
)
e1
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
c30829071
.
eqlimit2
)
ec
:
RegisterEffect
(
e1
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c30829071
.
eqfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
tc
:
GetEquipTarget
(),
tp
)
local
ec
=
g
:
GetFirst
()
if
ec
then
Duel
.
HintSelection
(
g
)
Duel
.
Equip
(
tp
,
tc
,
ec
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
c30829071
.
eqlimit
)
e1
:
SetLabelObject
(
ec
)
tc
:
RegisterEffect
(
e1
)
end
end
end
function
c30829071
.
eqlimit2
(
e
,
c
)
return
c
:
IsSetCard
(
0x15b
)
or
c
:
IsControler
(
1
-
e
:
GetHandlerPlayer
())
end
c67314110.lua
View file @
1deb885b
...
...
@@ -35,37 +35,38 @@ function c67314110.setop(e,tp,eg,ep,ev,re,r,rp)
end
function
c67314110
.
eqfilter1
(
c
,
tp
)
return
c
:
IsSetCard
(
0x15c
)
and
c
:
IsType
(
TYPE_TRAP
)
and
c
:
IsFaceup
()
and
c
:
GetEquipTarget
()
and
Duel
.
IsExisting
Target
(
c67314110
.
eqfilter2
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
c
:
GetEquipTarget
(),
tp
)
and
Duel
.
IsExisting
MatchingCard
(
c67314110
.
eqfilter2
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
c
:
GetEquipTarget
(),
tp
)
end
function
c67314110
.
eqfilter2
(
c
,
tp
)
return
c
:
IsFaceup
()
and
(
c
:
IsSetCard
(
0x15b
)
or
not
c
:
IsControler
(
tp
))
end
function
c67314110
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_SZONE
)
and
chkc
:
IsControler
(
tp
)
and
c67314110
.
eqfilter1
(
chkc
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c67314110
.
eqfilter1
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c67314110
.
eqfilter1
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
,
tp
)
local
tc
=
g1
:
GetFirst
()
e
:
SetLabelObject
(
tc
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c67314110
.
eqfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
tc
:
GetEquipTarget
(),
tp
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c67314110
.
eqfilter1
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
g
,
1
,
0
,
0
)
end
function
c67314110
.
eqop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetLabelObject
()
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tc
=
g
:
GetFirst
()
if
tc
==
ec
then
tc
=
g
:
GetNext
()
end
if
ec
:
IsFaceup
()
and
ec
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Equip
(
tp
,
ec
,
tc
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
+
EFFECT_FLAG_OWNER_RELATE
)
e1
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
c67314110
.
eqlimit
)
ec
:
RegisterEffect
(
e1
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c67314110
.
eqfilter2
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
tc
:
GetEquipTarget
(),
tp
)
local
ec
=
g
:
GetFirst
()
if
ec
then
Duel
.
HintSelection
(
g
)
Duel
.
Equip
(
tp
,
tc
,
ec
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
c67314110
.
eqlimit
)
e1
:
SetLabelObject
(
ec
)
tc
:
RegisterEffect
(
e1
)
end
end
end
function
c67314110
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x15b
)
or
c
:
IsControler
(
1
-
e
:
GetHandlerPlayer
()
)
return
c
==
e
:
GetLabelObject
(
)
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment