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
YGOPRO-520DIY
ygopro
Commits
ce24bcd2
Commit
ce24bcd2
authored
Dec 22, 2013
by
sidschingis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed sometimes referencing nil values
parent
030d303e
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
7 deletions
+11
-7
script/c14001430.lua
script/c14001430.lua
+1
-1
script/c16037007.lua
script/c16037007.lua
+1
-1
script/c21702241.lua
script/c21702241.lua
+2
-1
script/c4206964.lua
script/c4206964.lua
+1
-0
script/c50903514.lua
script/c50903514.lua
+1
-1
script/c63227401.lua
script/c63227401.lua
+1
-1
script/c70423794.lua
script/c70423794.lua
+2
-1
script/c75524092.lua
script/c75524092.lua
+2
-1
No files found.
script/c14001430.lua
View file @
ce24bcd2
...
...
@@ -48,7 +48,7 @@ function c14001430.repfilter(c,tp)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
GetDestination
()
==
LOCATION_DECK
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c14001430
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
re
:
IsActiveType
(
TYPE_MONSTER
)
if
chk
==
0
then
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
re
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
IsSetCard
(
0x71
)
and
eg
:
IsExists
(
c14001430
.
repfilter
,
1
,
nil
,
tp
)
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
14001430
,
0
))
then
local
g
=
eg
:
Filter
(
c14001430
.
repfilter
,
nil
,
tp
)
...
...
script/c16037007.lua
View file @
ce24bcd2
...
...
@@ -21,7 +21,7 @@ function c16037007.discon(e,tp,eg,ep,ev,re,r,rp)
if
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
tg
:
IsContains
(
e
:
GetHandler
())
and
Duel
.
IsChainNegatable
(
ev
)
return
tg
and
tg
:
IsContains
(
e
:
GetHandler
())
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c16037007
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
...
...
script/c21702241.lua
View file @
ce24bcd2
...
...
@@ -42,7 +42,8 @@ function c21702241.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c21702241
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsContains
(
e
:
GetHandler
():
GetEquipTarget
())
local
tg
=
e
:
GetHandler
():
GetEquipTarget
()
return
tg
and
eg
:
IsContains
(
tg
)
end
function
c21702241
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
...
...
script/c4206964.lua
View file @
ce24bcd2
...
...
@@ -14,6 +14,7 @@ function c4206964.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c4206964
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
not
eg
then
return
false
end
local
tc
=
eg
:
GetFirst
()
if
chkc
then
return
chkc
==
tc
end
if
chk
==
0
then
return
ep
~=
tp
and
tc
:
IsFaceup
()
and
tc
:
GetAttack
()
>=
1000
and
tc
:
IsOnField
()
...
...
script/c50903514.lua
View file @
ce24bcd2
...
...
@@ -81,7 +81,7 @@ function c50903514.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
c50903514
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
script/c63227401.lua
View file @
ce24bcd2
...
...
@@ -49,7 +49,7 @@ function c63227401.discon(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
e
:
GetLabelObject
()
if
tc
:
GetFlagEffect
(
63227401
)
==
0
or
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
g
:
IsContains
(
tc
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
return
g
and
g
:
IsContains
(
tc
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
end
function
c63227401
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateEffect
(
ev
)
...
...
script/c70423794.lua
View file @
ce24bcd2
...
...
@@ -50,7 +50,8 @@ function c70423794.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c70423794
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsContains
(
e
:
GetHandler
():
GetEquipTarget
())
local
tg
=
e
:
GetHandler
():
GetEquipTarget
()
return
tg
and
eg
:
IsContains
(
tg
)
end
function
c70423794
.
desfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsDestructable
()
...
...
script/c75524092.lua
View file @
ce24bcd2
...
...
@@ -51,7 +51,8 @@ function c75524092.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c75524092
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetEquipTarget
():
IsReason
(
REASON_BATTLE
)
end
local
tg
=
e
:
GetHandler
():
GetEquipTarget
()
if
chk
==
0
then
return
tg
and
tg
:
IsReason
(
REASON_BATTLE
)
end
return
true
end
function
c75524092
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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