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
434e4388
Commit
434e4388
authored
May 23, 2022
by
mercury233
Committed by
GitHub
May 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Duel.NegateEffect (#1882)
parent
15e2844b
Changes
35
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
50 additions
and
49 deletions
+50
-49
c11067666.lua
c11067666.lua
+2
-1
c13758665.lua
c13758665.lua
+1
-1
c19302550.lua
c19302550.lua
+2
-1
c1953925.lua
c1953925.lua
+1
-1
c19596712.lua
c19596712.lua
+1
-1
c26964762.lua
c26964762.lua
+1
-1
c29616929.lua
c29616929.lua
+2
-5
c32134638.lua
c32134638.lua
+2
-1
c35798491.lua
c35798491.lua
+1
-1
c35975813.lua
c35975813.lua
+1
-1
c368382.lua
c368382.lua
+2
-1
c38742075.lua
c38742075.lua
+1
-1
c38988538.lua
c38988538.lua
+2
-1
c42868711.lua
c42868711.lua
+1
-1
c44155002.lua
c44155002.lua
+1
-1
c46796664.lua
c46796664.lua
+2
-1
c47355498.lua
c47355498.lua
+1
-1
c49681811.lua
c49681811.lua
+1
-1
c49868263.lua
c49868263.lua
+1
-1
c54828837.lua
c54828837.lua
+5
-3
c58120309.lua
c58120309.lua
+5
-8
c58374502.lua
c58374502.lua
+1
-2
c61370518.lua
c61370518.lua
+1
-1
c62892347.lua
c62892347.lua
+1
-1
c70676581.lua
c70676581.lua
+1
-1
c72192100.lua
c72192100.lua
+1
-1
c72932673.lua
c72932673.lua
+1
-1
c73219648.lua
c73219648.lua
+1
-1
c83743222.lua
c83743222.lua
+1
-1
c8581705.lua
c8581705.lua
+1
-1
c87769556.lua
c87769556.lua
+1
-1
c90464188.lua
c90464188.lua
+1
-1
c94568601.lua
c94568601.lua
+1
-1
c95515060.lua
c95515060.lua
+1
-1
c9603356.lua
c9603356.lua
+1
-1
No files found.
c11067666.lua
View file @
434e4388
...
...
@@ -24,7 +24,8 @@ end
function
c11067666
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
e
:
GetHandler
():
GetFlagEffect
(
11067666
)
==
0
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
and
g
and
g
:
IsExists
(
c11067666
.
cfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
and
g
and
g
:
IsExists
(
c11067666
.
cfilter
,
1
,
nil
,
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
and
not
Duel
.
IsChainDisabled
(
ev
)
end
function
c11067666
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
())
then
...
...
c13758665.lua
View file @
434e4388
...
...
@@ -25,7 +25,7 @@ end
function
c13758665
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
13758665
)
local
rc
=
re
:
GetHandler
()
if
Duel
.
NegateEffect
(
ev
)
and
rc
:
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
rc
:
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
rc
,
REASON_EFFECT
)
end
end
c19302550.lua
View file @
434e4388
...
...
@@ -36,7 +36,8 @@ function c19302550.splimit(e,c,sump,sumtype,sumpos,targetp)
return
not
c
:
IsSetCard
(
0xaf
)
and
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
end
function
c19302550
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsChainDisablable
(
ev
)
and
re
:
IsActiveType
(
TYPE_TRAP
)
and
aux
.
damcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
e
:
GetHandler
():
GetFlagEffect
(
19302550
)
==
0
return
Duel
.
IsChainDisablable
(
ev
)
and
not
Duel
.
IsChainDisabled
(
ev
)
and
re
:
IsActiveType
(
TYPE_TRAP
)
and
aux
.
damcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
e
:
GetHandler
():
GetFlagEffect
(
19302550
)
==
0
end
function
c19302550
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
())
then
return
end
...
...
c1953925.lua
View file @
434e4388
...
...
@@ -50,7 +50,7 @@ function c1953925.disop(e,tp,eg,ep,ev,re,r,rp)
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
g
and
g
:
IsContains
(
e
:
GetHandler
())
then
if
Duel
.
NegateEffect
(
ev
)
and
rc
:
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
rc
:
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
rc
,
REASON_EFFECT
)
end
end
...
...
c19596712.lua
View file @
434e4388
...
...
@@ -55,7 +55,7 @@ function c19596712.negcon(e,tp,eg,ep,ev,re,r,rp)
and
re
:
IsActiveType
(
TYPE_TRAP
)
and
Duel
.
IsChainDisablable
(
ev
)
end
function
c19596712
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateEffect
(
ev
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
then
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
end
c26964762.lua
View file @
434e4388
...
...
@@ -59,7 +59,7 @@ end
function
c26964762
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
rp
==
tp
and
re
:
IsActiveType
(
TYPE_SPELL
)
then
local
rc
=
re
:
GetHandler
()
if
Duel
.
NegateEffect
(
ev
)
and
rc
:
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
rc
:
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
rc
,
REASON_EFFECT
)
end
end
...
...
c29616929.lua
View file @
434e4388
...
...
@@ -23,10 +23,7 @@ function c29616929.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c29616929
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
re
:
GetHandler
()
if
not
tc
:
IsDisabled
()
then
if
Duel
.
NegateEffect
(
ev
)
and
tc
:
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
end
c32134638.lua
View file @
434e4388
...
...
@@ -28,7 +28,8 @@ end
function
c32134638
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
e
:
GetHandler
():
GetFlagEffect
(
32134638
)
==
0
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
and
g
and
g
:
IsExists
(
c32134638
.
tfilter
,
1
,
e
:
GetHandler
(),
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
and
g
and
g
:
IsExists
(
c32134638
.
tfilter
,
1
,
e
:
GetHandler
(),
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
and
not
Duel
.
IsChainDisabled
(
ev
)
end
function
c32134638
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
())
then
...
...
c35798491.lua
View file @
434e4388
...
...
@@ -43,7 +43,7 @@ function c35798491.disop(e,tp,eg,ep,ev,re,r,rp)
local
rc
=
re
:
GetHandler
()
local
dc
=
Duel
.
TossDice
(
tp
,
1
)
if
dc
==
1
or
dc
==
3
or
dc
==
6
then
if
Duel
.
NegateEffect
(
ev
)
and
rc
:
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
rc
:
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
rc
,
REASON_EFFECT
)
end
end
...
...
c35975813.lua
View file @
434e4388
...
...
@@ -62,7 +62,7 @@ function c35975813.disop(e,tp,eg,ep,ev,re,r,rp)
local
rc
=
re
:
GetHandler
()
local
dc
=
Duel
.
TossDice
(
tp
,
1
)
if
dc
~=
2
and
dc
~=
5
then
return
end
if
Duel
.
NegateEffect
(
ev
)
and
rc
:
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
rc
:
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
rc
,
REASON_EFFECT
)
end
end
...
...
c368382.lua
View file @
434e4388
...
...
@@ -26,7 +26,8 @@ end
function
c368382
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
e
:
GetHandler
():
GetFlagEffect
(
368382
)
==
0
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
and
g
and
g
:
IsExists
(
c368382
.
tfilter
,
1
,
e
:
GetHandler
(),
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
and
g
and
g
:
IsExists
(
c368382
.
tfilter
,
1
,
e
:
GetHandler
(),
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
and
not
Duel
.
IsChainDisabled
(
ev
)
end
function
c368382
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
())
then
...
...
c38742075.lua
View file @
434e4388
...
...
@@ -36,7 +36,7 @@ function c38742075.disop(e,tp,eg,ep,ev,re,r,rp)
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
not
g
or
not
g
:
IsExists
(
c38742075
.
cfilter
,
1
,
nil
,
tp
)
then
return
end
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
re
:
GetHandler
(),
REASON_EFFECT
)
end
end
c38988538.lua
View file @
434e4388
...
...
@@ -29,7 +29,8 @@ end
function
c38988538
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
e
:
GetHandler
():
GetFlagEffect
(
38988538
)
==
0
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
and
g
and
g
:
IsExists
(
c38988538
.
tfilter
,
1
,
e
:
GetHandler
(),
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
and
g
and
g
:
IsExists
(
c38988538
.
tfilter
,
1
,
e
:
GetHandler
(),
tp
)
and
Duel
.
IsChainDisablable
(
ev
)
and
not
Duel
.
IsChainDisabled
(
ev
)
end
function
c38988538
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
())
then
...
...
c42868711.lua
View file @
434e4388
...
...
@@ -33,7 +33,7 @@ function c42868711.disop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
not
g
or
g
:
GetCount
()
==
0
then
return
end
if
g
:
IsContains
(
e
:
GetHandler
())
then
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
re
:
GetHandler
(),
REASON_EFFECT
)
end
end
...
...
c44155002.lua
View file @
434e4388
...
...
@@ -14,7 +14,7 @@ end
function
c44155002
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
ep
==
tp
or
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
~=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
then
return
end
local
rc
=
re
:
GetHandler
()
if
Duel
.
NegateEffect
(
ev
)
and
rc
:
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
rc
:
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
rc
,
REASON_EFFECT
)
end
end
c46796664.lua
View file @
434e4388
...
...
@@ -38,7 +38,8 @@ function c46796664.splimit(e,c,sump,sumtype,sumpos,targetp)
return
not
c
:
IsSetCard
(
0xaf
)
and
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
end
function
c46796664
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsChainNegatable
(
ev
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
aux
.
damcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
e
:
GetHandler
():
GetFlagEffect
(
46796664
)
==
0
return
Duel
.
IsChainNegatable
(
ev
)
and
not
Duel
.
IsChainDisabled
(
ev
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
aux
.
damcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
e
:
GetHandler
():
GetFlagEffect
(
46796664
)
==
0
end
function
c46796664
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
())
then
return
end
...
...
c47355498.lua
View file @
434e4388
...
...
@@ -97,5 +97,5 @@ function c47355498.disop(e,tp,eg,ep,ev,re,r,rp)
if
not
res
and
c47355498
.
discheck
(
ev
,
CATEGORY_TOEXTRA
,
re
,
im0
,
im1
)
then
res
=
true
end
if
not
res
and
c47355498
.
discheck
(
ev
,
CATEGORY_LEAVE_GRAVE
,
re
,
im0
,
im1
)
then
res
=
true
end
if
not
res
and
c47355498
.
discheck
(
ev
,
CATEGORY_REMOVE
,
re
,
im0
,
im1
)
then
res
=
true
end
if
res
then
Duel
.
NegateEffect
(
ev
)
end
if
res
then
Duel
.
NegateEffect
(
ev
,
true
)
end
end
c49681811.lua
View file @
434e4388
...
...
@@ -45,7 +45,7 @@ function c49681811.disop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
not
g
or
g
:
GetCount
()
==
0
then
return
end
if
g
:
IsContains
(
e
:
GetHandler
())
then
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
re
:
GetHandler
(),
REASON_EFFECT
)
end
end
...
...
c49868263.lua
View file @
434e4388
...
...
@@ -59,7 +59,7 @@ function c49868263.disop2(e,tp,eg,ep,ev,re,r,rp)
if
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
g
and
g
:
IsContains
(
e
:
GetHandler
())
then
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
re
:
GetHandler
(),
REASON_EFFECT
)
end
end
...
...
c54828837.lua
View file @
434e4388
...
...
@@ -38,12 +38,14 @@ function c54828837.cfilter(c)
end
function
c54828837
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c54828837
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
rp
==
1
-
tp
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
Duel
.
IsChainDisablable
(
ev
)
and
rp
==
1
-
tp
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
Duel
.
IsChainDisablable
(
ev
)
and
not
Duel
.
IsChainDisabled
(
ev
)
and
e
:
GetHandler
():
GetFlagEffect
(
54828837
)
<=
0
end
function
c54828837
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
if
Duel
.
Select
YesNo
(
tp
,
aux
.
Stringid
(
54828837
,
0
)
)
then
if
Duel
.
Select
EffectYesNo
(
tp
,
c
)
then
Duel
.
Hint
(
HINT_CARD
,
0
,
54828837
)
if
Duel
.
NegateEffect
(
ev
)
and
Duel
.
IsExistingMatchingCard
(
c54828837
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
then
Duel
.
BreakEffect
()
...
...
@@ -52,7 +54,7 @@ function c54828837.negop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
HintSelection
(
g
)
Duel
.
ChangePosition
(
g
:
GetFirst
(),
POS_FACEUP_DEFENSE
)
end
e
:
GetHandler
()
:
RegisterFlagEffect
(
54828837
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
c
:
RegisterFlagEffect
(
54828837
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c54828837
.
protfilter
(
c
,
tp
)
...
...
c58120309.lua
View file @
434e4388
...
...
@@ -30,14 +30,11 @@ function c58120309.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c58120309
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
re
:
GetHandler
()
if
not
tc
:
IsDisabled
()
then
if
Duel
.
NegateEffect
(
ev
)
and
tc
:
IsRelateToEffect
(
re
)
and
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
~=
0
then
local
sc
=
Duel
.
GetFirstMatchingCard
(
c58120309
.
sfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
)
if
sc
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
58120309
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
~=
0
then
local
sc
=
Duel
.
GetFirstMatchingCard
(
c58120309
.
sfilter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
e
,
tp
)
if
sc
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
58120309
,
0
))
then
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
sc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
c58374502.lua
View file @
434e4388
...
...
@@ -34,8 +34,7 @@ function c58374502.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c58374502
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
re
:
GetHandler
()
if
not
tc
:
IsDisabled
()
and
Duel
.
NegateEffect
(
ev
)
and
tc
:
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
end
c61370518.lua
View file @
434e4388
...
...
@@ -40,7 +40,7 @@ function c61370518.disop(e,tp,eg,ep,ev,re,r,rp)
local
rc
=
re
:
GetHandler
()
local
dc
=
Duel
.
TossDice
(
tp
,
1
)
if
dc
==
1
or
dc
==
3
or
dc
==
6
then
if
Duel
.
NegateEffect
(
ev
)
and
rc
:
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
rc
:
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
rc
,
REASON_EFFECT
)
end
end
...
...
c62892347.lua
View file @
434e4388
...
...
@@ -89,7 +89,7 @@ function c62892347.disop(e,tp,eg,ep,ev,re,r,rp)
if
(
val
==
1
and
rp
==
1
-
ec
:
GetControler
())
or
(
val
==
0
and
rp
==
ec
:
GetControler
())
then
return
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
not
g
or
not
g
:
IsContains
(
ec
)
then
return
end
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
re
:
GetHandler
(),
REASON_EFFECT
)
end
end
c70676581.lua
View file @
434e4388
...
...
@@ -54,7 +54,7 @@ function c70676581.disop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
not
g
or
g
:
GetCount
()
==
0
then
return
end
if
g
:
IsExists
(
c70676581
.
disfilter
,
1
,
nil
,
tp
)
then
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
re
:
GetHandler
(),
REASON_EFFECT
)
end
end
...
...
c72192100.lua
View file @
434e4388
...
...
@@ -52,7 +52,7 @@ function c72192100.disop(e,tp,eg,ep,ev,re,r,rp)
local
rc
=
re
:
GetHandler
()
local
dc
=
Duel
.
TossDice
(
tp
,
1
)
if
dc
~=
3
then
return
end
if
Duel
.
NegateEffect
(
ev
)
and
rc
:
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
rc
:
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
rc
,
REASON_EFFECT
)
end
end
...
...
c72932673.lua
View file @
434e4388
...
...
@@ -56,7 +56,7 @@ function c72932673.negcon(e,tp,eg,ep,ev,re,r,rp)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
Duel
.
IsChainDisablable
(
ev
)
end
function
c72932673
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateEffect
(
ev
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
then
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
end
c73219648.lua
View file @
434e4388
...
...
@@ -48,7 +48,7 @@ function c73219648.disop(e,tp,eg,ep,ev,re,r,rp)
local
rc
=
re
:
GetHandler
()
local
dc
=
Duel
.
TossDice
(
tp
,
1
)
if
dc
~=
3
then
return
end
if
Duel
.
NegateEffect
(
ev
)
and
rc
:
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
rc
:
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
rc
,
REASON_EFFECT
)
end
end
...
...
c83743222.lua
View file @
434e4388
...
...
@@ -62,7 +62,7 @@ function c83743222.negcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c83743222
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
Duel
.
NegateEffect
(
ev
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_EQUIP
)
e1
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
...
...
c8581705.lua
View file @
434e4388
...
...
@@ -51,7 +51,7 @@ function c8581705.disop(e,tp,eg,ep,ev,re,r,rp)
local
rc
=
re
:
GetHandler
()
local
dc
=
Duel
.
TossDice
(
tp
,
1
)
if
dc
~=
2
and
dc
~=
5
then
return
end
if
Duel
.
NegateEffect
(
ev
)
and
rc
:
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
rc
:
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
rc
,
REASON_EFFECT
)
end
end
...
...
c87769556.lua
View file @
434e4388
...
...
@@ -25,7 +25,7 @@ end
function
c87769556
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
87769556
)
local
rc
=
re
:
GetHandler
()
if
Duel
.
NegateEffect
(
ev
)
and
rc
:
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
rc
:
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
rc
,
REASON_EFFECT
)
end
end
c90464188.lua
View file @
434e4388
...
...
@@ -37,7 +37,7 @@ function c90464188.disop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
not
g
or
g
:
GetCount
()
==
0
then
return
end
if
g
:
IsExists
(
c90464188
.
disfilter
,
1
,
nil
,
tp
)
then
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
re
:
GetHandler
(),
REASON_EFFECT
)
end
end
...
...
c94568601.lua
View file @
434e4388
...
...
@@ -51,7 +51,7 @@ function c94568601.disop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
not
g
or
g
:
GetCount
()
==
0
then
return
end
if
g
:
IsContains
(
e
:
GetHandler
())
then
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
re
:
GetHandler
(),
REASON_EFFECT
)
end
end
...
...
c95515060.lua
View file @
434e4388
...
...
@@ -70,7 +70,7 @@ function c95515060.disop(e,tp,eg,ep,ev,re,r,rp)
if
not
ec
:
GetEquipTarget
()
or
not
re
:
IsActiveType
(
TYPE_SPELL
)
or
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
not
g
or
not
g
:
IsContains
(
ec
:
GetEquipTarget
())
then
return
end
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
re
:
GetHandler
(),
REASON_EFFECT
)
end
end
c9603356.lua
View file @
434e4388
...
...
@@ -46,7 +46,7 @@ function c9603356.disop(e,tp,eg,ep,ev,re,r,rp)
local
rc
=
re
:
GetHandler
()
local
dc
=
Duel
.
TossDice
(
tp
,
1
)
if
dc
~=
3
then
return
end
if
Duel
.
NegateEffect
(
ev
)
and
rc
:
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
rc
:
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
rc
,
REASON_EFFECT
)
end
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