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
1d73a2b0
Commit
1d73a2b0
authored
Jun 24, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix cannot be target 1
parent
32cd639f
Changes
36
Show whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
36 additions
and
43 deletions
+36
-43
c10000000.lua
c10000000.lua
+1
-1
c16259549.lua
c16259549.lua
+1
-1
c16308000.lua
c16308000.lua
+1
-1
c1644289.lua
c1644289.lua
+1
-1
c1686814.lua
c1686814.lua
+1
-1
c17985575.lua
c17985575.lua
+1
-1
c19870120.lua
c19870120.lua
+1
-1
c25796442.lua
c25796442.lua
+1
-1
c269012.lua
c269012.lua
+1
-1
c27527047.lua
c27527047.lua
+1
-1
c28124263.lua
c28124263.lua
+1
-1
c38296564.lua
c38296564.lua
+1
-1
c40502912.lua
c40502912.lua
+1
-1
c40908371.lua
c40908371.lua
+1
-1
c46195773.lua
c46195773.lua
+1
-1
c48582558.lua
c48582558.lua
+1
-1
c50527144.lua
c50527144.lua
+1
-1
c5255013.lua
c5255013.lua
+1
-1
c55885348.lua
c55885348.lua
+1
-4
c58601383.lua
c58601383.lua
+1
-1
c59048135.lua
c59048135.lua
+1
-1
c60234913.lua
c60234913.lua
+1
-1
c6165656.lua
c6165656.lua
+1
-1
c67328336.lua
c67328336.lua
+1
-1
c71209500.lua
c71209500.lua
+1
-1
c7183277.lua
c7183277.lua
+1
-1
c75779210.lua
c75779210.lua
+1
-1
c77797992.lua
c77797992.lua
+1
-1
c8062132.lua
c8062132.lua
+1
-1
c85028288.lua
c85028288.lua
+1
-1
c87564935.lua
c87564935.lua
+1
-1
c88754763.lua
c88754763.lua
+1
-1
c96457619.lua
c96457619.lua
+1
-1
c96864811.lua
c96864811.lua
+1
-1
c99000107.lua
c99000107.lua
+1
-1
utility.lua
utility.lua
+1
-5
No files found.
c10000000.lua
View file @
1d73a2b0
...
@@ -32,7 +32,7 @@ function c10000000.initial_effect(c)
...
@@ -32,7 +32,7 @@ function c10000000.initial_effect(c)
e5
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e5
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e5
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e5
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetValue
(
aux
.
tgval
)
e5
:
SetValue
(
1
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
--to grave
--to grave
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
...
...
c16259549.lua
View file @
1d73a2b0
...
@@ -22,7 +22,7 @@ function c16259549.initial_effect(c)
...
@@ -22,7 +22,7 @@ function c16259549.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetValue
(
aux
.
tgval
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--destroy replace
--destroy replace
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
c16308000.lua
View file @
1d73a2b0
...
@@ -30,7 +30,7 @@ function c16308000.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,7 +30,7 @@ function c16308000.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetCondition
(
c16308000
.
rcon
)
e1
:
SetCondition
(
c16308000
.
rcon
)
e1
:
SetValue
(
aux
.
tgval
)
e1
:
SetValue
(
1
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
c1644289.lua
View file @
1d73a2b0
...
@@ -38,7 +38,7 @@ function c1644289.eqlimit(e,c)
...
@@ -38,7 +38,7 @@ function c1644289.eqlimit(e,c)
return
c
:
IsSetCard
(
0x30
)
return
c
:
IsSetCard
(
0x30
)
end
end
function
c1644289
.
tglimit
(
e
,
re
,
rp
)
function
c1644289
.
tglimit
(
e
,
re
,
rp
)
return
aux
.
tgoval
(
e
,
re
,
rp
)
and
re
:
IsActiveType
(
TYPE_TRAP
+
TYPE_MONSTER
)
return
rp
~=
e
:
GetHandlerPlayer
(
)
and
re
:
IsActiveType
(
TYPE_TRAP
+
TYPE_MONSTER
)
end
end
function
c1644289
.
filter
(
c
)
function
c1644289
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x30
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x30
)
...
...
c1686814.lua
View file @
1d73a2b0
...
@@ -38,7 +38,7 @@ function c1686814.initial_effect(c)
...
@@ -38,7 +38,7 @@ function c1686814.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e5
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e5
:
SetValue
(
aux
.
tgval
)
e5
:
SetValue
(
1
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c1686814
.
sprfilter1
(
c
,
tp
)
function
c1686814
.
sprfilter1
(
c
,
tp
)
...
...
c17985575.lua
View file @
1d73a2b0
...
@@ -7,7 +7,7 @@ function c17985575.initial_effect(c)
...
@@ -7,7 +7,7 @@ function c17985575.initial_effect(c)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e1
:
SetTarget
(
c17985575
.
etarget
)
e1
:
SetTarget
(
c17985575
.
etarget
)
e1
:
SetValue
(
aux
.
tgval
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c17985575
.
etarget
(
e
,
c
)
function
c17985575
.
etarget
(
e
,
c
)
...
...
c19870120.lua
View file @
1d73a2b0
...
@@ -22,7 +22,7 @@ function c19870120.initial_effect(c)
...
@@ -22,7 +22,7 @@ function c19870120.initial_effect(c)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetTarget
(
c19870120
.
target
)
e3
:
SetTarget
(
c19870120
.
target
)
e3
:
SetValue
(
aux
.
tgval
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
c25796442.lua
View file @
1d73a2b0
...
@@ -24,7 +24,7 @@ function c25796442.initial_effect(c)
...
@@ -24,7 +24,7 @@ function c25796442.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c25796442
.
tgval
(
e
,
re
,
rp
)
function
c25796442
.
tgval
(
e
,
re
,
rp
)
return
re
:
IsActiveType
(
TYPE_EFFECT
)
and
aux
.
tgval
(
e
,
re
,
rp
)
return
re
:
IsActiveType
(
TYPE_EFFECT
)
end
end
function
c25796442
.
efilter
(
e
,
re
)
function
c25796442
.
efilter
(
e
,
re
)
return
re
:
IsActiveType
(
TYPE_EFFECT
)
return
re
:
IsActiveType
(
TYPE_EFFECT
)
...
...
c269012.lua
View file @
1d73a2b0
...
@@ -12,7 +12,7 @@ function c269012.initial_effect(c)
...
@@ -12,7 +12,7 @@ function c269012.initial_effect(c)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
c269012
.
target
)
e2
:
SetTarget
(
c269012
.
target
)
e2
:
SetValue
(
aux
.
tgval
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
...
...
c27527047.lua
View file @
1d73a2b0
...
@@ -12,5 +12,5 @@ function c27527047.initial_effect(c)
...
@@ -12,5 +12,5 @@ function c27527047.initial_effect(c)
end
end
function
c27527047
.
tgval
(
e
,
re
,
rp
)
function
c27527047
.
tgval
(
e
,
re
,
rp
)
local
tp
=
e
:
GetHandler
():
GetControler
()
local
tp
=
e
:
GetHandler
():
GetControler
()
return
tp
~=
rp
and
re
:
GetHandler
():
IsType
(
TYPE_MONSTER
)
and
aux
.
tgval
(
e
,
re
,
rp
)
return
tp
~=
rp
and
re
:
GetHandler
():
IsType
(
TYPE_MONSTER
)
end
end
c28124263.lua
View file @
1d73a2b0
...
@@ -25,7 +25,7 @@ function c28124263.initial_effect(c)
...
@@ -25,7 +25,7 @@ function c28124263.initial_effect(c)
e3
:
SetCondition
(
c28124263
.
cond
)
e3
:
SetCondition
(
c28124263
.
cond
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x26
))
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x26
))
e3
:
SetValue
(
aux
.
tgval
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c28124263
.
check
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c28124263
.
check
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c38296564.lua
View file @
1d73a2b0
...
@@ -80,7 +80,7 @@ function c38296564.efilter(e,re)
...
@@ -80,7 +80,7 @@ function c38296564.efilter(e,re)
return
e
:
GetOwnerPlayer
()
~=
re
:
GetOwnerPlayer
()
return
e
:
GetOwnerPlayer
()
~=
re
:
GetOwnerPlayer
()
end
end
function
c38296564
.
tgval
(
e
,
re
,
rp
)
function
c38296564
.
tgval
(
e
,
re
,
rp
)
return
rp
~=
e
:
GetOwnerPlayer
()
and
aux
.
tgval
(
e
,
re
,
rp
)
return
rp
~=
e
:
GetOwnerPlayer
()
end
end
function
c38296564
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c38296564
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsDisabled
()
then
if
e
:
GetHandler
():
IsDisabled
()
then
...
...
c40502912.lua
View file @
1d73a2b0
...
@@ -8,7 +8,7 @@ function c40502912.initial_effect(c)
...
@@ -8,7 +8,7 @@ function c40502912.initial_effect(c)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x9b
))
e1
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x9b
))
e1
:
SetCondition
(
c40502912
.
tgcon
)
e1
:
SetCondition
(
c40502912
.
tgcon
)
e1
:
SetValue
(
aux
.
tgval
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
...
...
c40908371.lua
View file @
1d73a2b0
...
@@ -43,7 +43,7 @@ function c40908371.effop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,7 +43,7 @@ function c40908371.effop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetValue
(
aux
.
tgval
)
e2
:
SetValue
(
1
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
2
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
2
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
...
...
c46195773.lua
View file @
1d73a2b0
...
@@ -26,7 +26,7 @@ function c46195773.tfilter(c)
...
@@ -26,7 +26,7 @@ function c46195773.tfilter(c)
return
c
:
IsCode
(
67270095
)
or
c
:
IsHasEffect
(
20932152
)
return
c
:
IsCode
(
67270095
)
or
c
:
IsHasEffect
(
20932152
)
end
end
function
c46195773
.
efilter
(
e
,
re
,
rp
)
function
c46195773
.
efilter
(
e
,
re
,
rp
)
return
re
:
GetHandler
():
IsLevelBelow
(
6
)
and
aux
.
tgval
(
e
,
re
,
rp
)
return
re
:
GetHandler
():
IsLevelBelow
(
6
)
end
end
function
c46195773
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c46195773
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
...
...
c48582558.lua
View file @
1d73a2b0
...
@@ -30,7 +30,7 @@ function c48582558.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,7 +30,7 @@ function c48582558.activate(e,tp,eg,ep,ev,re,r,rp)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetValue
(
aux
.
tgval
)
e2
:
SetValue
(
1
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c50527144.lua
View file @
1d73a2b0
...
@@ -25,7 +25,7 @@ function c50527144.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,7 +25,7 @@ function c50527144.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e1
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e1
:
SetTarget
(
c50527144
.
tgfilter
)
e1
:
SetTarget
(
c50527144
.
tgfilter
)
e1
:
SetValue
(
aux
.
tgval
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
...
...
c5255013.lua
View file @
1d73a2b0
...
@@ -24,7 +24,7 @@ function c5255013.initial_effect(c)
...
@@ -24,7 +24,7 @@ function c5255013.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCondition
(
c5255013
.
tgcon
)
e3
:
SetCondition
(
c5255013
.
tgcon
)
e3
:
SetValue
(
aux
.
tgval
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--self destroy
--self destroy
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
...
c55885348.lua
View file @
1d73a2b0
...
@@ -19,7 +19,7 @@ function c55885348.initial_effect(c)
...
@@ -19,7 +19,7 @@ function c55885348.initial_effect(c)
e3
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e3
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetValue
(
c55885348
.
tg
val
)
e3
:
SetValue
(
aux
.
tgo
val
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--spsummon
--spsummon
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
@@ -47,9 +47,6 @@ function c55885348.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,9 +47,6 @@ function c55885348.desop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
end
end
function
c55885348
.
tgval
(
e
,
re
,
rp
)
return
rp
~=
e
:
GetHandlerPlayer
()
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c55885348
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c55885348
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
return
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
...
...
c58601383.lua
View file @
1d73a2b0
...
@@ -25,7 +25,7 @@ function c58601383.ffilter(c)
...
@@ -25,7 +25,7 @@ function c58601383.ffilter(c)
return
c
:
IsType
(
TYPE_SYNCHRO
)
and
not
c
:
IsType
(
TYPE_EFFECT
)
return
c
:
IsType
(
TYPE_SYNCHRO
)
and
not
c
:
IsType
(
TYPE_EFFECT
)
end
end
function
c58601383
.
efilter1
(
e
,
re
,
rp
)
function
c58601383
.
efilter1
(
e
,
re
,
rp
)
return
re
:
IsActiveType
(
TYPE_EFFECT
)
and
aux
.
tgval
(
e
,
re
,
rp
)
return
re
:
IsActiveType
(
TYPE_EFFECT
)
end
end
function
c58601383
.
efilter2
(
e
,
re
)
function
c58601383
.
efilter2
(
e
,
re
)
return
re
:
IsActiveType
(
TYPE_EFFECT
)
return
re
:
IsActiveType
(
TYPE_EFFECT
)
...
...
c59048135.lua
View file @
1d73a2b0
...
@@ -34,7 +34,7 @@ function c59048135.etarget(e,c)
...
@@ -34,7 +34,7 @@ function c59048135.etarget(e,c)
return
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsType
(
TYPE_XYZ
)
return
c
:
IsRace
(
RACE_PSYCHO
)
and
c
:
IsType
(
TYPE_XYZ
)
end
end
function
c59048135
.
evalue
(
e
,
re
,
rp
)
function
c59048135
.
evalue
(
e
,
re
,
rp
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
aux
.
tgval
(
e
,
re
,
rp
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
end
function
c59048135
.
cfilter
(
c
)
function
c59048135
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x76
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsDiscardable
()
return
c
:
IsSetCard
(
0x76
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsDiscardable
()
...
...
c60234913.lua
View file @
1d73a2b0
...
@@ -31,7 +31,7 @@ function c60234913.utop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -31,7 +31,7 @@ function c60234913.utop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e1
:
SetValue
(
aux
.
tgval
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
end
end
...
...
c6165656.lua
View file @
1d73a2b0
...
@@ -15,7 +15,7 @@ function c6165656.initial_effect(c)
...
@@ -15,7 +15,7 @@ function c6165656.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetValue
(
aux
.
tgval
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--damage
--damage
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
c67328336.lua
View file @
1d73a2b0
...
@@ -27,7 +27,7 @@ function c67328336.initial_effect(c)
...
@@ -27,7 +27,7 @@ function c67328336.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c67328336
.
effval
(
e
,
re
,
rp
)
function
c67328336
.
effval
(
e
,
re
,
rp
)
return
re
:
GetHandler
():
IsType
(
TYPE_SYNCHRO
)
and
aux
.
tgval
(
e
,
re
,
rp
)
return
re
:
GetHandler
():
IsType
(
TYPE_SYNCHRO
)
end
end
function
c67328336
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c67328336
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c71209500.lua
View file @
1d73a2b0
...
@@ -43,5 +43,5 @@ function c71209500.efop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,5 +43,5 @@ function c71209500.efop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c71209500
.
efilter
(
e
,
re
,
rp
)
function
c71209500
.
efilter
(
e
,
re
,
rp
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
aux
.
tgval
(
e
,
re
,
rp
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
end
end
\ No newline at end of file
c7183277.lua
View file @
1d73a2b0
...
@@ -7,7 +7,7 @@ function c7183277.initial_effect(c)
...
@@ -7,7 +7,7 @@ function c7183277.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
c7183277
.
etarget
)
e1
:
SetTarget
(
c7183277
.
etarget
)
e1
:
SetValue
(
aux
.
tgval
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--discard deck
--discard deck
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
c75779210.lua
View file @
1d73a2b0
...
@@ -10,7 +10,7 @@ function c75779210.initial_effect(c)
...
@@ -10,7 +10,7 @@ function c75779210.initial_effect(c)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_SZONE
,
LOCATION_SZONE
)
e1
:
SetTargetRange
(
LOCATION_SZONE
,
LOCATION_SZONE
)
e1
:
SetTarget
(
c75779210
.
uttg
)
e1
:
SetTarget
(
c75779210
.
uttg
)
e1
:
SetValue
(
aux
.
tgval
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--destroy
--destroy
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
c77797992.lua
View file @
1d73a2b0
...
@@ -18,7 +18,7 @@ function c77797992.initial_effect(c)
...
@@ -18,7 +18,7 @@ function c77797992.initial_effect(c)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetCondition
(
c77797992
.
cond
)
e2
:
SetCondition
(
c77797992
.
cond
)
e2
:
SetTarget
(
c77797992
.
targetd
)
e2
:
SetTarget
(
c77797992
.
targetd
)
e2
:
SetValue
(
aux
.
tgval
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
...
...
c8062132.lua
View file @
1d73a2b0
...
@@ -33,7 +33,7 @@ function c8062132.initial_effect(c)
...
@@ -33,7 +33,7 @@ function c8062132.initial_effect(c)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e4
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e4
:
SetValue
(
aux
.
tgval
)
e4
:
SetValue
(
1
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e5
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
...
...
c85028288.lua
View file @
1d73a2b0
...
@@ -26,7 +26,7 @@ function c85028288.initial_effect(c)
...
@@ -26,7 +26,7 @@ function c85028288.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c85028288
.
efilter
(
e
,
re
,
rp
)
function
c85028288
.
efilter
(
e
,
re
,
rp
)
return
re
:
GetHandler
():
IsType
(
TYPE_TRAP
+
TYPE_MONSTER
)
and
aux
.
tgval
(
e
,
re
,
rp
)
return
re
:
GetHandler
():
IsType
(
TYPE_TRAP
+
TYPE_MONSTER
)
end
end
function
c85028288
.
cfilter
(
c
)
function
c85028288
.
cfilter
(
c
)
return
c
:
IsAttackBelow
(
1700
)
and
c
:
IsSetCard
(
0x22
)
and
c
:
IsAbleToRemoveAsCost
()
return
c
:
IsAttackBelow
(
1700
)
and
c
:
IsSetCard
(
0x22
)
and
c
:
IsAbleToRemoveAsCost
()
...
...
c87564935.lua
View file @
1d73a2b0
...
@@ -93,7 +93,7 @@ function c87564935.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -93,7 +93,7 @@ function c87564935.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c87564935
.
efilter1
(
e
,
re
,
rp
)
function
c87564935
.
efilter1
(
e
,
re
,
rp
)
return
aux
.
tgoval
(
e
,
re
,
rp
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
return
rp
~=
e
:
GetHandlerPlayer
(
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
end
end
function
c87564935
.
efilter2
(
e
,
te
)
function
c87564935
.
efilter2
(
e
,
te
)
return
te
:
GetHandlerPlayer
()
~=
e
:
GetHandlerPlayer
()
and
te
:
IsActiveType
(
TYPE_MONSTER
)
return
te
:
GetHandlerPlayer
()
~=
e
:
GetHandlerPlayer
()
and
te
:
IsActiveType
(
TYPE_MONSTER
)
...
...
c88754763.lua
View file @
1d73a2b0
...
@@ -9,7 +9,7 @@ function c88754763.initial_effect(c)
...
@@ -9,7 +9,7 @@ function c88754763.initial_effect(c)
e1
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
aux
.
tgval
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--draw
--draw
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
c96457619.lua
View file @
1d73a2b0
...
@@ -12,7 +12,7 @@ function c96457619.initial_effect(c)
...
@@ -12,7 +12,7 @@ function c96457619.initial_effect(c)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
c96457619
.
etarget
)
e2
:
SetTarget
(
c96457619
.
etarget
)
e2
:
SetValue
(
aux
.
tgval
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c96457619
.
etarget
(
e
,
c
)
function
c96457619
.
etarget
(
e
,
c
)
...
...
c96864811.lua
View file @
1d73a2b0
...
@@ -35,7 +35,7 @@ function c96864811.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -35,7 +35,7 @@ function c96864811.activate(e,tp,eg,ep,ev,re,r,rp)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetValue
(
aux
.
tgval
)
e2
:
SetValue
(
1
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
c99000107.lua
View file @
1d73a2b0
...
@@ -16,7 +16,7 @@ function c99000107.initial_effect(c)
...
@@ -16,7 +16,7 @@ function c99000107.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetCondition
(
c99000107
.
tgcon
)
e2
:
SetCondition
(
c99000107
.
tgcon
)
e2
:
SetValue
(
aux
.
tgval
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
...
...
utility.lua
View file @
1d73a2b0
...
@@ -1627,13 +1627,9 @@ end
...
@@ -1627,13 +1627,9 @@ end
function
Auxiliary
.
imval1
(
e
,
c
)
function
Auxiliary
.
imval1
(
e
,
c
)
return
not
c
:
IsImmuneToEffect
(
e
)
return
not
c
:
IsImmuneToEffect
(
e
)
end
end
--default filter for EFFECT_CANNOT_BE_EFFECT_TARGET
function
Auxiliary
.
tgval
(
e
,
re
,
rp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
--filter for EFFECT_CANNOT_BE_EFFECT_TARGET + opponent
--filter for EFFECT_CANNOT_BE_EFFECT_TARGET + opponent
function
Auxiliary
.
tgoval
(
e
,
re
,
rp
)
function
Auxiliary
.
tgoval
(
e
,
re
,
rp
)
return
rp
~=
e
:
GetHandlerPlayer
()
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
rp
~=
e
:
GetHandlerPlayer
()
end
end
--filter for non-zero ATK
--filter for non-zero ATK
function
Auxiliary
.
nzatk
(
c
)
function
Auxiliary
.
nzatk
(
c
)
...
...
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