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
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
八宫一月
ygopro-scripts
Commits
d2241b7a
Commit
d2241b7a
authored
Oct 14, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
bf7ea1b4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
24 deletions
+29
-24
c44508094.lua
c44508094.lua
+2
-12
c74892653.lua
c74892653.lua
+2
-12
c84012625.lua
c84012625.lua
+25
-0
No files found.
c44508094.lua
View file @
d2241b7a
...
...
@@ -35,19 +35,9 @@ function c44508094.condition(e,tp,eg,ep,ev,re,r,rp)
local
ex
,
tg
,
tc
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_DESTROY
)
return
ex
and
tg
~=
nil
and
tc
+
tg
:
FilterCount
(
Card
.
IsOnField
,
nil
)
-
tg
:
GetCount
()
>
0
end
function
c44508094
.
cfcost
(
c
)
return
c
:
IsCode
(
84012625
)
and
c
:
IsAbleToRemoveAsCost
()
end
function
c44508094
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
b1
=
e
:
GetHandler
():
IsReleasable
()
local
b2
=
Duel
.
IsExistingMatchingCard
(
c44508094
.
cfcost
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
b1
or
b2
end
if
b2
and
(
not
b1
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
84012625
,
0
)))
then
local
tg
=
Duel
.
GetFirstMatchingCard
(
c44508094
.
cfcost
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
Duel
.
Remove
(
tg
,
POS_FACEUP
,
REASON_COST
)
else
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c44508094
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
c74892653.lua
View file @
d2241b7a
...
...
@@ -41,19 +41,9 @@ end
function
c74892653
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
~=
ep
and
Duel
.
GetCurrentChain
()
==
0
end
function
c74892653
.
cfcost
(
c
)
return
c
:
IsCode
(
84012625
)
and
c
:
IsAbleToRemoveAsCost
()
end
function
c74892653
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
b1
=
e
:
GetHandler
():
IsReleasable
()
local
b2
=
Duel
.
IsExistingMatchingCard
(
c74892653
.
cfcost
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
b1
or
b2
end
if
b2
and
(
not
b1
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
84012625
,
0
)))
then
local
tg
=
Duel
.
GetFirstMatchingCard
(
c74892653
.
cfcost
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
Duel
.
Remove
(
tg
,
POS_FACEUP
,
REASON_COST
)
else
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c74892653
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
c84012625.lua
View file @
d2241b7a
...
...
@@ -9,6 +9,15 @@ function c84012625.initial_effect(c)
e1
:
SetTarget
(
c84012625
.
target
)
e1
:
SetOperation
(
c84012625
.
activate
)
c
:
RegisterEffect
(
e1
)
--release replace
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_RELEASE_REPLACE
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetTarget
(
c84012625
.
reptg
)
e2
:
SetValue
(
c84012625
.
repval
)
e2
:
SetOperation
(
c84012625
.
repop
)
c
:
RegisterEffect
(
e2
)
end
function
c84012625
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsAbleToEnterBP
()
or
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
...
...
@@ -44,3 +53,19 @@ function c84012625.tdop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
e
:
GetHandler
():
GetBattleTarget
()
Duel
.
SendtoDeck
(
tc
,
nil
,
2
,
REASON_EFFECT
)
end
function
c84012625
.
repfilter
(
c
,
tp
,
re
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsSetCard
(
0xa3
)
and
c
:
IsType
(
TYPE_SYNCHRO
)
and
c
:
IsReason
(
REASON_COST
)
and
c
==
re
:
GetHandler
()
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
c84012625
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c84012625
.
repfilter
,
1
,
nil
,
tp
,
re
)
and
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
return
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
84012625
,
0
))
end
function
c84012625
.
repval
(
e
,
c
)
return
c84012625
.
repfilter
(
c
,
e
:
GetHandlerPlayer
(),
c
:
GetReasonEffect
())
end
function
c84012625
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
+
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