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
3
Merge Requests
3
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
c72a6b76
Commit
c72a6b76
authored
Sep 28, 2022
by
mallu11
Committed by
GitHub
Sep 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix インスペクト・ボーダー (#1464)
parent
328e0c90
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
17 deletions
+5
-17
c15397015.lua
c15397015.lua
+5
-17
No files found.
c15397015.lua
View file @
c72a6b76
...
...
@@ -27,15 +27,9 @@ function c15397015.initial_effect(c)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
1
,
0
)
e4
:
SetCondition
(
c15397015
.
econ
)
e4
:
SetTargetRange
(
1
,
1
)
e4
:
SetValue
(
c15397015
.
elimit
)
e4
:
SetLabel
(
0
)
c
:
RegisterEffect
(
e4
)
local
e6
=
e4
:
Clone
()
e6
:
SetTargetRange
(
0
,
1
)
e6
:
SetLabel
(
1
)
c
:
RegisterEffect
(
e6
)
end
function
c15397015
.
sumcon
(
e
)
return
Duel
.
GetFieldGroupCount
(
e
:
GetHandler
():
GetControler
(),
LOCATION_MZONE
,
0
)
>
0
...
...
@@ -45,24 +39,18 @@ function c15397015.sumlimit(e,se,sp,st,pos,tp)
end
function
c15397015
.
counterop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
:
IsActiveType
(
TYPE_MONSTER
)
then
return
end
if
ep
==
tp
then
e
:
GetHandler
():
RegisterFlagEffect
(
15397015
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
else
e
:
GetHandler
():
RegisterFlagEffect
(
15397016
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
e
:
GetHandler
():
RegisterFlagEffect
(
15397015
+
ep
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c15397015
.
cfilter
(
c
,
type
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
type
)
end
function
c15397015
.
econ
(
e
)
function
c15397015
.
elimit
(
e
,
re
,
tp
)
if
not
re
:
IsActiveType
(
TYPE_MONSTER
)
then
return
false
end
local
ct
=
0
for
i
,
type
in
ipairs
({
TYPE_FUSION
,
TYPE_RITUAL
,
TYPE_SYNCHRO
,
TYPE_XYZ
,
TYPE_PENDULUM
,
TYPE_LINK
})
do
if
Duel
.
IsExistingMatchingCard
(
c15397015
.
cfilter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
type
)
then
ct
=
ct
+
1
end
end
return
e
:
GetHandler
():
GetFlagEffect
(
15397015
+
e
:
GetLabel
())
>=
ct
end
function
c15397015
.
elimit
(
e
,
re
,
tp
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
return
e
:
GetHandler
():
GetFlagEffect
(
15397015
+
tp
)
>=
ct
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