Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
cfdf07eb
You need to sign in or sign up before continuing.
Commit
cfdf07eb
authored
Jun 26, 2016
by
mercury233
Committed by
DailyShana
Jun 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix (#462)
parent
907f28a9
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
28 additions
and
16 deletions
+28
-16
c19748583.lua
c19748583.lua
+4
-2
c27873305.lua
c27873305.lua
+1
-0
c41925941.lua
c41925941.lua
+5
-3
c43730887.lua
c43730887.lua
+1
-1
c5183693.lua
c5183693.lua
+1
-1
c57314798.lua
c57314798.lua
+9
-5
c68077936.lua
c68077936.lua
+1
-1
c88032456.lua
c88032456.lua
+3
-1
c90673413.lua
c90673413.lua
+2
-1
c98777036.lua
c98777036.lua
+1
-1
No files found.
c19748583.lua
View file @
cfdf07eb
...
...
@@ -87,8 +87,10 @@ function c19748583.destg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c19748583
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
c
:
GetEquipTarget
():
GetBattleTarget
()
if
tc
:
IsRelateToBattle
()
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
then
local
ec
=
c
:
GetEquipTarget
()
if
not
ec
then
return
end
local
tc
=
ec
:
GetBattleTarget
()
if
tc
and
tc
:
IsRelateToBattle
()
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
then
Duel
.
BreakEffect
()
Duel
.
Destroy
(
c
,
REASON_EFFECT
)
end
...
...
c27873305.lua
View file @
cfdf07eb
...
...
@@ -45,6 +45,7 @@ function c27873305.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c27873305
.
eqfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
bc
)
local
ec
=
g
:
GetFirst
()
if
not
ec
then
return
end
local
atk
=
ec
:
GetTextAttack
()
if
atk
<
0
then
atk
=
0
end
if
not
Duel
.
Equip
(
tp
,
ec
,
c
,
false
)
then
return
end
...
...
c41925941.lua
View file @
cfdf07eb
...
...
@@ -20,10 +20,12 @@ function c41925941.condition(e,tp,eg,ep,ev,re,r,rp)
local
d
=
Duel
.
GetAttackTarget
()
if
a
:
IsControler
(
tp
)
then
e
:
SetLabelObject
(
d
)
return
a
:
IsFaceup
()
and
a
:
IsRace
(
RACE_FIEND
)
and
a
:
IsRelateToBattle
()
and
d
and
d
:
IsFaceup
()
and
d
:
IsRelateToBattle
()
else
return
a
:
IsFaceup
()
and
a
:
IsRace
(
RACE_FIEND
)
and
a
:
IsRelateToBattle
()
and
d
and
d
:
IsFaceup
()
and
d
:
IsRelateToBattle
()
elseif
d
and
d
:
IsControler
(
tp
)
then
e
:
SetLabelObject
(
a
)
return
d
:
IsFaceup
()
and
d
:
IsRace
(
RACE_FIEND
)
and
d
:
IsRelateToBattle
()
and
a
and
a
:
IsFaceup
()
and
a
:
IsRelateToBattle
()
return
d
:
IsFaceup
()
and
d
:
IsRace
(
RACE_FIEND
)
and
d
:
IsRelateToBattle
()
and
a
and
a
:
IsFaceup
()
and
a
:
IsRelateToBattle
()
end
end
function
c41925941
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c43730887.lua
View file @
cfdf07eb
...
...
@@ -49,7 +49,7 @@ end
function
c43730887
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
c
:
SetCardTarget
(
tc
)
end
end
...
...
c5183693.lua
View file @
cfdf07eb
...
...
@@ -56,7 +56,7 @@ function c5183693.atkcon(e)
if
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE_CAL
then
return
false
end
local
eqc
=
e
:
GetHandler
():
GetEquipTarget
()
local
bc
=
eqc
:
GetBattleTarget
()
return
eqc
:
GetLevel
()
>
0
and
bc
:
GetLevel
()
>
eqc
:
GetLevel
()
return
eqc
:
GetLevel
()
>
0
and
bc
and
bc
:
GetLevel
()
>
eqc
:
GetLevel
()
end
function
c5183693
.
atkval
(
e
,
c
)
local
bc
=
c
:
GetBattleTarget
()
...
...
c57314798.lua
View file @
cfdf07eb
...
...
@@ -145,11 +145,15 @@ function c57314798.desop(e,tp,eg,ep,ev,re,r,rp)
local
g2
=
Duel
.
SelectMatchingCard
(
1
-
tp
,
c57314798
.
setfilter
,
1
-
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
tc1
=
g1
:
GetFirst
()
local
tc2
=
g2
:
GetFirst
()
if
tc1
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
or
tc2
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
then
return
end
Duel
.
SSet
(
tp
,
tc1
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc1
)
Duel
.
SSet
(
1
-
tp
,
tc2
)
Duel
.
ConfirmCards
(
tp
,
tc2
)
if
(
tc1
and
tc1
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
))
or
(
tc2
and
tc2
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
))
then
return
end
if
tc1
then
Duel
.
SSet
(
tp
,
tc1
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc1
)
end
if
tc2
then
Duel
.
SSet
(
1
-
tp
,
tc2
)
Duel
.
ConfirmCards
(
tp
,
tc2
)
end
end
end
function
c57314798
.
spfilter
(
c
)
...
...
c68077936.lua
View file @
cfdf07eb
...
...
@@ -43,7 +43,7 @@ function c68077936.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c68077936
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c68077936
.
cfilter
,
1
,
nil
,
tp
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
aux
.
exccon
(
e
)
return
eg
:
IsExists
(
c68077936
.
cfilter
,
1
,
nil
,
tp
)
and
re
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
aux
.
exccon
(
e
)
end
function
c68077936
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
...
...
c88032456.lua
View file @
cfdf07eb
...
...
@@ -26,7 +26,9 @@ function c88032456.filter(c,e,tp)
if
c
:
IsType
(
TYPE_MONSTER
)
then
return
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
else
return
c
:
IsSSetable
(
true
)
and
(
c
:
IsType
(
TYPE_FIELD
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
)
local
ct
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
if
e
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
not
e
:
GetHandler
():
IsLocation
(
LOCATION_SZONE
)
then
ct
=
ct
-
1
end
return
c
:
IsSSetable
()
and
(
c
:
IsType
(
TYPE_FIELD
)
or
ct
>
0
)
end
end
function
c88032456
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c90673413.lua
View file @
cfdf07eb
...
...
@@ -64,7 +64,8 @@ function c90673413.desop(e,tp,eg,ep,ev,re,r,rp)
end
function
c90673413
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsReason
(
REASON_LOST_TARGET
)
and
c
:
GetPreviousEquipTarget
():
IsLocation
(
LOCATION_OVERLAY
)
local
tc
=
c
:
GetPreviousEquipTarget
()
return
c
:
IsReason
(
REASON_LOST_TARGET
)
and
tc
and
tc
:
IsLocation
(
LOCATION_OVERLAY
)
end
function
c90673413
.
atkfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
...
...
c98777036.lua
View file @
cfdf07eb
...
...
@@ -84,7 +84,7 @@ function c98777036.ctcos(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
sg
,
REASON_COST
)
end
function
c98777036
.
cttar
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c98777036
.
ctffilter
(
e
,
e
:
GetLabel
())
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c98777036
.
ctffilter
(
chkc
,
e
:
GetLabel
())
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c98777036
.
ctffilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
e
:
GetLabel
())
...
...
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