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
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
Commits
bec691c6
Commit
bec691c6
authored
May 04, 2017
by
nekrozar
Committed by
DailyShana
May 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new card VJMP (#852)
parent
6730524c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
c22862454.lua
c22862454.lua
+45
-0
No files found.
c22862454.lua
0 → 100644
View file @
bec691c6
--プロキシー・ドラゴン
function
c22862454
.
initial_effect
(
c
)
--link summon
aux
.
AddLinkProcedure
(
c
,
nil
,
2
,
2
)
c
:
EnableReviveLimit
()
--destroy replace
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
c22862454
.
desreptg
)
e1
:
SetValue
(
c22862454
.
desrepval
)
e1
:
SetOperation
(
c22862454
.
desrepop
)
c
:
RegisterEffect
(
e1
)
end
function
c22862454
.
repfilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_ONFIELD
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c22862454
.
desfilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
+
STATUS_BATTLE_DESTROYED
)
end
function
c22862454
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
g
=
c
:
GetLinkedGroup
()
if
chk
==
0
then
return
eg
:
IsExists
(
c22862454
.
repfilter
,
1
,
nil
,
tp
)
and
g
:
IsExists
(
c22862454
.
desfilter
,
1
,
nil
,
tp
)
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
22862454
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
sg
=
g
:
FilterSelect
(
tp
,
c22862454
.
desfilter
,
1
,
1
,
nil
,
tp
)
e
:
SetLabelObject
(
sg
:
GetFirst
())
Duel
.
HintSelection
(
sg
)
sg
:
GetFirst
():
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
true
)
return
true
else
return
false
end
end
function
c22862454
.
desrepval
(
e
,
c
)
return
c22862454
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
end
function
c22862454
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
tc
:
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
false
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
+
REASON_REPLACE
)
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