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
bb86089c
Commit
bb86089c
authored
Jul 20, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
922ef676
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
6 deletions
+26
-6
c20654247.lua
c20654247.lua
+15
-2
c23299957.lua
c23299957.lua
+7
-1
c41685633.lua
c41685633.lua
+2
-1
c79205581.lua
c79205581.lua
+2
-2
No files found.
c20654247.lua
View file @
bb86089c
...
...
@@ -34,11 +34,24 @@ function c20654247.initial_effect(c)
e4
:
SetTarget
(
c20654247
.
postg
)
e4
:
SetOperation
(
c20654247
.
posop
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e5
:
SetValue
(
c20654247
.
valcheck
)
e5
:
SetLabelObject
(
e4
)
c
:
RegisterEffect
(
e5
)
end
function
c20654247
.
valcheck
(
e
,
c
)
local
mg
=
c
:
GetMaterial
()
if
mg
:
IsExists
(
Card
.
IsCode
,
1
,
nil
,
89631139
)
then
e
:
GetLabelObject
():
SetLabel
(
1
)
else
e
:
GetLabelObject
():
SetLabel
(
0
)
end
end
function
c20654247
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
mg
=
c
:
GetMaterial
()
return
c
:
GetSummonType
()
==
SUMMON_TYPE_RITUAL
and
mg
:
IsExists
(
Card
.
IsCode
,
1
,
nil
,
89631139
)
return
c
:
GetSummonType
()
==
SUMMON_TYPE_RITUAL
and
e
:
GetLabel
()
==
1
end
function
c20654247
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsCanChangePosition
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
...
...
c23299957.lua
View file @
bb86089c
...
...
@@ -78,9 +78,15 @@ function c23299957.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
,
true
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_
SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_
FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_DISEFFECT
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetValue
(
c23299957
.
efilter
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e3
,
true
)
end
end
function
c23299957
.
efilter
(
e
,
ct
)
local
te
=
Duel
.
GetChainInfo
(
ct
,
CHAININFO_TRIGGERING_EFFECT
)
return
te
:
GetHandler
()
==
e
:
GetHandler
()
end
c41685633.lua
View file @
bb86089c
...
...
@@ -44,7 +44,8 @@ function c41685633.sprfilter1(c)
return
c
:
IsRace
(
RACE_THUNDER
)
and
c
:
IsAbleToRemoveAsCost
()
end
function
c41685633
.
sprfilter2
(
c
,
tp
,
sc
)
return
c
:
IsRace
(
RACE_THUNDER
)
and
c
:
IsType
(
TYPE_FUSION
)
and
not
c
:
IsCode
(
41685633
)
and
c
:
IsAbleToRemoveAsCost
()
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
sc
)
>
0
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_THUNDER
)
and
c
:
IsType
(
TYPE_FUSION
)
and
not
c
:
IsCode
(
41685633
)
and
c
:
IsAbleToRemoveAsCost
()
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
sc
)
>
0
end
function
c41685633
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
c79205581.lua
View file @
bb86089c
...
...
@@ -21,7 +21,7 @@ end
function
c79205581
.
cost1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<
=
PHASE_BATTLE
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
79205581
,
1
))
then
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<
PHASE_BATTLE
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
79205581
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
...
...
@@ -35,7 +35,7 @@ function c79205581.operation1(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c79205581
.
condition2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<
=
PHASE_BATTLE
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<
PHASE_BATTLE
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
end
function
c79205581
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
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