Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
nanahira
ygopro
Commits
ead9e381
Commit
ead9e381
authored
Sep 21, 2015
by
独孤朲
Committed by
salix5
Sep 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge pull request #1562 from nekrozar/patch-3
new card VJMP
parent
7d292293
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
127 additions
and
0 deletions
+127
-0
script/c54320860.lua
script/c54320860.lua
+41
-0
script/c91718579.lua
script/c91718579.lua
+86
-0
No files found.
script/c54320860.lua
0 → 100644
View file @
ead9e381
--インフェルニティ・ビショップ
function
c54320860
.
initial_effect
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCountLimit
(
1
,
54320860
)
e1
:
SetCondition
(
c54320860
.
spcon
)
c
:
RegisterEffect
(
e1
)
--destroy replace
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetTarget
(
c54320860
.
reptg
)
e2
:
SetValue
(
c54320860
.
repval
)
e2
:
SetOperation
(
c54320860
.
repop
)
c
:
RegisterEffect
(
e2
)
end
function
c54320860
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
LOCATION_HAND
,
0
)
==
1
and
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
end
function
c54320860
.
filter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsSetCard
(
0xb
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c54320860
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
==
0
and
eg
:
IsExists
(
c54320860
.
filter
,
1
,
nil
,
tp
)
and
e
:
GetHandler
():
IsAbleToRemove
()
end
return
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
54320860
,
0
))
end
function
c54320860
.
repval
(
e
,
c
)
return
c54320860
.
filter
(
c
,
e
:
GetHandlerPlayer
())
end
function
c54320860
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
end
script/c91718579.lua
0 → 100644
View file @
ead9e381
--ゴゴゴアリステラ&デクシア
function
c91718579
.
initial_effect
(
c
)
--untargetable
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetCondition
(
c91718579
.
tgcon
)
e1
:
SetValue
(
c91718579
.
atlimit
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetTargetRange
(
0
,
0xff
)
e2
:
SetValue
(
c91718579
.
tglimit
)
c
:
RegisterEffect
(
e2
)
--effect gain
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_BE_MATERIAL
)
e3
:
SetCondition
(
c91718579
.
effcon
)
e3
:
SetOperation
(
c91718579
.
effop
)
c
:
RegisterEffect
(
e3
)
end
function
c91718579
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x59
)
end
function
c91718579
.
tgcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c91718579
.
cfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
())
end
function
c91718579
.
atlimit
(
e
,
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x59
)
end
function
c91718579
.
tglimit
(
e
,
re
,
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x59
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c91718579
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
mg
=
e
:
GetHandler
():
GetReasonCard
():
GetMaterial
()
return
r
==
REASON_XYZ
and
mg
:
IsExists
(
Card
.
IsSetCard
,
mg
:
GetCount
(),
nil
,
0x59
)
end
function
c91718579
.
effop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
91718579
)
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
rc
)
e1
:
SetDescription
(
aux
.
Stringid
(
91718579
,
0
))
e1
:
SetCategory
(
CATEGORY_POSITION
+
CATEGORY_DEFCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCondition
(
c91718579
.
poscon
)
e1
:
SetTarget
(
c91718579
.
postg
)
e1
:
SetOperation
(
c91718579
.
posop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
rc
:
RegisterEffect
(
e1
,
true
)
if
not
rc
:
IsType
(
TYPE_EFFECT
)
then
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e2
:
SetValue
(
TYPE_MONSTER
+
TYPE_EFFECT
+
TYPE_XYZ
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
rc
:
RegisterEffect
(
e2
)
end
end
function
c91718579
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_XYZ
end
function
c91718579
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsPosition
(
POS_FACEUP_ATTACK
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsPosition
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
POS_FACEUP_ATTACK
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsPosition
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
POS_FACEUP_ATTACK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
end
function
c91718579
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
or
tc
:
IsDefencePos
()
or
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_DEFENCE
)
==
0
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_DEFENCE_FINAL
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetValue
(
0
)
tc
:
RegisterEffect
(
e1
)
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