Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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-2pick
Commits
3a04f42d
Commit
3a04f42d
authored
Aug 26, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
977c89f5
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
42 deletions
+32
-42
script/c20366274.lua
script/c20366274.lua
+2
-2
script/c29400787.lua
script/c29400787.lua
+8
-13
script/c48424886.lua
script/c48424886.lua
+1
-1
script/c74822425.lua
script/c74822425.lua
+1
-1
script/c7617062.lua
script/c7617062.lua
+10
-12
script/c94977269.lua
script/c94977269.lua
+1
-2
script/c99795159.lua
script/c99795159.lua
+9
-11
No files found.
script/c20366274.lua
View file @
3a04f42d
...
@@ -53,7 +53,7 @@ function c20366274.ffilter1(c)
...
@@ -53,7 +53,7 @@ function c20366274.ffilter1(c)
return
c
:
IsSetCard
(
0x9d
)
return
c
:
IsSetCard
(
0x9d
)
end
end
function
c20366274
.
ffilter2
(
c
)
function
c20366274
.
ffilter2
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
or
c
:
IsHasEffect
(
4904633
)
~=
0
return
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
or
c
:
IsHasEffect
(
4904633
)
end
end
function
c20366274
.
exfilter
(
c
,
g
)
function
c20366274
.
exfilter
(
c
,
g
)
return
c
:
IsFaceup
()
and
c
:
IsCanBeFusionMaterial
()
and
not
g
:
IsContains
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCanBeFusionMaterial
()
and
not
g
:
IsContains
(
c
)
...
@@ -174,7 +174,7 @@ function c20366274.tgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -174,7 +174,7 @@ function c20366274.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
end
end
end
function
c20366274
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20366274
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
local
bc
=
c
:
GetBattleTarget
()
return
bc
and
bit
.
band
(
bc
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
return
bc
and
bit
.
band
(
bc
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
...
...
script/c29400787.lua
View file @
3a04f42d
...
@@ -19,10 +19,9 @@ function c29400787.initial_effect(c)
...
@@ -19,10 +19,9 @@ function c29400787.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e3
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
Set
Condition
(
c29400787
.
dircon
)
e3
:
Set
Target
(
c29400787
.
dirtg
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--tohand
--tohand
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
@@ -45,9 +44,15 @@ function c29400787.initial_effect(c)
...
@@ -45,9 +44,15 @@ function c29400787.initial_effect(c)
e5
:
SetValue
(
0
)
e5
:
SetValue
(
0
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c29400787
.
cfilter
(
e
,
c
)
function
c29400787
.
bttg
(
e
,
c
)
return
c
:
IsFacedown
()
return
c
:
IsFacedown
()
end
end
function
c29400787
.
btval
(
e
,
c
)
return
not
c
:
IsImmuneToEffect
(
e
)
end
function
c29400787
.
dirtg
(
e
,
c
)
return
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
c
:
GetControler
(),
0
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c29400787
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c29400787
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
end
end
...
@@ -67,13 +72,3 @@ function c29400787.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -67,13 +72,3 @@ function c29400787.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
end
end
function
c29400787
.
bttg
(
e
,
c
)
return
c
:
IsFacedown
()
end
function
c29400787
.
btval
(
e
,
c
)
return
not
c
:
IsImmuneToEffect
(
e
)
end
function
c29400787
.
dircon
(
e
)
local
tp
=
Duel
.
GetTurnPlayer
()
return
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
\ No newline at end of file
script/c48424886.lua
View file @
3a04f42d
...
@@ -45,7 +45,7 @@ function c48424886.ffilter1(c)
...
@@ -45,7 +45,7 @@ function c48424886.ffilter1(c)
return
c
:
IsSetCard
(
0x9d
)
return
c
:
IsSetCard
(
0x9d
)
end
end
function
c48424886
.
ffilter2
(
c
)
function
c48424886
.
ffilter2
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
or
c
:
IsHasEffect
(
4904633
)
~=
0
return
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
or
c
:
IsHasEffect
(
4904633
)
end
end
function
c48424886
.
exfilter
(
c
,
g
)
function
c48424886
.
exfilter
(
c
,
g
)
return
c
:
IsFaceup
()
and
c
:
IsCanBeFusionMaterial
()
and
not
g
:
IsContains
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCanBeFusionMaterial
()
and
not
g
:
IsContains
(
c
)
...
...
script/c74822425.lua
View file @
3a04f42d
...
@@ -46,7 +46,7 @@ function c74822425.ffilter1(c)
...
@@ -46,7 +46,7 @@ function c74822425.ffilter1(c)
return
c
:
IsSetCard
(
0x9d
)
return
c
:
IsSetCard
(
0x9d
)
end
end
function
c74822425
.
ffilter2
(
c
)
function
c74822425
.
ffilter2
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
or
c
:
IsHasEffect
(
4904633
)
~=
0
return
c
:
IsAttribute
(
ATTRIBUTE_EARTH
)
or
c
:
IsHasEffect
(
4904633
)
end
end
function
c74822425
.
exfilter
(
c
,
g
)
function
c74822425
.
exfilter
(
c
,
g
)
return
c
:
IsFaceup
()
and
c
:
IsCanBeFusionMaterial
()
and
not
g
:
IsContains
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCanBeFusionMaterial
()
and
not
g
:
IsContains
(
c
)
...
...
script/c7617062.lua
View file @
3a04f42d
...
@@ -27,10 +27,9 @@ function c7617062.initial_effect(c)
...
@@ -27,10 +27,9 @@ function c7617062.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e4
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e4
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e4
:
Set
Condition
(
c7617062
.
dircon
)
e4
:
Set
Target
(
c7617062
.
dirtg
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--pos
--pos
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
...
@@ -40,6 +39,15 @@ function c7617062.initial_effect(c)
...
@@ -40,6 +39,15 @@ function c7617062.initial_effect(c)
e5
:
SetOperation
(
c7617062
.
operation
)
e5
:
SetOperation
(
c7617062
.
operation
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c7617062
.
bttg
(
e
,
c
)
return
c
:
IsFacedown
()
end
function
c7617062
.
btval
(
e
,
c
)
return
not
c
:
IsImmuneToEffect
(
e
)
end
function
c7617062
.
dirtg
(
e
,
c
)
return
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
c
:
GetControler
(),
0
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c7617062
.
ftarget
(
e
,
c
)
function
c7617062
.
ftarget
(
e
,
c
)
return
not
c
:
IsSetCard
(
0x8d
)
return
not
c
:
IsSetCard
(
0x8d
)
end
end
...
@@ -58,13 +66,3 @@ end
...
@@ -58,13 +66,3 @@ end
function
c7617062
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c7617062
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEDOWN_DEFENCE
)
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEDOWN_DEFENCE
)
end
end
function
c7617062
.
bttg
(
e
,
c
)
return
c
:
IsFacedown
()
end
function
c7617062
.
btval
(
e
,
c
)
return
not
c
:
IsImmuneToEffect
(
e
)
end
function
c7617062
.
dircon
(
e
)
local
tp
=
Duel
.
GetTurnPlayer
()
return
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
\ No newline at end of file
script/c94977269.lua
View file @
3a04f42d
...
@@ -37,7 +37,6 @@ function c94977269.initial_effect(c)
...
@@ -37,7 +37,6 @@ function c94977269.initial_effect(c)
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e5
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e5
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetOperation
(
c94977269
.
checkop
)
e5
:
SetOperation
(
c94977269
.
checkop
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
...
@@ -57,7 +56,7 @@ function c94977269.ffilter1(c)
...
@@ -57,7 +56,7 @@ function c94977269.ffilter1(c)
return
c
:
IsSetCard
(
0x9d
)
return
c
:
IsSetCard
(
0x9d
)
end
end
function
c94977269
.
ffilter2
(
c
)
function
c94977269
.
ffilter2
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
or
c
:
IsHasEffect
(
4904633
)
~=
0
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
or
c
:
IsHasEffect
(
4904633
)
end
end
function
c94977269
.
exfilter
(
c
,
g
)
function
c94977269
.
exfilter
(
c
,
g
)
return
c
:
IsFaceup
()
and
c
:
IsCanBeFusionMaterial
()
and
not
g
:
IsContains
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCanBeFusionMaterial
()
and
not
g
:
IsContains
(
c
)
...
...
script/c99795159.lua
View file @
3a04f42d
...
@@ -19,10 +19,9 @@ function c99795159.initial_effect(c)
...
@@ -19,10 +19,9 @@ function c99795159.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e3
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
Set
Condition
(
c99795159
.
dircon
)
e3
:
Set
Target
(
c99795159
.
dirtg
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--
--
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
@@ -34,18 +33,17 @@ function c99795159.initial_effect(c)
...
@@ -34,18 +33,17 @@ function c99795159.initial_effect(c)
e4
:
SetValue
(
c99795159
.
val
)
e4
:
SetValue
(
c99795159
.
val
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c99795159
.
val
(
e
,
re
,
dam
,
r
,
rp
,
rc
)
if
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
or
(
rc
and
not
rc
:
IsSetCard
(
0x8d
))
then
return
dam
/
2
else
return
dam
end
end
function
c99795159
.
bttg
(
e
,
c
)
function
c99795159
.
bttg
(
e
,
c
)
return
c
:
IsFacedown
()
return
c
:
IsFacedown
()
end
end
function
c99795159
.
btval
(
e
,
c
)
function
c99795159
.
btval
(
e
,
c
)
return
not
c
:
IsImmuneToEffect
(
e
)
return
not
c
:
IsImmuneToEffect
(
e
)
end
end
function
c99795159
.
dircon
(
e
)
function
c99795159
.
dirtg
(
e
,
c
)
local
tp
=
Duel
.
GetTurnPlayer
()
return
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
c
:
GetControler
(),
0
,
LOCATION_MZONE
,
1
,
nil
)
return
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
end
function
c99795159
.
val
(
e
,
re
,
dam
,
r
,
rp
,
rc
)
\ No newline at end of file
if
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
or
(
rc
and
not
rc
:
IsSetCard
(
0x8d
))
then
return
dam
/
2
else
return
dam
end
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