Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
no81cards
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
Huangnan
no81cards
Commits
9da0f22a
Commit
9da0f22a
authored
Jul 02, 2023
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c11451552.lua
parent
8c0ad301
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
expansions/script/c11451552.lua
expansions/script/c11451552.lua
+15
-2
No files found.
expansions/script/c11451552.lua
View file @
9da0f22a
...
...
@@ -33,7 +33,7 @@ function cm.eqlimit(e,c)
return
e
:
GetOwner
()
==
c
end
function
cm
.
equipfd
(
c
,
tp
,
tc
)
if
tc
:
IsPosition
(
POS_FACEUP
)
then
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEDOWN
,
false
)
return
true
end
if
tc
:
IsPosition
(
POS_FACEUP
)
then
return
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEDOWN
,
false
)
end
if
not
Duel
.
Equip
(
tp
,
tc
,
c
,
false
)
then
return
false
end
--Add Equip limit
tc
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
0
)
...
...
@@ -46,6 +46,19 @@ function cm.equipfd(c,tp,tc)
tc
:
RegisterEffect
(
e1
)
return
true
end
function
cm
.
equipfd2
(
c
,
tp
,
tc
)
if
tc
:
IsPosition
(
POS_FACEUP
)
then
return
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEDOWN
,
false
)
end
if
not
Duel
.
Equip
(
tp
,
tc
,
c
,
false
)
then
return
false
end
--Add Equip limit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_OWNER_RELATE
)
e1
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
cm
.
eqlimit
)
tc
:
RegisterEffect
(
e1
)
return
true
end
function
cm
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
phase
=
Duel
.
GetCurrentPhase
()
local
c
=
e
:
GetHandler
()
...
...
@@ -82,7 +95,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
tc
:
IsForbidden
()
then
Duel
.
SendtoGrave
(
tc
,
REASON_RULE
)
elseif
cm
.
equipfd
(
c
,
tp
,
tc
)
then
elseif
cm
.
equipfd
2
(
c
,
tp
,
tc
)
then
Duel
.
RaiseEvent
(
tc
,
EVENT_SSET
,
e
,
REASON_EFFECT
,
tp
,
tp
,
0
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
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