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
75823d67
Commit
75823d67
authored
Mar 09, 2021
by
Chrono-Genex
Committed by
GitHub
Mar 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Rare Metalmorph (#1586)
parent
820d1245
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
32 deletions
+8
-32
c12503902.lua
c12503902.lua
+8
-32
No files found.
c12503902.lua
View file @
75823d67
...
...
@@ -43,45 +43,21 @@ function c12503902.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c12503902
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c12503902
.
tfilter1
(
c
,
tc
)
return
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsHasCardTarget
(
tc
)
end
function
c12503902
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
c12503902
.
filter
(
tc
)
and
tc
:
IsRelateToEffect
(
e
)
then
c
:
SetCardTarget
(
tc
)
local
g
=
Duel
.
GetMatchingGroup
(
c12503902
.
tfilter1
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
nil
,
tc
)
if
g
:
GetCount
()
>
0
then
local
sg
,
fid
=
g
:
GetMaxGroup
(
Card
.
GetFieldID
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetTargetRange
(
LOCATION_SZONE
,
LOCATION_SZONE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetCondition
(
c12503902
.
discon
)
e1
:
SetTarget
(
c12503902
.
distg
)
e1
:
SetLabel
(
fid
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
,
true
)
else
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e1
:
SetCondition
(
c12503902
.
discon2
)
e1
:
SetOperation
(
c12503902
.
disop2
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
,
true
)
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e1
:
SetCondition
(
c12503902
.
discon2
)
e1
:
SetOperation
(
c12503902
.
disop2
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
,
true
)
end
end
function
c12503902
.
discon
(
e
)
return
e
:
GetHandler
():
GetCardTargetCount
()
>
0
end
function
c12503902
.
distg
(
e
,
c
)
return
c
:
GetFieldID
()
<=
e
:
GetLabel
()
and
c
:
IsHasCardTarget
(
e
:
GetHandler
():
GetFirstCardTarget
())
and
c
:
IsType
(
TYPE_SPELL
)
end
function
c12503902
.
discon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetHandler
():
GetFirstCardTarget
()
if
not
tc
or
not
re
:
IsActiveType
(
TYPE_SPELL
)
or
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
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