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
e305cf83
Commit
e305cf83
authored
Nov 25, 2019
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix field check
parent
5bf4218d
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
16 additions
and
19 deletions
+16
-19
c1872843.lua
c1872843.lua
+1
-1
c34031284.lua
c34031284.lua
+1
-1
c38267552.lua
c38267552.lua
+1
-1
c41916534.lua
c41916534.lua
+2
-2
c42175079.lua
c42175079.lua
+1
-4
c45072394.lua
c45072394.lua
+2
-2
c46294982.lua
c46294982.lua
+2
-2
c49389190.lua
c49389190.lua
+1
-1
c6133894.lua
c6133894.lua
+1
-1
c73405179.lua
c73405179.lua
+1
-1
c75375465.lua
c75375465.lua
+1
-1
c75888208.lua
c75888208.lua
+1
-1
c78527720.lua
c78527720.lua
+1
-1
No files found.
c1872843.lua
View file @
e305cf83
...
...
@@ -45,7 +45,7 @@ end
function
c1872843
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
return
(
ph
==
PHASE_MAIN1
or
(
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
)
or
ph
==
PHASE_MAIN2
)
and
Duel
.
IsEnvironment
(
1050355
)
and
Duel
.
IsEnvironment
(
1050355
,
PLAYER_ALL
,
LOCATION_FZONE
)
end
function
c1872843
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
...
...
c34031284.lua
View file @
e305cf83
...
...
@@ -39,7 +39,7 @@ function c34031284.lcheck(g,lc)
return
g
:
IsExists
(
Card
.
IsLinkSetCard
,
1
,
nil
,
0xf
)
end
function
c34031284
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsEnvironment
(
90011152
)
return
Duel
.
IsEnvironment
(
90011152
,
PLAYER_ALL
,
LOCATION_FZONE
)
end
function
c34031284
.
refcon
(
e
)
return
Duel
.
GetAttackTarget
()
==
e
:
GetHandler
()
...
...
c38267552.lua
View file @
e305cf83
...
...
@@ -46,7 +46,7 @@ end
function
c38267552
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
return
(
ph
==
PHASE_MAIN1
or
(
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
)
or
ph
==
PHASE_MAIN2
)
and
Duel
.
IsEnvironment
(
74665651
)
and
Duel
.
IsEnvironment
(
74665651
,
PLAYER_ALL
,
LOCATION_FZONE
)
end
function
c38267552
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
...
...
c41916534.lua
View file @
e305cf83
...
...
@@ -44,7 +44,7 @@ function c41916534.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
if
not
Duel
.
IsEnvironment
(
72283691
)
then
if
not
Duel
.
IsEnvironment
(
72283691
,
PLAYER_ALL
,
LOCATION_FZONE
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
...
@@ -59,7 +59,7 @@ function c41916534.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return
c
:
IsLocation
(
LOCATION_EXTRA
)
end
function
c41916534
.
atkcon
(
e
)
return
Duel
.
IsEnvironment
(
72283691
)
return
Duel
.
IsEnvironment
(
72283691
,
PLAYER_ALL
,
LOCATION_FZONE
)
end
function
c41916534
.
atkfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
73405179
)
...
...
c42175079.lua
View file @
e305cf83
...
...
@@ -11,12 +11,9 @@ function c42175079.initial_effect(c)
e1
:
SetOperation
(
c42175079
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c42175079
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
10080320
)
end
function
c42175079
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_END
and
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
IsE
xistingMatchingCard
(
c42175079
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
Duel
.
IsE
nvironment
(
10080320
,
tp
)
end
function
c42175079
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
())
end
...
...
c45072394.lua
View file @
e305cf83
...
...
@@ -24,14 +24,14 @@ function c45072394.initial_effect(c)
end
function
c45072394
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
loc
=
0
if
Duel
.
IsEnvironment
(
72283691
)
then
if
Duel
.
IsEnvironment
(
72283691
,
PLAYER_ALL
,
LOCATION_FZONE
)
then
loc
=
LOCATION_MZONE
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGrave
,
tp
,
LOCATION_MZONE
,
loc
,
1
,
nil
)
end
end
function
c45072394
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
loc
=
0
if
Duel
.
IsEnvironment
(
72283691
)
then
if
Duel
.
IsEnvironment
(
72283691
,
PLAYER_ALL
,
LOCATION_FZONE
)
then
loc
=
LOCATION_MZONE
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
...
...
c46294982.lua
View file @
e305cf83
...
...
@@ -35,11 +35,11 @@ function c46294982.initial_effect(c)
end
function
c46294982
.
ntcon
(
e
,
c
,
minc
)
if
c
==
nil
then
return
true
end
return
minc
==
0
and
c
:
IsLevelAbove
(
5
)
and
Duel
.
IsEnvironment
(
72283691
)
return
minc
==
0
and
c
:
IsLevelAbove
(
5
)
and
Duel
.
IsEnvironment
(
72283691
,
PLAYER_ALL
,
LOCATION_FZONE
)
and
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
end
function
c46294982
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsEnvironment
(
72283691
)
return
Duel
.
IsEnvironment
(
72283691
,
PLAYER_ALL
,
LOCATION_FZONE
)
end
function
c46294982
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
end
...
...
c49389190.lua
View file @
e305cf83
...
...
@@ -48,7 +48,7 @@ end
function
c49389190
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
return
(
ph
==
PHASE_MAIN1
or
(
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
)
or
ph
==
PHASE_MAIN2
)
and
Duel
.
IsEnvironment
(
1050355
)
and
Duel
.
IsEnvironment
(
1050355
,
PLAYER_ALL
,
LOCATION_FZONE
)
end
function
c49389190
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
...
...
c6133894.lua
View file @
e305cf83
...
...
@@ -42,7 +42,7 @@ function c6133894.hdtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
1
-
tp
,
3
)
end
function
c6133894
.
hdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsEnvironment
(
94585852
)
then
if
Duel
.
IsEnvironment
(
94585852
,
tp
)
then
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
):
RandomSelect
(
tp
,
3
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
+
REASON_DISCARD
)
end
...
...
c73405179.lua
View file @
e305cf83
...
...
@@ -37,7 +37,7 @@ function c73405179.thcon(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
function
c73405179
.
thfilter
(
c
)
return
(
c
:
IsCode
(
41916534
)
or
(
Duel
.
IsEnvironment
(
72283691
)
and
c
:
IsRace
(
RACE_WARRIOR
)))
and
c
:
IsAbleToHand
()
return
(
c
:
IsCode
(
41916534
)
or
(
Duel
.
IsEnvironment
(
72283691
,
PLAYER_ALL
,
LOCATION_FZONE
)
and
c
:
IsRace
(
RACE_WARRIOR
)))
and
c
:
IsAbleToHand
()
end
function
c73405179
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c73405179
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c75375465.lua
View file @
e305cf83
...
...
@@ -5,7 +5,7 @@ function c75375465.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_
SZONE
,
0
)
e1
:
SetTargetRange
(
LOCATION_
ONFIELD
,
0
)
e1
:
SetTarget
(
c75375465
.
indtg
)
e1
:
SetValue
(
c75375465
.
indval
)
c
:
RegisterEffect
(
e1
)
...
...
c75888208.lua
View file @
e305cf83
...
...
@@ -49,7 +49,7 @@ end
function
c75888208
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ph
=
Duel
.
GetCurrentPhase
()
return
(
ph
==
PHASE_MAIN1
or
(
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
)
or
ph
==
PHASE_MAIN2
)
and
Duel
.
IsEnvironment
(
74665651
)
and
Duel
.
IsEnvironment
(
74665651
,
PLAYER_ALL
,
LOCATION_FZONE
)
end
function
c75888208
.
spcost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
...
...
c78527720.lua
View file @
e305cf83
...
...
@@ -44,7 +44,7 @@ function c78527720.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c78527720
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
and
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
and
Duel
.
IsEnvironment
(
72283691
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsEnvironment
(
72283691
,
PLAYER_ALL
,
LOCATION_FZONE
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c78527720
.
efilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
)
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
78527720
,
1
))
then
Duel
.
BreakEffect
()
...
...
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