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
Reinen
ygopro-scripts
Commits
d064ee19
Commit
d064ee19
authored
Jul 12, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix def 0 check
parent
72806b1a
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
13 additions
and
13 deletions
+13
-13
c11390349.lua
c11390349.lua
+1
-1
c24062258.lua
c24062258.lua
+1
-1
c25935625.lua
c25935625.lua
+1
-1
c27971137.lua
c27971137.lua
+1
-1
c40005099.lua
c40005099.lua
+2
-2
c53573406.lua
c53573406.lua
+1
-1
c78765160.lua
c78765160.lua
+1
-1
c81191584.lua
c81191584.lua
+1
-1
c81587028.lua
c81587028.lua
+1
-1
c83283063.lua
c83283063.lua
+1
-1
c94801854.lua
c94801854.lua
+1
-1
c96163807.lua
c96163807.lua
+1
-1
No files found.
c11390349.lua
View file @
d064ee19
...
...
@@ -41,7 +41,7 @@ function c11390349.ctltg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
c11390349
.
ctlop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
GetDefense
()
==
0
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsDefenseBelow
(
0
)
then
Duel
.
GetControl
(
tc
,
tp
,
PHASE_END
,
1
)
end
end
c24062258.lua
View file @
d064ee19
...
...
@@ -13,7 +13,7 @@ function c24062258.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c24062258
.
filter
(
c
,
e
,
tp
)
return
c
:
GetCode
()
~=
24062258
and
c
:
GetLevel
()
==
4
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
(
c
:
GetAttack
()
==
0
or
c
:
GetDefense
()
==
0
)
return
c
:
GetCode
()
~=
24062258
and
c
:
GetLevel
()
==
4
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
(
c
:
GetAttack
()
==
0
or
c
:
IsDefenseBelow
(
0
)
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
function
c24062258
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c25935625.lua
View file @
d064ee19
...
...
@@ -61,7 +61,7 @@ function c25935625.spfilter1(c,e,tp)
and
Duel
.
IsExistingMatchingCard
(
c25935625
.
spfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
c
,
e
,
tp
)
end
function
c25935625
.
spfilter2
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x9e
)
and
c
:
GetDefense
()
==
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x9e
)
and
c
:
IsDefenseBelow
(
0
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c25935625
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
...
...
c27971137.lua
View file @
d064ee19
...
...
@@ -31,7 +31,7 @@ function c27971137.spcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
end
function
c27971137
.
filter
(
c
,
e
,
tp
)
return
c
:
GetLevel
()
==
1
and
(
c
:
GetAttack
()
==
0
and
c
:
GetDefense
()
==
0
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
GetLevel
()
==
1
and
(
c
:
GetAttack
()
==
0
and
c
:
IsDefenseBelow
(
0
)
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c27971137
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c40005099.lua
View file @
d064ee19
...
...
@@ -41,7 +41,7 @@ function c40005099.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
DiscardHand
(
tp
,
Card
.
IsAbleToGraveAsCost
,
1
,
1
,
REASON_COST
)
end
function
c40005099
.
filter1
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
GetDefense
()
==
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
IsDefenseBelow
(
0
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c40005099
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c40005099
.
filter1
(
chkc
,
e
,
tp
)
end
...
...
@@ -59,7 +59,7 @@ function c40005099.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c40005099
.
filter2
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
GetDefense
()
==
0
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
IsDefenseBelow
(
0
)
end
function
c40005099
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c40005099
.
filter2
(
chkc
)
end
...
...
c53573406.lua
View file @
d064ee19
...
...
@@ -47,7 +47,7 @@ function c53573406.sumlimit(e,c,sump,sumtype,sumpos,targetp,se)
return
e
:
GetLabel
()
~=
se
:
GetLabel
()
and
not
c
:
IsLocation
(
LOCATION_EXTRA
)
end
function
c53573406
.
filter
(
c
,
e
,
tp
)
return
c
:
GetDefense
()
==
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsDefenseBelow
(
0
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
function
c53573406
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
GetControler
()
==
tp
and
chkc
:
GetLocation
()
==
LOCATION_GRAVE
and
c53573406
.
filter
(
chkc
,
e
,
tp
)
end
...
...
c78765160.lua
View file @
d064ee19
...
...
@@ -98,7 +98,7 @@ function c78765160.damop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
function
c78765160
.
tdfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
GetDefense
()
==
0
and
c
:
IsAbleToDeck
()
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
IsDefenseBelow
(
0
)
and
c
:
IsAbleToDeck
()
end
function
c78765160
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
chkc
:
IsControler
(
tp
)
and
c78765160
.
tdfilter
(
chkc
)
end
...
...
c81191584.lua
View file @
d064ee19
...
...
@@ -11,7 +11,7 @@ function c81191584.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c81191584
.
filter
(
c
)
return
c
:
GetDefense
()
==
0
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsAbleToHand
()
return
c
:
IsDefenseBelow
(
0
)
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsAbleToHand
()
end
function
c81191584
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c81191584
.
filter
(
chkc
)
end
...
...
c81587028.lua
View file @
d064ee19
...
...
@@ -17,7 +17,7 @@ function c81587028.spcon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
end
function
c81587028
.
filter1
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
(
c
:
GetAttack
()
==
0
or
c
:
GetDefense
()
==
0
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
(
c
:
GetAttack
()
==
0
or
c
:
IsDefenseBelow
(
0
)
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
function
c81587028
.
filter2
(
c
,
g
)
return
g
:
IsExists
(
c81587028
.
filter3
,
1
,
c
,
c
:
GetCode
())
...
...
c83283063.lua
View file @
d064ee19
...
...
@@ -53,7 +53,7 @@ function c83283063.tgcon(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
end
function
c83283063
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
GetDefense
()
==
0
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
IsDefenseBelow
(
0
)
end
function
c83283063
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_REMOVED
)
and
c83283063
.
filter
(
chkc
)
end
...
...
c94801854.lua
View file @
d064ee19
...
...
@@ -34,7 +34,7 @@ function c94801854.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
sg
,
REASON_COST
)
end
function
c94801854
.
spfilter1
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
IsType
(
TYPE_TUNER
)
and
c
:
GetDefense
()
==
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
IsType
(
TYPE_TUNER
)
and
c
:
IsDefenseBelow
(
0
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c94801854
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c94801854
.
spfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
c96163807.lua
View file @
d064ee19
...
...
@@ -20,7 +20,7 @@ function c96163807.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c96163807
.
thfilter
(
c
)
return
c
:
GetDefense
()
==
0
and
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
IsAbleToHand
()
return
c
:
IsDefenseBelow
(
0
)
and
c
:
IsRace
(
RACE_ZOMBIE
)
and
c
:
IsAbleToHand
()
end
function
c96163807
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c96163807
.
thfilter
(
chkc
)
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