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
11f110f7
Commit
11f110f7
authored
Sep 30, 2013
by
Fluorohydride
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #617 from sidschingis/master
fixed sometimes referencing nil values
parents
e20007e6
4138a2af
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
script/c14745409.lua
script/c14745409.lua
+1
-1
script/c53347303.lua
script/c53347303.lua
+1
-1
script/c58607704.lua
script/c58607704.lua
+1
-1
script/c62107612.lua
script/c62107612.lua
+1
-1
script/c73544866.lua
script/c73544866.lua
+1
-1
No files found.
script/c14745409.lua
View file @
11f110f7
...
@@ -61,7 +61,7 @@ end
...
@@ -61,7 +61,7 @@ end
function
c14745409
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c14745409
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
c
:
CheckUniqueOnField
(
tp
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
c
:
CheckUniqueOnField
(
tp
)
then
Duel
.
Equip
(
tp
,
c
,
tc
)
Duel
.
Equip
(
tp
,
c
,
tc
)
end
end
end
end
...
...
script/c53347303.lua
View file @
11f110f7
...
@@ -54,7 +54,7 @@ function c53347303.discon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,7 +54,7 @@ function c53347303.discon(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
if
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
local
loc
,
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TARGET_CARDS
)
local
loc
,
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TARGET_CARDS
)
if
not
tg
:
IsContains
(
c
)
then
return
false
end
if
not
tg
or
not
tg
:
IsContains
(
c
)
then
return
false
end
if
(
not
Duel
.
IsChainNegatable
(
ev
))
or
loc
==
LOCATION_DECK
then
return
false
end
if
(
not
Duel
.
IsChainNegatable
(
ev
))
or
loc
==
LOCATION_DECK
then
return
false
end
return
true
return
true
end
end
...
...
script/c58607704.lua
View file @
11f110f7
...
@@ -32,7 +32,7 @@ function c58607704.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -32,7 +32,7 @@ function c58607704.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c58607704
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c58607704
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
if
g
:
GetFirst
():
IsRelateToEffect
(
e
)
then
if
g
and
g
:
GetFirst
():
IsRelateToEffect
(
e
)
then
Duel
.
ChangeTargetCard
(
ev
,
g
)
Duel
.
ChangeTargetCard
(
ev
,
g
)
end
end
end
end
script/c62107612.lua
View file @
11f110f7
...
@@ -14,7 +14,7 @@ function c62107612.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c62107612.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c62107612
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c62107612
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
re
:
GetHandler
():
GetCode
()
==
93717133
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
re
and
re
:
GetHandler
():
GetCode
()
==
93717133
end
end
function
c62107612
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c62107612
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
62107612
)
==
0
and
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
62107612
)
==
0
and
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
...
...
script/c73544866.lua
View file @
11f110f7
...
@@ -38,7 +38,7 @@ end
...
@@ -38,7 +38,7 @@ end
function
c73544866
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c73544866
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
local
bc
=
c
:
GetBattleTarget
()
if
bc
:
IsType
(
TYPE_EFFECT
)
and
bc
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
if
bc
and
bc
:
IsType
(
TYPE_EFFECT
)
and
bc
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
...
...
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