Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
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
八宫一月
ygopro-scripts
Commits
b8c0e2b6
Commit
b8c0e2b6
authored
Jul 01, 2019
by
nekrozar
Committed by
nanahira
Jul 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix activate limit (#1197)
* fix activate limit * fix activate limit
parent
83799fbe
Changes
58
Hide whitespace changes
Inline
Side-by-side
Showing
58 changed files
with
60 additions
and
131 deletions
+60
-131
c12255007.lua
c12255007.lua
+1
-1
c13331639.lua
c13331639.lua
+1
-1
c15419596.lua
c15419596.lua
+1
-1
c17194258.lua
c17194258.lua
+1
-1
c17663375.lua
c17663375.lua
+1
-1
c24940422.lua
c24940422.lua
+1
-1
c25494711.lua
c25494711.lua
+1
-4
c2602411.lua
c2602411.lua
+1
-1
c26202165.lua
c26202165.lua
+1
-1
c26232916.lua
c26232916.lua
+1
-2
c29208536.lua
c29208536.lua
+1
-1
c32231618.lua
c32231618.lua
+1
-1
c32465539.lua
c32465539.lua
+1
-4
c33022867.lua
c33022867.lua
+1
-4
c33950246.lua
c33950246.lua
+3
-3
c34010534.lua
c34010534.lua
+1
-4
c35618217.lua
c35618217.lua
+1
-4
c38601126.lua
c38601126.lua
+1
-1
c402568.lua
c402568.lua
+1
-4
c40509732.lua
c40509732.lua
+1
-4
c40583194.lua
c40583194.lua
+1
-1
c41128647.lua
c41128647.lua
+1
-4
c43845801.lua
c43845801.lua
+1
-4
c43994202.lua
c43994202.lua
+1
-1
c44509529.lua
c44509529.lua
+1
-4
c44874522.lua
c44874522.lua
+1
-1
c45349196.lua
c45349196.lua
+1
-4
c46897277.lua
c46897277.lua
+1
-4
c48770333.lua
c48770333.lua
+1
-4
c49306994.lua
c49306994.lua
+1
-1
c50139096.lua
c50139096.lua
+1
-4
c51788412.lua
c51788412.lua
+1
-1
c56421754.lua
c56421754.lua
+1
-4
c57477163.lua
c57477163.lua
+1
-4
c58569561.lua
c58569561.lua
+1
-1
c60508057.lua
c60508057.lua
+1
-1
c62000467.lua
c62000467.lua
+1
-4
c65330383.lua
c65330383.lua
+1
-1
c67985943.lua
c67985943.lua
+1
-4
c68396121.lua
c68396121.lua
+1
-2
c68431965.lua
c68431965.lua
+1
-1
c68937720.lua
c68937720.lua
+1
-1
c70917315.lua
c70917315.lua
+1
-1
c7305060.lua
c7305060.lua
+1
-1
c73599290.lua
c73599290.lua
+1
-1
c7403341.lua
c7403341.lua
+1
-1
c74717840.lua
c74717840.lua
+1
-1
c75059201.lua
c75059201.lua
+1
-1
c78010363.lua
c78010363.lua
+1
-1
c81055000.lua
c81055000.lua
+1
-1
c81193865.lua
c81193865.lua
+1
-4
c81269231.lua
c81269231.lua
+1
-1
c83866861.lua
c83866861.lua
+1
-4
c8529136.lua
c8529136.lua
+1
-4
c86221741.lua
c86221741.lua
+1
-4
c88581108.lua
c88581108.lua
+1
-1
c92781606.lua
c92781606.lua
+1
-4
c94016752.lua
c94016752.lua
+1
-1
No files found.
c12255007.lua
View file @
b8c0e2b6
...
...
@@ -24,7 +24,7 @@ function c12255007.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c12255007
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
function
c12255007
.
actcon
(
e
)
local
tc
=
Duel
.
GetAttacker
()
...
...
c13331639.lua
View file @
b8c0e2b6
...
...
@@ -89,7 +89,7 @@ end
function
c13331639
.
limval
(
e
,
re
,
rp
)
local
rc
=
re
:
GetHandler
()
return
rc
:
IsLocation
(
LOCATION_MZONE
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
rc
:
IsType
(
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
)
and
not
rc
:
IsImmuneToEffect
(
e
)
and
rc
:
IsType
(
TYPE_FUSION
+
TYPE_SYNCHRO
+
TYPE_XYZ
)
end
function
c13331639
.
ddcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DRAW
...
...
c15419596.lua
View file @
b8c0e2b6
...
...
@@ -65,5 +65,5 @@ function c15419596.actcon(e)
end
function
c15419596
.
aclimit
(
e
,
re
,
tp
)
local
tc
=
re
:
GetHandler
()
return
tc
:
IsLocation
(
LOCATION_MZONE
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
e
:
GetHandler
():
GetColumnGroup
():
IsContains
(
tc
)
and
not
tc
:
IsImmuneToEffect
(
e
)
return
tc
:
IsLocation
(
LOCATION_MZONE
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
e
:
GetHandler
():
GetColumnGroup
():
IsContains
(
tc
)
end
c17194258.lua
View file @
b8c0e2b6
...
...
@@ -58,5 +58,5 @@ function c17194258.sumlimit(e,c)
return
c
:
IsCode
(
e
:
GetLabel
())
end
function
c17194258
.
aclimit
(
e
,
re
,
tp
)
return
re
:
GetHandler
():
IsCode
(
e
:
GetLabel
())
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
GetHandler
():
IsCode
(
e
:
GetLabel
())
and
re
:
IsActiveType
(
TYPE_MONSTER
)
end
c17663375.lua
View file @
b8c0e2b6
...
...
@@ -62,7 +62,7 @@ function c17663375.sumlimit(e,c,sump,sumtype,sumpos,targetp)
return
bit
.
band
(
sumpos
,
POS_FACEDOWN
)
>
0
end
function
c17663375
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
end
function
c17663375
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
...
...
c24940422.lua
View file @
b8c0e2b6
...
...
@@ -46,7 +46,7 @@ function c24940422.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c24940422
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsCode
(
24940422
)
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
not
re
:
GetHandler
():
IsCode
(
24940422
)
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
function
c24940422
.
tdfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToDeck
()
...
...
c25494711.lua
View file @
b8c0e2b6
...
...
@@ -17,7 +17,7 @@ function c25494711.initial_effect(c)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetValue
(
c25494711
.
aclimit
)
e2
:
SetValue
(
1
)
e2
:
SetCondition
(
c25494711
.
actcon
)
c
:
RegisterEffect
(
e2
)
--destroy replace
...
...
@@ -64,9 +64,6 @@ end
function
c25494711
.
ftarget
(
e
,
c
)
return
e
:
GetLabel
()
~=
c
:
GetFieldID
()
end
function
c25494711
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c25494711
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
or
Duel
.
GetAttackTarget
()
==
e
:
GetHandler
()
end
...
...
c2602411.lua
View file @
b8c0e2b6
...
...
@@ -63,7 +63,7 @@ function c2602411.eqlimit(e,c)
end
function
c2602411
.
aclimit
(
e
,
re
,
tp
)
local
loc
=
re
:
GetActivateLocation
()
return
loc
==
LOCATION_GRAVE
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
loc
==
LOCATION_GRAVE
and
re
:
IsActiveType
(
TYPE_MONSTER
)
end
function
c2602411
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
...
...
c26202165.lua
View file @
b8c0e2b6
...
...
@@ -44,5 +44,5 @@ function c26202165.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
c26202165
.
aclimit
(
e
,
re
,
tp
)
local
tc
=
e
:
GetLabelObject
()
return
re
:
GetHandler
():
IsCode
(
tc
:
GetCode
())
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
GetHandler
():
IsCode
(
tc
:
GetCode
())
end
c26232916.lua
View file @
b8c0e2b6
...
...
@@ -70,7 +70,7 @@ function c26232916.thop(e,tp,eg,ep,ev,re,r,rp)
end
function
c26232916
.
aclimit
(
e
,
re
,
tp
)
local
tc
=
e
:
GetLabelObject
()
return
re
:
GetHandler
():
IsCode
(
tc
:
GetCode
())
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
GetHandler
():
IsCode
(
tc
:
GetCode
())
end
function
c26232916
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
(
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x2b
)
or
c
:
IsSetCard
(
0x61
))
...
...
@@ -99,4 +99,3 @@ function c26232916.repop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
e
:
GetLabelObject
()
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_REPLACE
)
end
c29208536.lua
View file @
b8c0e2b6
...
...
@@ -70,5 +70,5 @@ function c29208536.aclimit(e,re,tp)
table.insert
(
cg
,
tc
:
GetCode
())
tc
=
g
:
GetNext
()
end
return
re
:
GetHandler
():
IsCode
(
table.unpack
(
cg
))
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
GetHandler
():
IsCode
(
table.unpack
(
cg
))
end
c32231618.lua
View file @
b8c0e2b6
...
...
@@ -36,5 +36,5 @@ function c32231618.spop(e,tp,eg,ep,ev,re,r,rp)
end
function
c32231618
.
actlimit
(
e
,
re
,
rp
)
local
rc
=
re
:
GetHandler
()
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
rc
:
IsSetCard
(
0xcc
)
and
not
rc
:
IsImmuneToEffect
(
e
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
rc
:
IsSetCard
(
0xcc
)
end
c32465539.lua
View file @
b8c0e2b6
...
...
@@ -68,7 +68,7 @@ function c32465539.efop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c32465539
.
aclimit
)
e1
:
SetValue
(
1
)
e1
:
SetCondition
(
c32465539
.
actcon
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
rc
:
RegisterEffect
(
e1
,
true
)
...
...
@@ -81,9 +81,6 @@ function c32465539.efop(e,tp,eg,ep,ev,re,r,rp)
rc
:
RegisterEffect
(
e2
,
true
)
end
end
function
c32465539
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c32465539
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
and
Duel
.
GetAttackTarget
()
and
Duel
.
GetAttackTarget
():
IsPosition
(
POS_DEFENSE
)
end
c33022867.lua
View file @
b8c0e2b6
...
...
@@ -25,7 +25,7 @@ function c33022867.initial_effect(c)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
1
)
e3
:
SetCondition
(
c33022867
.
condition
)
e3
:
SetValue
(
c33022867
.
aclimit
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
end
function
c33022867
.
fselect
(
g
,
tp
)
...
...
@@ -71,6 +71,3 @@ function c33022867.condition(e)
local
ph
=
Duel
.
GetCurrentPhase
()
return
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
end
function
c33022867
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
c33950246.lua
View file @
b8c0e2b6
...
...
@@ -30,13 +30,13 @@ function c33950246.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c33950246
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsActiveType
(
TYPE_FLIP
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
IsActiveType
(
TYPE_FLIP
)
end
function
c33950246
.
disable
(
e
,
c
)
return
c
:
IsType
(
TYPE_FLIP
)
end
function
c33950246
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsActiveType
(
TYPE_FLIP
)
then
Duel
.
NegateEffect
(
ev
)
if
re
:
IsActiveType
(
TYPE_FLIP
)
then
Duel
.
NegateEffect
(
ev
)
end
end
c34010534.lua
View file @
b8c0e2b6
...
...
@@ -23,7 +23,7 @@ function c34010534.initial_effect(c)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTargetRange
(
0
,
1
)
e3
:
SetCondition
(
c34010534
.
actcon
)
e3
:
SetValue
(
c34010534
.
aclimit
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
end
function
c34010534
.
sumfilter
(
c
)
...
...
@@ -61,6 +61,3 @@ function c34010534.actcon(e)
local
d
=
Duel
.
GetAttackTarget
()
return
(
a
and
c34010534
.
cfilter
(
a
,
tp
))
or
(
d
and
c34010534
.
cfilter
(
d
,
tp
))
end
function
c34010534
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
c35618217.lua
View file @
b8c0e2b6
...
...
@@ -78,7 +78,7 @@ function c35618217.actop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetCondition
(
c35618217
.
actcon
)
e1
:
SetValue
(
c35618217
.
actlimit
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
...
...
@@ -86,6 +86,3 @@ function c35618217.actcon(e)
local
ph
=
Duel
.
GetCurrentPhase
()
return
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
end
function
c35618217
.
actlimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
c38601126.lua
View file @
b8c0e2b6
...
...
@@ -60,7 +60,7 @@ function c38601126.eqlimit(e,c)
end
function
c38601126
.
aclimit
(
e
,
re
,
tp
)
local
loc
=
re
:
GetActivateLocation
()
return
loc
==
LOCATION_SZONE
and
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
loc
==
LOCATION_SZONE
and
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
function
c38601126
.
dacost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
...
...
c402568.lua
View file @
b8c0e2b6
...
...
@@ -23,10 +23,7 @@ function c402568.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c402568
.
aclimit
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c402568
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
c40509732.lua
View file @
b8c0e2b6
...
...
@@ -10,7 +10,7 @@ function c40509732.initial_effect(c)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c40509732
.
aclimit
)
e1
:
SetValue
(
1
)
e1
:
SetCondition
(
c40509732
.
con
)
c
:
RegisterEffect
(
e1
)
--disable
...
...
@@ -36,9 +36,6 @@ function c40509732.initial_effect(c)
e4
:
SetOperation
(
c40509732
.
spop
)
c
:
RegisterEffect
(
e4
)
end
function
c40509732
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c40509732
.
con
(
e
)
local
c
=
e
:
GetHandler
()
return
(
Duel
.
GetAttacker
()
==
c
and
c
:
GetBattleTarget
())
or
Duel
.
GetAttackTarget
()
==
c
...
...
c40583194.lua
View file @
b8c0e2b6
...
...
@@ -28,7 +28,7 @@ function c40583194.operation(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
0xff
)
e1
:
SetValue
(
c40583194
.
etarget
)
...
...
c41128647.lua
View file @
b8c0e2b6
...
...
@@ -24,13 +24,10 @@ function c41128647.initial_effect(c)
e4
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetTargetRange
(
0
,
1
)
e4
:
SetValue
(
c41128647
.
aclimit
)
e4
:
SetValue
(
1
)
e4
:
SetCondition
(
c41128647
.
actcon
)
c
:
RegisterEffect
(
e4
)
end
function
c41128647
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c41128647
.
cfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xd8
)
and
c
:
IsControler
(
tp
)
end
...
...
c43845801.lua
View file @
b8c0e2b6
...
...
@@ -40,7 +40,7 @@ function c43845801.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetLabelObject
(
tc
)
e2
:
SetValue
(
c43845801
.
aclimit
)
e2
:
SetValue
(
1
)
e2
:
SetCondition
(
c43845801
.
actcon
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
...
...
@@ -49,6 +49,3 @@ end
function
c43845801
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetLabelObject
()
end
function
c43845801
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
c43994202.lua
View file @
b8c0e2b6
...
...
@@ -65,7 +65,7 @@ function c43994202.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c43994202
.
aclimit
(
e
,
re
,
tp
)
return
re
:
GetHandler
():
IsCode
(
e
:
GetLabel
())
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
GetHandler
():
IsCode
(
e
:
GetLabel
())
and
re
:
IsActiveType
(
TYPE_MONSTER
)
end
function
c43994202
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
return
c
:
IsCode
(
e
:
GetLabel
())
...
...
c44509529.lua
View file @
b8c0e2b6
...
...
@@ -10,7 +10,7 @@ function c44509529.initial_effect(c)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c44509529
.
aclimit
)
e1
:
SetValue
(
1
)
e1
:
SetCondition
(
c44509529
.
actcon
)
c
:
RegisterEffect
(
e1
)
--spsummon
...
...
@@ -29,9 +29,6 @@ function c44509529.initial_effect(c)
e2
:
SetOperation
(
c44509529
.
spop
)
c
:
RegisterEffect
(
e2
)
end
function
c44509529
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c44509529
.
actcon
(
e
)
local
a
=
Duel
.
GetAttacker
()
return
a
and
a
:
IsControler
(
e
:
GetHandlerPlayer
())
and
a
:
IsSetCard
(
0x120
)
...
...
c44874522.lua
View file @
b8c0e2b6
...
...
@@ -70,7 +70,7 @@ function c44874522.regop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c44874522
.
aclimit
(
e
,
re
,
tp
)
return
(
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
re
:
IsActiveType
(
TYPE_MONSTER
))
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
re
:
IsActiveType
(
TYPE_MONSTER
)
end
function
c44874522
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
...
...
c45349196.lua
View file @
b8c0e2b6
...
...
@@ -12,7 +12,7 @@ function c45349196.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetCondition
(
c45349196
.
accon
)
e1
:
SetValue
(
c45349196
.
aclimit
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
--damage
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -37,9 +37,6 @@ end
function
c45349196
.
accon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
or
Duel
.
GetAttackTarget
()
==
e
:
GetHandler
()
end
function
c45349196
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c45349196
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsSummonType
(
SUMMON_TYPE_FUSION
)
and
c
:
GetBattledGroupCount
()
>
0
...
...
c46897277.lua
View file @
b8c0e2b6
...
...
@@ -18,7 +18,7 @@ function c46897277.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c46897277
.
aclimit
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
@@ -29,6 +29,3 @@ function c46897277.operation(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetTargetRange
(
0
,
1
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
function
c46897277
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
c48770333.lua
View file @
b8c0e2b6
...
...
@@ -66,7 +66,7 @@ function c48770333.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c48770333
.
aclimit
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
if
c
:
IsRelateToEffect
(
e
)
then
...
...
@@ -79,6 +79,3 @@ function c48770333.atkop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e2
)
end
end
function
c48770333
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
c49306994.lua
View file @
b8c0e2b6
...
...
@@ -73,7 +73,7 @@ function c49306994.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c49306994
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
function
c49306994
.
actcon
(
e
)
local
tc
=
e
:
GetHandler
():
GetEquipTarget
()
...
...
c50139096.lua
View file @
b8c0e2b6
...
...
@@ -79,10 +79,7 @@ function c50139096.actop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c50139096
.
actlimit
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c50139096
.
actlimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
c51788412.lua
View file @
b8c0e2b6
...
...
@@ -48,5 +48,5 @@ function c51788412.actcon(e)
return
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
end
function
c51788412
.
actlimit
(
e
,
re
,
tp
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
end
c56421754.lua
View file @
b8c0e2b6
...
...
@@ -17,7 +17,7 @@ function c56421754.initial_effect(c)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetValue
(
c56421754
.
aclimit
)
e2
:
SetValue
(
1
)
e2
:
SetCondition
(
c56421754
.
actcon
)
c
:
RegisterEffect
(
e2
)
end
...
...
@@ -37,9 +37,6 @@ function c56421754.spop(e,tp,eg,ep,ev,re,r,rp,c)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c56421754
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_COST
)
end
function
c56421754
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c56421754
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
c57477163.lua
View file @
b8c0e2b6
...
...
@@ -10,7 +10,7 @@ function c57477163.initial_effect(c)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c57477163
.
aclimit
)
e1
:
SetValue
(
1
)
e1
:
SetCondition
(
c57477163
.
actcon
)
c
:
RegisterEffect
(
e1
)
--spsummon
...
...
@@ -25,9 +25,6 @@ function c57477163.initial_effect(c)
e2
:
SetOperation
(
c57477163
.
operation
)
c
:
RegisterEffect
(
e2
)
end
function
c57477163
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c57477163
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
or
Duel
.
GetAttackTarget
()
==
e
:
GetHandler
()
end
...
...
c58569561.lua
View file @
b8c0e2b6
...
...
@@ -29,7 +29,7 @@ function c58569561.accon(e)
return
Duel
.
GetLP
(
tp
)
>
Duel
.
GetLP
(
1
-
tp
)
and
ac
and
ac
:
IsControler
(
tp
)
and
ac
:
IsRace
(
RACE_PLANT
)
end
function
c58569561
.
actlimit
(
e
,
re
,
tp
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
end
function
c58569561
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
tp
...
...
c60508057.lua
View file @
b8c0e2b6
...
...
@@ -41,7 +41,7 @@ function c60508057.damop(e,tp,eg,ep,ev,re,r,rp)
end
function
c60508057
.
actlimit
(
e
,
re
,
rp
)
local
rc
=
re
:
GetHandler
()
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
rc
:
IsSetCard
(
0xba
)
and
not
rc
:
IsImmuneToEffect
(
e
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
rc
:
IsSetCard
(
0xba
)
end
function
c60508057
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
...
...
c62000467.lua
View file @
b8c0e2b6
...
...
@@ -19,7 +19,7 @@ function c62000467.initial_effect(c)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetValue
(
c62000467
.
aclimit
)
e2
:
SetValue
(
1
)
e2
:
SetCondition
(
c62000467
.
actcon
)
c
:
RegisterEffect
(
e2
)
--special summon
...
...
@@ -39,9 +39,6 @@ end
function
c62000467
.
indtg
(
e
,
c
)
return
c
:
IsSetCard
(
0x19
)
and
Duel
.
GetAttacker
()
==
c
end
function
c62000467
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c62000467
.
actcon
(
e
)
local
tc
=
Duel
.
GetAttacker
()
local
tp
=
e
:
GetHandlerPlayer
()
...
...
c65330383.lua
View file @
b8c0e2b6
...
...
@@ -73,5 +73,5 @@ function c65330383.setop(e,tp,eg,ep,ev,re,r,rp)
end
function
c65330383
.
aclimit
(
e
,
re
,
tp
)
local
tc
=
re
:
GetHandler
()
return
tc
:
IsLocation
(
LOCATION_MZONE
)
and
tc
:
IsFaceup
()
and
tc
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
and
not
tc
:
IsLinkState
()
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
tc
:
IsImmuneToEffect
(
e
)
return
tc
:
IsLocation
(
LOCATION_MZONE
)
and
tc
:
IsFaceup
()
and
tc
:
IsSummonType
(
SUMMON_TYPE_SPECIAL
)
and
not
tc
:
IsLinkState
()
and
re
:
IsActiveType
(
TYPE_MONSTER
)
end
c67985943.lua
View file @
b8c0e2b6
...
...
@@ -17,16 +17,13 @@ function c67985943.initial_effect(c)
e3
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
1
)
e3
:
SetValue
(
c67985943
.
aclimit
)
e3
:
SetValue
(
1
)
e3
:
SetCondition
(
c67985943
.
actcon
)
c
:
RegisterEffect
(
e3
)
end
function
c67985943
.
splimit
(
e
,
se
,
sp
,
st
)
return
not
e
:
GetHandler
():
IsLocation
(
LOCATION_EXTRA
)
or
bit
.
band
(
st
,
SUMMON_TYPE_FUSION
)
==
SUMMON_TYPE_FUSION
end
function
c67985943
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c67985943
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
or
Duel
.
GetAttackTarget
()
==
e
:
GetHandler
()
end
c68396121.lua
View file @
b8c0e2b6
...
...
@@ -58,7 +58,7 @@ function c68396121.negop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c68396121
.
aclimit
(
e
,
re
,
tp
)
return
re
:
GetHandler
():
IsOnField
()
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
GetHandler
():
IsOnField
()
end
function
c68396121
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsAbleToEnterBP
()
...
...
@@ -83,4 +83,3 @@ function c68396121.atkop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e1
)
end
end
c68431965.lua
View file @
b8c0e2b6
...
...
@@ -65,7 +65,7 @@ function c68431965.lvop1(e,tp,eg,ep,ev,re,r,rp)
end
function
c68431965
.
aclimit
(
e
,
re
,
tp
)
local
tc
=
e
:
GetLabelObject
()
return
re
:
GetHandler
():
IsCode
(
tc
:
GetCode
())
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
GetHandler
():
IsCode
(
tc
:
GetCode
())
end
function
c68431965
.
sccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
...
...
c68937720.lua
View file @
b8c0e2b6
...
...
@@ -22,5 +22,5 @@ function c68937720.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c68937720
.
aclimit
(
e
,
re
,
tp
)
local
rc
=
re
:
GetHandler
()
return
rc
:
IsLocation
(
LOCATION_HAND
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
rc
:
IsImmuneToEffect
(
e
)
return
rc
:
IsLocation
(
LOCATION_HAND
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
end
c70917315.lua
View file @
b8c0e2b6
...
...
@@ -50,7 +50,7 @@ function c70917315.limcon(e)
end
function
c70917315
.
limval
(
e
,
re
,
rp
)
local
rc
=
re
:
GetHandler
()
return
re
:
IsActiveType
(
TYPE_SPELL
)
and
not
rc
:
IsSetCard
(
0xe0
)
and
not
rc
:
IsImmuneToEffect
(
e
)
return
re
:
IsActiveType
(
TYPE_SPELL
)
and
not
rc
:
IsSetCard
(
0xe0
)
end
function
c70917315
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
...
...
c7305060.lua
View file @
b8c0e2b6
...
...
@@ -65,5 +65,5 @@ function c7305060.limcon(e)
end
function
c7305060
.
limval
(
e
,
re
,
rp
)
local
rc
=
re
:
GetHandler
()
return
re
:
IsActiveType
(
TYPE_TRAP
)
and
not
rc
:
IsSetCard
(
0xe0
)
and
not
rc
:
IsImmuneToEffect
(
e
)
return
re
:
IsActiveType
(
TYPE_TRAP
)
and
not
rc
:
IsSetCard
(
0xe0
)
end
c73599290.lua
View file @
b8c0e2b6
...
...
@@ -22,5 +22,5 @@ function c73599290.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c73599290
.
aclimit
(
e
,
re
,
tp
)
local
loc
=
re
:
GetActivateLocation
()
return
(
loc
==
LOCATION_GRAVE
or
loc
==
LOCATION_REMOVED
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
(
loc
==
LOCATION_GRAVE
or
loc
==
LOCATION_REMOVED
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
end
c7403341.lua
View file @
b8c0e2b6
...
...
@@ -42,5 +42,5 @@ end
function
c7403341
.
aclimit
(
e
,
re
,
tp
)
local
c
=
re
:
GetHandler
()
local
tc
=
e
:
GetLabelObject
()
return
c
:
IsOriginalCodeRule
(
tc
:
GetOriginalCodeRule
())
and
not
c
:
IsImmuneToEffect
(
e
)
return
c
:
IsOriginalCodeRule
(
tc
:
GetOriginalCodeRule
())
end
c74717840.lua
View file @
b8c0e2b6
...
...
@@ -25,5 +25,5 @@ function c74717840.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c74717840
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
end
c75059201.lua
View file @
b8c0e2b6
...
...
@@ -97,7 +97,7 @@ function c75059201.lvop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c75059201
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
end
function
c75059201
.
actcon
(
e
)
if
not
e
:
GetHandler
():
IsLevelAbove
(
7
)
then
return
false
end
...
...
c78010363.lua
View file @
b8c0e2b6
...
...
@@ -44,5 +44,5 @@ function c78010363.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
c78010363
.
aclimit
(
e
,
re
,
tp
)
local
tc
=
e
:
GetLabelObject
()
return
re
:
GetHandler
():
IsCode
(
tc
:
GetCode
())
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
GetHandler
():
IsCode
(
tc
:
GetCode
())
end
c81055000.lua
View file @
b8c0e2b6
...
...
@@ -51,7 +51,7 @@ function c81055000.thop1(e,tp,eg,ep,ev,re,r,rp)
end
function
c81055000
.
aclimit
(
e
,
re
,
tp
)
local
tc
=
e
:
GetLabelObject
()
return
re
:
GetHandler
():
IsCode
(
tc
:
GetCode
())
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
GetHandler
():
IsCode
(
tc
:
GetCode
())
end
function
c81055000
.
thtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsAbleToHand
()
end
...
...
c81193865.lua
View file @
b8c0e2b6
...
...
@@ -24,7 +24,7 @@ function c81193865.initial_effect(c)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTargetRange
(
0
,
1
)
e3
:
SetCondition
(
c81193865
.
actcon
)
e3
:
SetValue
(
c81193865
.
actlimit
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
--chain attack
local
e4
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -87,9 +87,6 @@ function c81193865.actcon(e)
local
ph
=
Duel
.
GetCurrentPhase
()
return
Duel
.
GetTurnPlayer
()
==
e
:
GetHandler
():
GetControler
()
and
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
end
function
c81193865
.
actlimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c81193865
.
cacon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
():
GetEquipTarget
()
and
Duel
.
GetAttackTarget
()
~=
nil
end
...
...
c81269231.lua
View file @
b8c0e2b6
...
...
@@ -82,7 +82,7 @@ function c81269231.rmop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c81269231
.
aclimit
(
e
,
re
,
tp
)
return
(
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
re
:
IsActiveType
(
TYPE_MONSTER
))
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
re
:
IsActiveType
(
TYPE_MONSTER
)
end
function
c81269231
.
actcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
...
...
c83866861.lua
View file @
b8c0e2b6
...
...
@@ -17,7 +17,7 @@ function c83866861.initial_effect(c)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetValue
(
c83866861
.
aclimit
)
e2
:
SetValue
(
1
)
e2
:
SetCondition
(
c83866861
.
actcon
)
c
:
RegisterEffect
(
e2
)
--special summon
...
...
@@ -39,9 +39,6 @@ function c83866861.initial_effect(c)
e4
:
SetValue
(
c83866861
.
atkval
)
c
:
RegisterEffect
(
e4
)
end
function
c83866861
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c83866861
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
or
Duel
.
GetAttackTarget
()
==
e
:
GetHandler
()
end
...
...
c8529136.lua
View file @
b8c0e2b6
...
...
@@ -35,7 +35,7 @@ function c8529136.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetCondition
(
c8529136
.
actcon
)
e1
:
SetValue
(
c8529136
.
aclimit
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -73,9 +73,6 @@ function c8529136.actcon(e)
return
(
Duel
.
GetAttacker
()
==
c
or
Duel
.
GetAttackTarget
()
==
c
)
and
c
:
GetBattleTarget
()
~=
nil
and
e
:
GetOwnerPlayer
()
==
e
:
GetHandlerPlayer
()
end
function
c8529136
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c8529136
.
effcon
(
e
)
return
e
:
GetOwnerPlayer
()
==
e
:
GetHandlerPlayer
()
end
...
...
c86221741.lua
View file @
b8c0e2b6
...
...
@@ -50,13 +50,10 @@ function c86221741.operation(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetValue
(
c86221741
.
aclimit
)
e2
:
SetValue
(
1
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
function
c86221741
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c86221741
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0xba
)
end
...
...
c88581108.lua
View file @
b8c0e2b6
...
...
@@ -63,7 +63,7 @@ function c88581108.atop(e,tp,eg,ep,ev,re,r,rp)
end
function
c88581108
.
aclimit
(
e
,
re
,
tp
)
local
c
=
re
:
GetHandler
()
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
c
:
IsAttribute
(
e
:
GetLabel
())
and
not
c
:
IsImmuneToEffect
(
e
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
c
:
IsAttribute
(
e
:
GetLabel
())
end
function
c88581108
.
atktarget
(
e
,
c
)
return
c
:
IsAttribute
(
e
:
GetLabel
())
...
...
c92781606.lua
View file @
b8c0e2b6
...
...
@@ -36,7 +36,7 @@ function c92781606.initial_effect(c)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetLabel
(
4
)
e4
:
SetCondition
(
c92781606
.
actcon
)
e4
:
SetValue
(
c92781606
.
actlimit
)
e4
:
SetValue
(
1
)
c
:
RegisterEffect
(
e4
)
--direct attack
local
e5
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -97,6 +97,3 @@ function c92781606.actcon(e)
local
ph
=
Duel
.
GetCurrentPhase
()
return
c92781606
.
effcon
(
e
)
and
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
end
function
c92781606
.
actlimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
c94016752.lua
View file @
b8c0e2b6
...
...
@@ -50,5 +50,5 @@ function c94016752.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c94016752
.
aclimit
(
e
,
re
,
tp
)
return
re
:
GetHandler
():
IsCode
(
e
:
GetLabel
())
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
GetHandler
():
IsCode
(
e
:
GetLabel
())
and
re
:
IsActiveType
(
TYPE_MONSTER
)
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