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
ae5cb16d
Commit
ae5cb16d
authored
Dec 06, 2014
by
独孤朲
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1012 from salix5/patch-im
fix: immune effect
parents
17959947
c56c9a7b
Changes
26
Show whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
74 additions
and
33 deletions
+74
-33
ocgcore/effect.cpp
ocgcore/effect.cpp
+0
-2
script/c10817524.lua
script/c10817524.lua
+1
-1
script/c12275533.lua
script/c12275533.lua
+5
-2
script/c1639384.lua
script/c1639384.lua
+4
-1
script/c19700943.lua
script/c19700943.lua
+4
-1
script/c26822796.lua
script/c26822796.lua
+5
-4
script/c27243130.lua
script/c27243130.lua
+1
-1
script/c27541267.lua
script/c27541267.lua
+1
-1
script/c28643791.lua
script/c28643791.lua
+1
-1
script/c30845999.lua
script/c30845999.lua
+1
-1
script/c36898537.lua
script/c36898537.lua
+4
-1
script/c41147577.lua
script/c41147577.lua
+1
-1
script/c41517789.lua
script/c41517789.lua
+4
-1
script/c4638410.lua
script/c4638410.lua
+1
-1
script/c46955770.lua
script/c46955770.lua
+4
-1
script/c57043117.lua
script/c57043117.lua
+1
-1
script/c63504681.lua
script/c63504681.lua
+4
-1
script/c65384188.lua
script/c65384188.lua
+4
-0
script/c65884091.lua
script/c65884091.lua
+1
-1
script/c70329348.lua
script/c70329348.lua
+4
-1
script/c8062132.lua
script/c8062132.lua
+4
-0
script/c83994433.lua
script/c83994433.lua
+1
-1
script/c86274272.lua
script/c86274272.lua
+4
-1
script/c88616795.lua
script/c88616795.lua
+9
-5
script/c91650245.lua
script/c91650245.lua
+4
-1
script/c93211810.lua
script/c93211810.lua
+1
-1
No files found.
ocgcore/effect.cpp
View file @
ae5cb16d
...
@@ -406,8 +406,6 @@ int32 effect::is_immuned(effect_set_v* effects) {
...
@@ -406,8 +406,6 @@ int32 effect::is_immuned(effect_set_v* effects) {
effect
*
peffect
;
effect
*
peffect
;
for
(
int
i
=
0
;
i
<
effects
->
count
;
++
i
)
{
for
(
int
i
=
0
;
i
<
effects
->
count
;
++
i
)
{
peffect
=
effects
->
at
(
i
);
peffect
=
effects
->
at
(
i
);
if
(
peffect
->
owner
==
owner
)
return
FALSE
;
if
(
peffect
->
value
)
{
if
(
peffect
->
value
)
{
pduel
->
lua
->
add_param
(
this
,
PARAM_TYPE_EFFECT
);
pduel
->
lua
->
add_param
(
this
,
PARAM_TYPE_EFFECT
);
if
(
peffect
->
check_value_condition
(
1
))
if
(
peffect
->
check_value_condition
(
1
))
...
...
script/c10817524.lua
View file @
ae5cb16d
...
@@ -33,5 +33,5 @@ function c10817524.indval(e,c)
...
@@ -33,5 +33,5 @@ function c10817524.indval(e,c)
return
not
c
:
IsType
(
TYPE_NORMAL
)
return
not
c
:
IsType
(
TYPE_NORMAL
)
end
end
function
c10817524
.
efilter
(
e
,
te
)
function
c10817524
.
efilter
(
e
,
te
)
return
te
:
IsActiveType
(
TYPE_MONSTER
)
return
te
:
IsActiveType
(
TYPE_MONSTER
)
and
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
end
script/c12275533.lua
View file @
ae5cb16d
...
@@ -52,7 +52,7 @@ function c12275533.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -52,7 +52,7 @@ function c12275533.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
c12275533
.
efilter
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
...
@@ -65,11 +65,14 @@ function c12275533.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -65,11 +65,14 @@ function c12275533.operation(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
end
end
function
c12275533
.
efilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
function
c12275533
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12275533
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
e1
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
e1
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
e1
:
SetValue
(
-
500
)
e1
:
SetValue
(
-
500
)
...
...
script/c1639384.lua
View file @
ae5cb16d
...
@@ -52,8 +52,11 @@ function c1639384.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -52,8 +52,11 @@ function c1639384.operation(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e3
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e3
:
SetValue
(
1
)
e3
:
SetValue
(
c1639384
.
efilter
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e3
)
tc
:
RegisterEffect
(
e3
)
end
end
end
end
function
c1639384
.
efilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
script/c19700943.lua
View file @
ae5cb16d
...
@@ -24,7 +24,10 @@ function c19700943.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -24,7 +24,10 @@ function c19700943.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
c19700943
.
efilter
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c19700943
.
efilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
script/c26822796.lua
View file @
ae5cb16d
...
@@ -29,24 +29,25 @@ function c26822796.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -29,24 +29,25 @@ function c26822796.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetValue
(
RESET_TURN_SET
)
e2
:
SetValue
(
RESET_TURN_SET
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e3
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e3
:
SetValue
(
1
)
e3
:
SetValue
(
c26822796
.
efilter
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e3
)
tc
:
RegisterEffect
(
e3
)
end
end
end
end
function
c26822796
.
efilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
script/c27243130.lua
View file @
ae5cb16d
...
@@ -42,5 +42,5 @@ function c27243130.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,5 +42,5 @@ function c27243130.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c27243130
.
efilter
(
e
,
te
)
function
c27243130
.
efilter
(
e
,
te
)
return
te
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
te
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
end
script/c27541267.lua
View file @
ae5cb16d
...
@@ -30,5 +30,5 @@ function c27541267.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,5 +30,5 @@ function c27541267.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c27541267
.
efilter
(
e
,
te
)
function
c27541267
.
efilter
(
e
,
te
)
return
te
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
te
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
end
script/c28643791.lua
View file @
ae5cb16d
...
@@ -41,5 +41,5 @@ function c28643791.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -41,5 +41,5 @@ function c28643791.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c28643791
.
imfilter
(
e
,
re
)
function
c28643791
.
imfilter
(
e
,
re
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
re
:
GetOwner
()
~=
e
:
GetOwner
()
end
end
script/c30845999.lua
View file @
ae5cb16d
...
@@ -56,5 +56,5 @@ function c30845999.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,5 +56,5 @@ function c30845999.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c30845999
.
efilter
(
e
,
te
)
function
c30845999
.
efilter
(
e
,
te
)
return
te
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
te
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
end
script/c36898537.lua
View file @
ae5cb16d
...
@@ -68,11 +68,14 @@ function c36898537.immop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -68,11 +68,14 @@ function c36898537.immop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
c36898537
.
efilter
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
end
end
function
c36898537
.
efilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
function
c36898537
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c36898537
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_SYNCHRO
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_SYNCHRO
and
bit
.
band
(
e
:
GetLabelObject
():
GetLabel
(),
TYPE_EFFECT
)
~=
0
and
bit
.
band
(
e
:
GetLabelObject
():
GetLabel
(),
TYPE_EFFECT
)
~=
0
...
...
script/c41147577.lua
View file @
ae5cb16d
...
@@ -27,7 +27,7 @@ function c41147577.initial_effect(c)
...
@@ -27,7 +27,7 @@ function c41147577.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c41147577
.
efilter
(
e
,
te
)
function
c41147577
.
efilter
(
e
,
te
)
return
te
:
IsActiveType
(
TYPE_MONSTER
)
return
te
:
IsActiveType
(
TYPE_MONSTER
)
and
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
end
function
c41147577
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c41147577
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsCode
,
1
,
nil
,
14152862
)
return
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsCode
,
1
,
nil
,
14152862
)
...
...
script/c41517789.lua
View file @
ae5cb16d
...
@@ -36,7 +36,10 @@ function c41517789.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -36,7 +36,10 @@ function c41517789.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
c41517789
.
efilter
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_DAMAGE
)
e
:
GetHandler
():
RegisterEffect
(
e1
)
e
:
GetHandler
():
RegisterEffect
(
e1
)
end
end
function
c41517789
.
efilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
script/c4638410.lua
View file @
ae5cb16d
...
@@ -25,5 +25,5 @@ function c4638410.etarget(e,c)
...
@@ -25,5 +25,5 @@ function c4638410.etarget(e,c)
return
c
:
GetOwner
()
==
e
:
GetHandlerPlayer
()
return
c
:
GetOwner
()
==
e
:
GetHandlerPlayer
()
end
end
function
c4638410
.
efilter
(
e
,
te
)
function
c4638410
.
efilter
(
e
,
te
)
return
e
~=
te
and
te
:
IsActiveType
(
TYPE_TRAP
)
return
te
:
IsActiveType
(
TYPE_TRAP
)
and
te
:
GetOwner
()
~=
e
:
GetOwner
(
)
end
end
script/c46955770.lua
View file @
ae5cb16d
...
@@ -6,7 +6,7 @@ function c46955770.initial_effect(c)
...
@@ -6,7 +6,7 @@ function c46955770.initial_effect(c)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetCondition
(
c46955770
.
con
)
e1
:
SetCondition
(
c46955770
.
con
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
c46955770
.
efilter
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c46955770
.
filter
(
c
)
function
c46955770
.
filter
(
c
)
...
@@ -16,3 +16,6 @@ function c46955770.con(e)
...
@@ -16,3 +16,6 @@ function c46955770.con(e)
return
Duel
.
IsExistingMatchingCard
(
c46955770
.
filter
,
0
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c46955770
.
filter
,
0
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
or
Duel
.
IsEnvironment
(
47355498
)
or
Duel
.
IsEnvironment
(
47355498
)
end
end
function
c46955770
.
efilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
script/c57043117.lua
View file @
ae5cb16d
...
@@ -26,7 +26,7 @@ function c57043117.initial_effect(c)
...
@@ -26,7 +26,7 @@ function c57043117.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c57043117
.
efilter
(
e
,
te
)
function
c57043117
.
efilter
(
e
,
te
)
return
te
:
IsActiveType
(
TYPE_MONSTER
)
return
te
:
IsActiveType
(
TYPE_MONSTER
)
and
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
end
function
c57043117
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c57043117
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
...
...
script/c63504681.lua
View file @
ae5cb16d
...
@@ -40,7 +40,7 @@ function c63504681.initial_effect(c)
...
@@ -40,7 +40,7 @@ function c63504681.initial_effect(c)
e5
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e5
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e5
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e5
:
SetValue
(
1
)
e5
:
SetValue
(
c63504681
.
efilter
)
e5
:
SetCondition
(
c63504681
.
effcon
)
e5
:
SetCondition
(
c63504681
.
effcon
)
e5
:
SetLabel
(
3
)
e5
:
SetLabel
(
3
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
...
@@ -83,6 +83,9 @@ end
...
@@ -83,6 +83,9 @@ end
function
c63504681
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c63504681
.
effcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetOverlayCount
()
>=
e
:
GetLabel
()
return
e
:
GetHandler
():
GetOverlayCount
()
>=
e
:
GetLabel
()
end
end
function
c63504681
.
efilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
function
c63504681
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c63504681
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
...
...
script/c65384188.lua
View file @
ae5cb16d
...
@@ -77,6 +77,7 @@ function c65384188.reg(c,tc1,tc2)
...
@@ -77,6 +77,7 @@ function c65384188.reg(c,tc1,tc2)
tc1
:
RegisterEffect
(
e4
)
tc1
:
RegisterEffect
(
e4
)
local
e5
=
e2
:
Clone
()
local
e5
=
e2
:
Clone
()
e5
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e5
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e5
:
SetValue
(
c65384188
.
efilter
)
tc1
:
RegisterEffect
(
e5
)
tc1
:
RegisterEffect
(
e5
)
end
end
function
c65384188
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65384188
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -88,3 +89,6 @@ end
...
@@ -88,3 +89,6 @@ end
function
c65384188
.
effcon
(
e
)
function
c65384188
.
effcon
(
e
)
return
e
:
GetHandler
():
GetFlagEffect
(
65384188
)
~=
0
and
e
:
GetLabelObject
():
GetFlagEffect
(
65384188
)
~=
0
return
e
:
GetHandler
():
GetFlagEffect
(
65384188
)
~=
0
and
e
:
GetLabelObject
():
GetFlagEffect
(
65384188
)
~=
0
end
end
function
c65384188
.
efilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
script/c65884091.lua
View file @
ae5cb16d
...
@@ -32,5 +32,5 @@ function c65884091.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,5 +32,5 @@ function c65884091.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c65884091
.
efilter
(
e
,
te
)
function
c65884091
.
efilter
(
e
,
te
)
return
te
:
IsActiveType
(
TYPE_EFFECT
)
return
te
:
IsActiveType
(
TYPE_EFFECT
)
and
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
end
script/c70329348.lua
View file @
ae5cb16d
...
@@ -54,8 +54,11 @@ function c70329348.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,8 +54,11 @@ function c70329348.activate(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e3
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e3
:
SetValue
(
1
)
e3
:
SetValue
(
c70329348
.
efilter
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_MAIN1
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_MAIN1
)
tc
:
RegisterEffect
(
e3
)
tc
:
RegisterEffect
(
e3
)
end
end
end
end
function
c70329348
.
efilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
script/c8062132.lua
View file @
ae5cb16d
...
@@ -36,6 +36,7 @@ function c8062132.initial_effect(c)
...
@@ -36,6 +36,7 @@ function c8062132.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e4
:
Clone
()
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e5
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e5
:
SetValue
(
c8062132
.
efilter
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
--win
--win
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
...
@@ -47,6 +48,9 @@ function c8062132.initial_effect(c)
...
@@ -47,6 +48,9 @@ function c8062132.initial_effect(c)
e6
:
SetOperation
(
c8062132
.
ctop
)
e6
:
SetOperation
(
c8062132
.
ctop
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
end
end
function
c8062132
.
efilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
function
c8062132
.
atkval
(
e
,
c
)
function
c8062132
.
atkval
(
e
,
c
)
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsRace
,
c
:
GetControler
(),
LOCATION_GRAVE
,
0
,
nil
,
RACE_REPTILE
)
*
500
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsRace
,
c
:
GetControler
(),
LOCATION_GRAVE
,
0
,
nil
,
RACE_REPTILE
)
*
500
end
end
...
...
script/c83994433.lua
View file @
ae5cb16d
--
Wo `
--
閃珖竜 スターダスト
function
c83994433
.
initial_effect
(
c
)
function
c83994433
.
initial_effect
(
c
)
--synchro summon
--synchro summon
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
1
)
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
nil
),
1
)
...
...
script/c86274272.lua
View file @
ae5cb16d
...
@@ -65,10 +65,13 @@ function c86274272.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -65,10 +65,13 @@ function c86274272.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
c86274272
.
efilter
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_DAMAGE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c86274272
.
efilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
function
c86274272
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c86274272
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToExtraAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToExtraAsCost
()
end
Duel
.
SendtoDeck
(
e
:
GetHandler
(),
nil
,
0
,
REASON_COST
)
Duel
.
SendtoDeck
(
e
:
GetHandler
(),
nil
,
0
,
REASON_COST
)
...
...
script/c88616795.lua
View file @
ae5cb16d
...
@@ -29,14 +29,18 @@ function c88616795.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -29,14 +29,18 @@ function c88616795.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e2
:
SetValue
(
c88616795
.
efilter
)
if
e
:
GetLabel
()
==
0
then
if
e
:
GetLabel
()
==
0
then
e2
:
SetLabel
(
TYPE_SPELL
)
e2
:
SetValue
(
c88616795
.
efilter1
)
else
e2
:
SetLabel
(
TYPE_TRAP
)
end
else
e2
:
SetValue
(
c88616795
.
efilter2
)
end
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
end
end
end
end
function
c88616795
.
efilter
(
e
,
te
)
function
c88616795
.
efilter1
(
e
,
te
)
return
te
:
IsActiveType
(
e
:
GetLabel
())
return
te
:
IsActiveType
(
TYPE_SPELL
)
and
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
function
c88616795
.
efilter2
(
e
,
te
)
return
te
:
IsActiveType
(
TYPE_TRAP
)
end
end
script/c91650245.lua
View file @
ae5cb16d
...
@@ -48,7 +48,7 @@ function c91650245.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,7 +48,7 @@ function c91650245.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e2
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
c91650245
.
efilter
)
sc
:
RegisterEffect
(
e2
)
sc
:
RegisterEffect
(
e2
)
end
end
end
end
...
@@ -62,3 +62,6 @@ function c91650245.tdop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -62,3 +62,6 @@ function c91650245.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoDeck
(
c
,
nil
,
1
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
c
,
nil
,
1
,
REASON_EFFECT
)
end
end
end
end
function
c91650245
.
efilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
script/c93211810.lua
View file @
ae5cb16d
...
@@ -101,7 +101,7 @@ function c93211810.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -101,7 +101,7 @@ function c93211810.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c93211810
.
efilter
(
e
,
te
)
function
c93211810
.
efilter
(
e
,
te
)
return
te
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
te
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
end
function
c93211810
.
desfilter
(
c
)
function
c93211810
.
desfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_MACHINE
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_MACHINE
)
...
...
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