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
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
Commits
d6d2cde4
Commit
d6d2cde4
authored
Dec 03, 2014
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
use GetSummonLocation() in filter function
parent
75d3ebc9
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
23 additions
and
62 deletions
+23
-62
script/c2055403.lua
script/c2055403.lua
+1
-1
script/c26257572.lua
script/c26257572.lua
+10
-26
script/c26674724.lua
script/c26674724.lua
+1
-2
script/c37675138.lua
script/c37675138.lua
+1
-1
script/c44394295.lua
script/c44394295.lua
+1
-18
script/c52846880.lua
script/c52846880.lua
+1
-2
script/c66762372.lua
script/c66762372.lua
+1
-1
script/c88724332.lua
script/c88724332.lua
+2
-2
script/c89463537.lua
script/c89463537.lua
+1
-2
script/c91468551.lua
script/c91468551.lua
+1
-1
script/c99185129.lua
script/c99185129.lua
+1
-2
script/c99311109.lua
script/c99311109.lua
+2
-4
No files found.
script/c2055403.lua
View file @
d6d2cde4
...
...
@@ -10,7 +10,7 @@ function c2055403.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c2055403
.
filter
(
c
,
tp
)
return
c
:
GetSummonPlayer
()
~=
tp
and
c
:
IsPreviousLocation
(
LOCATION_HAND
+
LOCATION_EXTRA
)
and
c
:
IsAbleToDeck
()
return
c
:
GetSummonPlayer
()
~=
tp
and
bit
.
band
(
c
:
GetSummonLocation
(),
LOCATION_HAND
+
LOCATION_EXTRA
)
~=
0
and
c
:
IsAbleToDeck
()
end
function
c2055403
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
eg
:
Filter
(
c2055403
.
filter
,
nil
,
tp
)
...
...
script/c26257572.lua
View file @
d6d2cde4
...
...
@@ -5,37 +5,21 @@ function c26257572.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
--
reg
--
disable
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_
CONTINUOUS
+
EFFECT_TYPE_
FIELD
)
e2
:
SetCode
(
E
VENT_SPSUMMON_SUCCESS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
E
FFECT_CANNOT_TRIGGER
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetOperation
(
c26257572
.
regop
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
c26257572
.
target
)
c
:
RegisterEffect
(
e2
)
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTarget
(
c26257572
.
target
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_DISABLE
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e
3
:
Clone
()
e4
:
SetCode
(
EFFECT_
DISABL
E
)
local
e4
=
e
2
:
Clone
()
e4
:
SetCode
(
EFFECT_
CANNOT_ATTACK_ANNOUNC
E
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e3
:
Clone
()
e5
:
SetCode
(
EFFECT_CANNOT_ATTACK_ANNOUNCE
)
c
:
RegisterEffect
(
e5
)
end
function
c26257572
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
while
tc
do
if
tc
:
IsPreviousLocation
(
LOCATION_DECK
)
then
tc
:
RegisterFlagEffect
(
26257572
,
RESET_EVENT
+
0x16e0000
,
0
,
1
)
end
tc
=
eg
:
GetNext
()
end
end
function
c26257572
.
target
(
e
,
c
)
return
c
:
Get
FlagEffect
(
26257572
)
~=
0
return
c
:
Get
SummonLocation
()
==
LOCATION_DECK
end
script/c26674724.lua
View file @
d6d2cde4
...
...
@@ -53,8 +53,7 @@ function c26674724.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c26674724
.
tdfilter
(
c
)
return
c
:
IsPreviousLocation
(
LOCATION_EXTRA
)
and
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
and
c
:
IsAbleToDeck
()
return
c
:
GetSummonLocation
()
==
LOCATION_EXTRA
and
c
:
IsAbleToDeck
()
end
function
c26674724
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c26674724
.
tdfilter
(
chkc
)
end
...
...
script/c37675138.lua
View file @
d6d2cde4
...
...
@@ -20,7 +20,7 @@ function c37675138.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c37675138
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
GetOwner
():
IsRace
(
RACE_ZOMBIE
)
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_GRAVE
)
return
re
:
GetOwner
():
IsRace
(
RACE_ZOMBIE
)
and
e
:
GetHandler
():
GetSummonLocation
()
==
LOCATION_GRAVE
and
e
:
GetHandler
():
GetPreviousControler
()
==
tp
end
function
c37675138
.
desfilter
(
c
)
...
...
script/c44394295.lua
View file @
d6d2cde4
...
...
@@ -9,23 +9,6 @@ function c44394295.initial_effect(c)
e1
:
SetTarget
(
c44394295
.
target
)
e1
:
SetOperation
(
c44394295
.
activate
)
c
:
RegisterEffect
(
e1
)
if
not
c44394295
.
global_check
then
c44394295
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
ge1
:
SetOperation
(
c44394295
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
c44394295
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
while
tc
do
if
tc
:
IsPreviousLocation
(
LOCATION_EXTRA
)
then
tc
:
RegisterFlagEffect
(
44394295
,
RESET_EVENT
+
0x46e0000
,
0
,
0
)
end
tc
=
eg
:
GetNext
()
end
end
function
c44394295
.
filter1
(
c
,
e
)
return
c
:
IsCanBeFusionMaterial
()
and
not
c
:
IsImmuneToEffect
(
e
)
...
...
@@ -36,7 +19,7 @@ function c44394295.filter2(c,e,tp,m,f,chkf)
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_FUSION
,
tp
,
false
,
false
)
and
c
:
CheckFusionMaterial
(
m
,
nil
,
chkf
)
end
function
c44394295
.
cfilter
(
c
)
return
c
:
Get
FlagEffect
(
44394295
)
~=
0
return
c
:
Get
SummonLocation
()
==
LOCATION_EXTRA
end
function
c44394295
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
...
...
script/c52846880.lua
View file @
d6d2cde4
...
...
@@ -60,8 +60,7 @@ function c52846880.condition(e,tp,eg,ep,ev,re,r,rp)
local
bc
=
Duel
.
GetAttackTarget
()
if
not
bc
then
return
false
end
if
tc
:
IsControler
(
1
-
tp
)
then
tc
,
bc
=
bc
,
tc
end
if
tc
:
IsSetCard
(
0xb4
)
and
bc
:
IsPreviousLocation
(
LOCATION_EXTRA
)
and
bit
.
band
(
bc
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
then
if
tc
:
IsSetCard
(
0xb4
)
and
bc
:
GetSummonLocation
()
==
LOCATION_EXTRA
then
e
:
SetLabelObject
(
bc
)
return
true
else
return
false
end
...
...
script/c66762372.lua
View file @
d6d2cde4
...
...
@@ -49,7 +49,7 @@ function c66762372.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c66762372
.
cfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x79
)
and
c
:
IsPreviousLocation
(
LOCATION_EXTRA
)
and
c
:
GetPreviousControler
()
==
tp
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x79
)
and
c
:
GetSummonLocation
()
==
LOCATION_EXTRA
and
c
:
GetPreviousControler
()
==
tp
end
function
c66762372
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c66762372
.
cfilter
,
1
,
nil
,
tp
)
...
...
script/c88724332.lua
View file @
d6d2cde4
...
...
@@ -22,12 +22,12 @@ end
function
c88724332
.
target
(
e
,
c
)
return
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
not
c
:
IsRace
(
RACE_WYRM
)
and
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
and
c
:
IsPreviousLocation
(
LOCATION_DECK
+
LOCATION_EXTRA
)
and
bit
.
band
(
c
:
GetSummonLocation
(),
LOCATION_DECK
+
LOCATION_EXTRA
)
~=
0
end
function
c88724332
.
deftg
(
e
,
c
)
return
c
:
IsFaceup
()
and
not
c
:
IsRace
(
RACE_WYRM
)
and
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
and
c
:
IsPreviousLocation
(
LOCATION_DECK
+
LOCATION_EXTRA
)
and
bit
.
band
(
c
:
GetSummonLocation
(),
LOCATION_DECK
+
LOCATION_EXTRA
)
~=
0
end
function
c88724332
.
defval
(
e
,
c
)
return
-
c
:
GetBaseDefence
()
...
...
script/c89463537.lua
View file @
d6d2cde4
...
...
@@ -50,6 +50,5 @@ function c89463537.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c89463537
.
distg
(
e
,
c
)
return
c
:
IsPreviousLocation
(
LOCATION_EXTRA
)
and
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
return
c
:
GetSummonLocation
()
==
LOCATION_EXTRA
end
script/c91468551.lua
View file @
d6d2cde4
...
...
@@ -16,5 +16,5 @@ function c91468551.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c91468551
.
atktg
(
e
,
c
)
return
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
~=
0
and
c
:
IsPreviousLocation
(
LOCATION_GRAVE
)
return
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
~=
0
and
c
:
GetSummonLocation
()
==
LOCATION_GRAVE
end
script/c99185129.lua
View file @
d6d2cde4
...
...
@@ -57,8 +57,7 @@ function c99185129.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
end
function
c99185129
.
filter
(
c
)
return
c
:
IsPreviousLocation
(
LOCATION_EXTRA
)
and
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
return
c
:
GetSummonLocation
()
==
LOCATION_EXTRA
and
not
(
c
:
GetAttack
()
==
0
and
c
:
IsDisabled
())
end
function
c99185129
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c99185129
.
filter
(
chkc
)
end
...
...
script/c99311109.lua
View file @
d6d2cde4
...
...
@@ -13,8 +13,7 @@ function c99311109.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c99311109
.
cfilter
(
c
)
return
c
:
IsPreviousLocation
(
LOCATION_EXTRA
)
and
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
return
c
:
GetFlagEffect
(
LOCATION_EXTRA
)
~=
0
end
function
c99311109
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsExistingMatchingCard
(
c99311109
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
...
...
@@ -30,8 +29,7 @@ function c99311109.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c99311109
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsPreviousLocation
(
LOCATION_EXTRA
)
and
c
:
IsControlerCanBeChanged
()
and
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
SUMMON_TYPE_SPECIAL
return
c
:
IsFaceup
()
and
c
:
IsControlerCanBeChanged
()
and
c
:
GetSummonLocation
()
==
LOCATION_EXTRA
end
function
c99311109
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c99311109
.
filter
(
chkc
)
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