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
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
Vee4
ygopro-scripts-888
Commits
91919b5a
Commit
91919b5a
authored
Sep 06, 2022
by
mercury233
Committed by
GitHub
Sep 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use Card.IsCanBeDisabledByEffect (#1959)
parent
b692b362
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
22 additions
and
22 deletions
+22
-22
c10045474.lua
c10045474.lua
+1
-1
c1005587.lua
c1005587.lua
+1
-1
c10497636.lua
c10497636.lua
+1
-1
c15130912.lua
c15130912.lua
+1
-1
c19489718.lua
c19489718.lua
+1
-1
c30430448.lua
c30430448.lua
+1
-1
c32349062.lua
c32349062.lua
+1
-1
c35334193.lua
c35334193.lua
+1
-1
c36114945.lua
c36114945.lua
+1
-1
c38904695.lua
c38904695.lua
+1
-1
c43685562.lua
c43685562.lua
+1
-1
c52945066.lua
c52945066.lua
+1
-1
c5795980.lua
c5795980.lua
+1
-1
c63265554.lua
c63265554.lua
+1
-1
c65384188.lua
c65384188.lua
+2
-2
c68159562.lua
c68159562.lua
+1
-1
c74920585.lua
c74920585.lua
+1
-1
c82257671.lua
c82257671.lua
+1
-1
c91706817.lua
c91706817.lua
+1
-1
c93655221.lua
c93655221.lua
+1
-1
c98338152.lua
c98338152.lua
+1
-1
No files found.
c10045474.lua
View file @
91919b5a
...
@@ -26,7 +26,7 @@ end
...
@@ -26,7 +26,7 @@ end
function
c10045474
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10045474
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsDisabled
()
and
not
tc
:
IsImmuneTo
Effect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanBeDisabledBy
Effect
(
e
)
then
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
)
...
...
c1005587.lua
View file @
91919b5a
...
@@ -30,7 +30,7 @@ function c1005587.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,7 +30,7 @@ function c1005587.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
end
end
if
not
tc
:
IsDisabled
(
)
then
if
tc
:
IsCanBeDisabledByEffect
(
e
)
then
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_DISABLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
...
...
c10497636.lua
View file @
91919b5a
...
@@ -68,7 +68,7 @@ end
...
@@ -68,7 +68,7 @@ end
function
c10497636
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10497636
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
ac
=
e
:
GetLabelObject
()
local
ac
=
e
:
GetLabelObject
()
if
ac
:
IsFaceup
()
and
ac
:
IsRelateToBattle
()
and
not
ac
:
IsDisabled
()
and
not
ac
:
IsImmuneTo
Effect
(
e
)
and
ac
:
IsControler
(
1
-
tp
)
then
if
ac
:
IsFaceup
()
and
ac
:
IsRelateToBattle
()
and
ac
:
IsCanBeDisabledBy
Effect
(
e
)
and
ac
:
IsControler
(
1
-
tp
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
...
...
c15130912.lua
View file @
91919b5a
...
@@ -78,7 +78,7 @@ function c15130912.coinop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -78,7 +78,7 @@ function c15130912.coinop1(e,tp,eg,ep,ev,re,r,rp)
if
not
(
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
))
then
return
end
if
not
(
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
))
then
return
end
local
coin
=
Duel
.
TossCoin
(
tp
,
1
)
local
coin
=
Duel
.
TossCoin
(
tp
,
1
)
if
coin
==
1
then
if
coin
==
1
then
if
not
tc
:
IsDisabled
()
and
not
tc
:
IsImmuneTo
Effect
(
e
)
then
if
tc
:
IsCanBeDisabledBy
Effect
(
e
)
then
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c19489718.lua
View file @
91919b5a
...
@@ -78,7 +78,7 @@ function c19489718.disop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -78,7 +78,7 @@ function c19489718.disop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
MoveSequence
(
mg
:
GetFirst
(),
SEQ_DECKBOTTOM
)
Duel
.
MoveSequence
(
mg
:
GetFirst
(),
SEQ_DECKBOTTOM
)
end
end
if
tc
and
tc
:
IsRelateToBattle
()
and
tc
:
IsControler
(
1
-
tp
)
if
tc
and
tc
:
IsRelateToBattle
()
and
tc
:
IsControler
(
1
-
tp
)
and
not
tc
:
IsDisabled
()
and
not
tc
:
IsImmuneTo
Effect
(
e
)
then
and
tc
:
IsCanBeDisabledBy
Effect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
...
...
c30430448.lua
View file @
91919b5a
...
@@ -35,7 +35,7 @@ end
...
@@ -35,7 +35,7 @@ end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsDisabled
()
and
not
tc
:
IsImmuneTo
Effect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanBeDisabledBy
Effect
(
e
)
then
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
)
...
...
c32349062.lua
View file @
91919b5a
...
@@ -40,7 +40,7 @@ end
...
@@ -40,7 +40,7 @@ end
function
c32349062
.
disop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c32349062
.
disop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
c
:
IsDisabled
(
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsCanBeDisabledByEffect
(
e
)
then
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
)
...
...
c35334193.lua
View file @
91919b5a
...
@@ -52,7 +52,7 @@ end
...
@@ -52,7 +52,7 @@ end
function
c35334193
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c35334193
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsDisabled
(
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanBeDisabledByEffect
(
e
)
then
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
)
...
...
c36114945.lua
View file @
91919b5a
...
@@ -37,7 +37,7 @@ end
...
@@ -37,7 +37,7 @@ end
function
c36114945
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c36114945
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsDisabled
()
and
not
tc
:
IsImmuneTo
Effect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanBeDisabledBy
Effect
(
e
)
then
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
)
...
...
c38904695.lua
View file @
91919b5a
...
@@ -40,7 +40,7 @@ end
...
@@ -40,7 +40,7 @@ end
function
c38904695
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c38904695
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
tc
:
IsDisabled
(
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsCanBeDisabledByEffect
(
e
)
then
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
)
...
...
c43685562.lua
View file @
91919b5a
...
@@ -25,7 +25,7 @@ end
...
@@ -25,7 +25,7 @@ end
function
c43685562
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c43685562
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsDisabled
()
and
not
tc
:
IsImmuneTo
Effect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanBeDisabledBy
Effect
(
e
)
then
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
)
...
...
c52945066.lua
View file @
91919b5a
...
@@ -36,7 +36,7 @@ end
...
@@ -36,7 +36,7 @@ end
function
c52945066
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c52945066
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
tc
:
IsDisabled
()
and
not
tc
:
IsImmuneTo
Effect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsCanBeDisabledBy
Effect
(
e
)
then
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
)
...
...
c5795980.lua
View file @
91919b5a
...
@@ -57,7 +57,7 @@ end
...
@@ -57,7 +57,7 @@ end
function
c5795980
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c5795980
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
((
tc
:
IsFaceup
()
and
not
tc
:
IsDisabled
(
))
or
tc
:
IsType
(
TYPE_TRAPMONSTER
))
then
if
tc
:
IsRelateToEffect
(
e
)
and
((
tc
:
IsFaceup
()
and
tc
:
IsCanBeDisabledByEffect
(
e
))
or
tc
:
IsType
(
TYPE_TRAPMONSTER
))
then
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
)
...
...
c63265554.lua
View file @
91919b5a
...
@@ -92,7 +92,7 @@ function c63265554.pnop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -92,7 +92,7 @@ function c63265554.pnop(e,tp,eg,ep,ev,re,r,rp)
if
op
==
0
then
if
op
==
0
then
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
)
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
)
elseif
op
==
1
then
elseif
op
==
1
then
if
not
tc
:
IsDisabled
()
and
not
tc
:
IsImmuneTo
Effect
(
e
)
then
if
tc
:
IsCanBeDisabledBy
Effect
(
e
)
then
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
Duel
.
NegateRelatedChain
(
tc
,
RESET_TURN_SET
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c65384188.lua
View file @
91919b5a
...
@@ -34,12 +34,12 @@ function c65384188.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,12 +34,12 @@ function c65384188.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
if
not
tc1
:
IsDisabled
(
)
then
if
tc1
:
IsCanBeDisabledByEffect
(
e
)
then
tc1
:
RegisterEffect
(
e1
)
tc1
:
RegisterEffect
(
e1
)
tc1
:
RegisterEffect
(
e2
)
tc1
:
RegisterEffect
(
e2
)
a
=
a
+
1
a
=
a
+
1
end
end
if
not
tc2
:
IsDisabled
(
)
then
if
tc2
:
IsCanBeDisabledByEffect
(
e
)
then
local
e3
=
e1
:
Clone
()
local
e3
=
e1
:
Clone
()
local
e4
=
e2
:
Clone
()
local
e4
=
e2
:
Clone
()
tc2
:
RegisterEffect
(
e3
)
tc2
:
RegisterEffect
(
e3
)
...
...
c68159562.lua
View file @
91919b5a
...
@@ -49,7 +49,7 @@ function c68159562.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,7 +49,7 @@ function c68159562.activate(e,tp,eg,ep,ev,re,r,rp)
local
lc
=
tg
:
GetFirst
()
local
lc
=
tg
:
GetFirst
()
if
lc
==
tc
then
lc
=
tg
:
GetNext
()
end
if
lc
==
tc
then
lc
=
tg
:
GetNext
()
end
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsControler
(
1
-
tp
)
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsControler
(
1
-
tp
)
and
not
tc
:
IsDisabled
()
and
not
tc
:
IsImmuneTo
Effect
(
e
)
then
and
tc
:
IsCanBeDisabledBy
Effect
(
e
)
then
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
)
...
...
c74920585.lua
View file @
91919b5a
...
@@ -48,7 +48,7 @@ end
...
@@ -48,7 +48,7 @@ end
function
c74920585
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c74920585
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsDisabled
()
and
not
tc
:
IsImmuneTo
Effect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanBeDisabledBy
Effect
(
e
)
then
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
)
...
...
c82257671.lua
View file @
91919b5a
...
@@ -47,7 +47,7 @@ end
...
@@ -47,7 +47,7 @@ end
function
c82257671
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c82257671
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsDisabled
()
and
not
tc
:
IsImmuneTo
Effect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanBeDisabledBy
Effect
(
e
)
then
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
)
...
...
c91706817.lua
View file @
91919b5a
...
@@ -50,7 +50,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -50,7 +50,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local
dam
=
Duel
.
GetFieldGroupCount
(
p
,
0
,
LOCATION_HAND
)
*
200
local
dam
=
Duel
.
GetFieldGroupCount
(
p
,
0
,
LOCATION_HAND
)
*
200
if
dam
==
0
or
Duel
.
Damage
(
1
-
p
,
dam
,
REASON_EFFECT
)
==
0
then
return
end
if
dam
==
0
or
Duel
.
Damage
(
1
-
p
,
dam
,
REASON_EFFECT
)
==
0
then
return
end
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
if
tc
:
IsFaceup
()
and
not
tc
:
IsDisabled
()
and
not
tc
:
IsImmuneTo
Effect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsCanBeDisabledBy
Effect
(
e
)
then
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
)
...
...
c93655221.lua
View file @
91919b5a
...
@@ -69,7 +69,7 @@ function c93655221.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,7 +69,7 @@ function c93655221.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
if
tc
==
hc
then
tc
=
g
:
GetNext
()
end
if
tc
==
hc
then
tc
=
g
:
GetNext
()
end
if
hc
:
IsFaceup
()
and
hc
:
IsRelateToEffect
(
e
)
and
hc
:
IsType
(
TYPE_MONSTER
)
and
not
hc
:
IsDisabled
(
)
and
hc
:
IsControler
(
1
-
tp
)
then
if
hc
:
IsFaceup
()
and
hc
:
IsRelateToEffect
(
e
)
and
hc
:
IsType
(
TYPE_MONSTER
)
and
hc
:
IsCanBeDisabledByEffect
(
e
)
and
hc
:
IsControler
(
1
-
tp
)
then
Duel
.
NegateRelatedChain
(
hc
,
RESET_TURN_SET
)
Duel
.
NegateRelatedChain
(
hc
,
RESET_TURN_SET
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c98338152.lua
View file @
91919b5a
...
@@ -29,7 +29,7 @@ end
...
@@ -29,7 +29,7 @@ end
function
c98338152
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c98338152
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsDisabled
(
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanBeDisabledByEffect
(
e
)
then
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
)
...
...
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