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
adacfb5a
Commit
adacfb5a
authored
Apr 19, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EFFECT_CANNOT_SELECT_BATTLE_TARGET
parent
15322377
Changes
29
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
36 additions
and
39 deletions
+36
-39
script/c10979723.lua
script/c10979723.lua
+1
-1
script/c11475049.lua
script/c11475049.lua
+1
-1
script/c2333365.lua
script/c2333365.lua
+1
-1
script/c2460565.lua
script/c2460565.lua
+1
-1
script/c25034083.lua
script/c25034083.lua
+1
-1
script/c2986553.lua
script/c2986553.lua
+1
-1
script/c38369349.lua
script/c38369349.lua
+1
-1
script/c40583194.lua
script/c40583194.lua
+1
-1
script/c45298492.lua
script/c45298492.lua
+1
-1
script/c48179391.lua
script/c48179391.lua
+1
-1
script/c53183600.lua
script/c53183600.lua
+5
-11
script/c55401221.lua
script/c55401221.lua
+1
-1
script/c65458948.lua
script/c65458948.lua
+1
-1
script/c67511500.lua
script/c67511500.lua
+4
-1
script/c6924874.lua
script/c6924874.lua
+1
-1
script/c70458081.lua
script/c70458081.lua
+1
-1
script/c73219648.lua
script/c73219648.lua
+1
-1
script/c75363626.lua
script/c75363626.lua
+1
-1
script/c79636594.lua
script/c79636594.lua
+1
-1
script/c80304126.lua
script/c80304126.lua
+1
-1
script/c87294988.lua
script/c87294988.lua
+1
-1
script/c90960358.lua
script/c90960358.lua
+1
-1
script/c91420254.lua
script/c91420254.lua
+1
-1
script/c91559748.lua
script/c91559748.lua
+1
-1
script/c91842653.lua
script/c91842653.lua
+1
-1
script/c9264485.lua
script/c9264485.lua
+1
-1
script/c95466842.lua
script/c95466842.lua
+1
-1
script/c9666558.lua
script/c9666558.lua
+1
-1
script/c99348756.lua
script/c99348756.lua
+1
-1
No files found.
script/c10979723.lua
View file @
adacfb5a
...
...
@@ -25,5 +25,5 @@ function c10979723.filter(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x4
)
end
function
c10979723
.
atlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x4
)
and
c
~=
e
:
GetHandler
()
return
c
:
Is
Faceup
()
and
c
:
Is
SetCard
(
0x4
)
and
c
~=
e
:
GetHandler
()
end
script/c11475049.lua
View file @
adacfb5a
...
...
@@ -52,5 +52,5 @@ function c11475049.atop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c11475049
.
atlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x97
)
return
c
:
Is
Faceup
()
and
c
:
Is
SetCard
(
0x97
)
end
script/c2333365.lua
View file @
adacfb5a
...
...
@@ -24,5 +24,5 @@ function c2333365.descon(e)
return
not
Duel
.
IsExistingMatchingCard
(
c2333365
.
filter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
e
:
GetHandler
())
end
function
c2333365
.
atlimit
(
e
,
c
)
return
c
:
GetCode
()
~=
2333365
and
c
:
IsSetCard
(
0x42
)
return
c
:
IsFaceup
()
and
c
:
GetCode
()
~=
2333365
and
c
:
IsSetCard
(
0x42
)
end
script/c2460565.lua
View file @
adacfb5a
...
...
@@ -19,7 +19,7 @@ function c2460565.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c2460565
.
atlimit
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
and
c
:
IsRace
(
RACE_WARRIOR
)
return
c
~=
e
:
GetHandler
()
and
c
:
Is
Faceup
()
and
c
:
Is
Race
(
RACE_WARRIOR
)
end
function
c2460565
.
filter
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
script/c25034083.lua
View file @
adacfb5a
...
...
@@ -10,5 +10,5 @@ function c25034083.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c25034083
.
atlimit
(
e
,
c
)
return
not
c
:
IsCode
(
25034083
)
return
not
c
:
IsCode
(
25034083
)
and
c
:
IsFaceup
()
end
script/c2986553.lua
View file @
adacfb5a
...
...
@@ -19,7 +19,7 @@ function c2986553.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c2986553
.
atlimit
(
e
,
c
)
return
c
:
IsRace
(
RACE_PLANT
)
return
c
:
Is
Faceup
()
and
c
:
Is
Race
(
RACE_PLANT
)
end
function
c2986553
.
filter
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
script/c38369349.lua
View file @
adacfb5a
...
...
@@ -102,7 +102,7 @@ function c38369349.atcon(e)
return
Duel
.
IsExistingMatchingCard
(
c38369349
.
atkfilter
,
e
:
GetHandlerPlayer
(),
0
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c38369349
.
atlimit
(
e
,
c
)
return
not
c
:
IsType
(
TYPE_TOON
)
return
not
c
:
IsType
(
TYPE_TOON
)
or
c
:
IsFacedown
()
end
function
c38369349
.
atklimit
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
script/c40583194.lua
View file @
adacfb5a
...
...
@@ -43,5 +43,5 @@ function c40583194.atkop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c40583194
.
etarget
(
e
,
re
,
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_MZONE
))
end
script/c45298492.lua
View file @
adacfb5a
...
...
@@ -22,7 +22,7 @@ function c45298492.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c45298492
.
atlimit
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
and
c
:
IsRace
(
RACE_WARRIOR
)
return
c
~=
e
:
GetHandler
()
and
c
:
Is
Faceup
()
and
c
:
Is
Race
(
RACE_WARRIOR
)
end
function
c45298492
.
valcon
(
e
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
...
...
script/c48179391.lua
View file @
adacfb5a
...
...
@@ -77,5 +77,5 @@ function c48179391.atkfilter(c,atk)
return
c
:
IsFaceup
()
and
c
:
GetAttack
()
<
atk
end
function
c48179391
.
atlimit
(
e
,
c
)
return
not
Duel
.
IsExistingMatchingCard
(
c48179391
.
atkfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
c
,
c
:
GetAttack
())
return
c
:
IsFaceup
()
and
not
Duel
.
IsExistingMatchingCard
(
c48179391
.
atkfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
c
,
c
:
GetAttack
())
end
script/c53183600.lua
View file @
adacfb5a
...
...
@@ -32,13 +32,10 @@ function c53183600.initial_effect(c)
e4
:
SetCondition
(
c53183600
.
dircon
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e5
:
SetTarget
(
c53183600
.
attg
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e5
:
SetCondition
(
c53183600
.
atcon
)
e5
:
SetValue
(
c53183600
.
at
val
)
e5
:
SetValue
(
c53183600
.
at
limit
)
c
:
RegisterEffect
(
e5
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -104,11 +101,8 @@ end
function
c53183600
.
atcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c53183600
.
atkfilter
,
e
:
GetHandlerPlayer
(),
0
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c53183600
.
attg
(
e
,
c
)
return
not
c
:
IsType
(
TYPE_TOON
)
end
function
c53183600
.
atval
(
e
,
c
)
return
c
==
e
:
GetHandler
()
function
c53183600
.
atlimit
(
e
,
c
)
return
not
c
:
IsType
(
TYPE_TOON
)
or
c
:
IsFacedown
()
end
function
c53183600
.
atklimit
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
script/c55401221.lua
View file @
adacfb5a
...
...
@@ -10,5 +10,5 @@ function c55401221.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c55401221
.
atlimit
(
e
,
c
)
return
c
:
IsRace
(
RACE_THUNDER
)
and
c
:
GetCode
()
~=
55401221
return
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_THUNDER
)
and
c
:
GetCode
()
~=
55401221
end
script/c65458948.lua
View file @
adacfb5a
...
...
@@ -102,7 +102,7 @@ function c65458948.atcon(e)
return
Duel
.
IsExistingMatchingCard
(
c65458948
.
atkfilter
,
e
:
GetHandlerPlayer
(),
0
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c65458948
.
atlimit
(
e
,
c
)
return
not
c
:
IsType
(
TYPE_TOON
)
return
not
c
:
IsType
(
TYPE_TOON
)
or
c
:
IsFacedown
()
end
function
c65458948
.
atklimit
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
script/c67511500.lua
View file @
adacfb5a
...
...
@@ -6,7 +6,7 @@ function c67511500.initial_effect(c)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
aux
.
TargetBoolFunction
(
Card
.
IsRace
,
RACE_DRAGON
)
)
e1
:
SetValue
(
c67511500
.
atlimit
)
c
:
RegisterEffect
(
e1
)
--destroy replace
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -17,6 +17,9 @@ function c67511500.initial_effect(c)
e2
:
SetTarget
(
c67511500
.
desreptg
)
c
:
RegisterEffect
(
e2
)
end
function
c67511500
.
atlimit
(
e
,
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_DRAGON
)
end
function
c67511500
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
not
c
:
IsReason
(
REASON_REPLACE
)
...
...
script/c6924874.lua
View file @
adacfb5a
...
...
@@ -38,7 +38,7 @@ function c6924874.cfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x64
)
and
c
:
GetCode
()
~=
6924874
end
function
c6924874
.
atlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x64
)
and
c
:
GetCode
()
~=
6924874
return
c
:
Is
Faceup
()
and
c
:
Is
SetCard
(
0x64
)
and
c
:
GetCode
()
~=
6924874
end
function
c6924874
.
adcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c6924874
.
cfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
2
,
nil
)
...
...
script/c70458081.lua
View file @
adacfb5a
...
...
@@ -19,7 +19,7 @@ function c70458081.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c70458081
.
atlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0x9f
)
and
c
~=
e
:
GetHandler
()
return
c
:
Is
Faceup
()
and
c
:
Is
SetCard
(
0x9f
)
and
c
~=
e
:
GetHandler
()
end
function
c70458081
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x9f
)
and
not
c
:
IsCode
(
70458081
)
...
...
script/c73219648.lua
View file @
adacfb5a
...
...
@@ -47,5 +47,5 @@ function c73219648.disop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c73219648
.
atktg
(
e
,
c
)
return
c
:
IsSetCard
(
0x45
)
and
c
:
GetCode
()
~=
73219648
return
c
:
Is
Faceup
()
and
c
:
Is
SetCard
(
0x45
)
and
c
:
GetCode
()
~=
73219648
end
script/c75363626.lua
View file @
adacfb5a
...
...
@@ -33,5 +33,5 @@ function c75363626.retop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c75363626
.
atktg
(
e
,
c
)
return
c
:
GetCode
()
~=
75363626
and
c
:
IsSetCard
(
0x71
)
return
c
:
IsFaceup
()
and
c
:
GetCode
()
~=
75363626
and
c
:
IsSetCard
(
0x71
)
end
script/c79636594.lua
View file @
adacfb5a
...
...
@@ -21,7 +21,7 @@ function c79636594.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c79636594
.
bttg
(
e
,
c
)
return
c
:
IsRace
(
RACE_INSECT
)
and
c
~=
e
:
GetHandler
()
return
c
:
Is
Faceup
()
and
c
:
Is
Race
(
RACE_INSECT
)
and
c
~=
e
:
GetHandler
()
end
function
c79636594
.
filter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
79636594
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
script/c80304126.lua
View file @
adacfb5a
...
...
@@ -10,5 +10,5 @@ function c80304126.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c80304126
.
tg
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
and
c
:
IsRace
(
RACE_SPELLCASTER
)
return
c
~=
e
:
GetHandler
()
and
c
:
Is
Faceup
()
and
c
:
Is
Race
(
RACE_SPELLCASTER
)
end
script/c87294988.lua
View file @
adacfb5a
...
...
@@ -21,7 +21,7 @@ function c87294988.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c87294988
.
bttg
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
and
c
:
IsRace
(
RACE_PLANT
)
return
c
~=
e
:
GetHandler
()
and
c
:
Is
Faceup
()
and
c
:
Is
Race
(
RACE_PLANT
)
end
function
c87294988
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
~=
tp
and
e
:
GetHandler
():
GetPreviousControler
()
==
tp
...
...
script/c90960358.lua
View file @
adacfb5a
...
...
@@ -103,7 +103,7 @@ function c90960358.atcon(e)
return
Duel
.
IsExistingMatchingCard
(
c90960358
.
atkfilter
,
e
:
GetHandlerPlayer
(),
0
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c90960358
.
atlimit
(
e
,
c
)
return
not
c
:
IsType
(
TYPE_TOON
)
return
not
c
:
IsType
(
TYPE_TOON
)
or
c
:
IsFacedown
()
end
function
c90960358
.
atklimit
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
script/c91420254.lua
View file @
adacfb5a
...
...
@@ -74,5 +74,5 @@ function c91420254.posop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c91420254
.
bttg
(
e
,
c
)
return
c
:
IsSetCard
(
0xb3
)
and
c
~=
e
:
GetHandler
()
return
c
:
Is
Faceup
()
and
c
:
Is
SetCard
(
0xb3
)
and
c
~=
e
:
GetHandler
()
end
script/c91559748.lua
View file @
adacfb5a
...
...
@@ -20,7 +20,7 @@ function c91559748.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c91559748
.
tg
(
e
,
c
)
return
c
:
IsRace
(
RACE_INSECT
)
return
c
:
Is
Faceup
()
and
c
:
Is
Race
(
RACE_INSECT
)
end
function
c91559748
.
cpcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
t
=
e
:
GetHandler
():
GetBattleTarget
()
...
...
script/c91842653.lua
View file @
adacfb5a
...
...
@@ -102,7 +102,7 @@ function c91842653.atcon(e)
return
Duel
.
IsExistingMatchingCard
(
c91842653
.
atkfilter
,
e
:
GetHandlerPlayer
(),
0
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c91842653
.
atlimit
(
e
,
c
)
return
not
c
:
IsType
(
TYPE_TOON
)
return
not
c
:
IsType
(
TYPE_TOON
)
or
c
:
IsFacedown
()
end
function
c91842653
.
atklimit
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
script/c9264485.lua
View file @
adacfb5a
...
...
@@ -11,5 +11,5 @@ function c9264485.initial_effect(c)
end
function
c9264485
.
etarget
(
e
,
re
,
c
)
local
code
=
c
:
GetCode
()
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
(
code
==
75830094
or
code
==
11224103
or
code
==
48229808
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
(
code
==
75830094
or
code
==
11224103
or
code
==
48229808
)
end
script/c95466842.lua
View file @
adacfb5a
...
...
@@ -19,5 +19,5 @@ function c95466842.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c95466842
.
atlimit
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
return
c
~=
e
:
GetHandler
()
and
c
:
Is
Faceup
()
and
c
:
Is
Attribute
(
ATTRIBUTE_WATER
)
end
script/c9666558.lua
View file @
adacfb5a
...
...
@@ -10,5 +10,5 @@ function c9666558.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c9666558
.
tg
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
and
c
:
IsRace
(
RACE_DRAGON
)
return
c
~=
e
:
GetHandler
()
and
c
:
Is
Faceup
()
and
c
:
Is
Race
(
RACE_DRAGON
)
end
script/c99348756.lua
View file @
adacfb5a
...
...
@@ -21,7 +21,7 @@ function c99348756.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c99348756
.
atktg
(
e
,
c
)
return
c
:
GetCode
()
~=
99348756
and
c
:
IsRace
(
RACE_WARRIOR
)
return
c
:
GetCode
()
~=
99348756
and
c
:
Is
Faceup
()
and
c
:
Is
Race
(
RACE_WARRIOR
)
end
function
c99348756
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
e
:
GetHandler
():
IsReason
(
REASON_BATTLE
)
...
...
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