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
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-scripts
Commits
1ac9d6f0
Commit
1ac9d6f0
authored
Jun 24, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix nagate activation of spell/trap
They should be sent to grave immediately after being negated.
parent
1b983145
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
34 additions
and
1 deletion
+34
-1
c15180041.lua
c15180041.lua
+3
-0
c41175645.lua
c41175645.lua
+3
-0
c46031686.lua
c46031686.lua
+3
-0
c52068432.lua
c52068432.lua
+3
-0
c65240384.lua
c65240384.lua
+3
-0
c66547759.lua
c66547759.lua
+3
-0
c73026394.lua
c73026394.lua
+3
-0
c75487237.lua
c75487237.lua
+3
-0
c7841112.lua
c7841112.lua
+3
-0
c82744076.lua
c82744076.lua
+4
-1
c94919024.lua
c94919024.lua
+3
-0
No files found.
c15180041.lua
View file @
1ac9d6f0
...
@@ -80,6 +80,9 @@ function c15180041.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -80,6 +80,9 @@ function c15180041.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c15180041
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c15180041
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateActivation
(
ev
)
Duel
.
NegateActivation
(
ev
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SendtoGrave
(
eg
,
REASON_RULE
)
end
end
end
function
c15180041
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c15180041
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c41175645.lua
View file @
1ac9d6f0
...
@@ -71,6 +71,9 @@ function c41175645.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -71,6 +71,9 @@ function c41175645.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c41175645
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c41175645
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateActivation
(
ev
)
Duel
.
NegateActivation
(
ev
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SendtoGrave
(
eg
,
REASON_RULE
)
end
end
end
function
c41175645
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c41175645
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c46031686.lua
View file @
1ac9d6f0
...
@@ -21,6 +21,9 @@ function c46031686.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -21,6 +21,9 @@ function c46031686.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c46031686
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c46031686
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateActivation
(
ev
)
Duel
.
NegateActivation
(
ev
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SendtoGrave
(
eg
,
REASON_RULE
)
end
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
1
-
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
1
-
tp
,
1
,
REASON_EFFECT
)
end
end
c52068432.lua
View file @
1ac9d6f0
...
@@ -55,6 +55,9 @@ function c52068432.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -55,6 +55,9 @@ function c52068432.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c52068432
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c52068432
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateActivation
(
ev
)
Duel
.
NegateActivation
(
ev
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SendtoGrave
(
eg
,
REASON_RULE
)
end
end
end
function
c52068432
.
remcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c52068432
.
remcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_RITUAL
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_RITUAL
...
...
c65240384.lua
View file @
1ac9d6f0
...
@@ -32,5 +32,8 @@ end
...
@@ -32,5 +32,8 @@ end
function
c65240384
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65240384
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEUP_DEFENSE
)
then
if
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEUP_DEFENSE
)
then
Duel
.
NegateActivation
(
ev
)
Duel
.
NegateActivation
(
ev
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SendtoGrave
(
eg
,
REASON_RULE
)
end
end
end
end
end
c66547759.lua
View file @
1ac9d6f0
...
@@ -70,4 +70,7 @@ function c66547759.distg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -70,4 +70,7 @@ function c66547759.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c66547759
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c66547759
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateActivation
(
ev
)
Duel
.
NegateActivation
(
ev
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SendtoGrave
(
eg
,
REASON_RULE
)
end
end
end
c73026394.lua
View file @
1ac9d6f0
...
@@ -24,6 +24,9 @@ function c73026394.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -24,6 +24,9 @@ function c73026394.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c73026394
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c73026394
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateActivation
(
ev
)
Duel
.
NegateActivation
(
ev
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SendtoGrave
(
eg
,
REASON_RULE
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c73026394
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
):
RandomSelect
(
tp
,
1
)
local
g
=
Duel
.
GetMatchingGroup
(
c73026394
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
nil
):
RandomSelect
(
tp
,
1
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
end
c75487237.lua
View file @
1ac9d6f0
...
@@ -40,5 +40,8 @@ function c75487237.negcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,5 +40,8 @@ function c75487237.negcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c75487237
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75487237
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateActivation
(
ev
)
Duel
.
NegateActivation
(
ev
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SendtoGrave
(
eg
,
REASON_RULE
)
end
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEUP_DEFENSE
)
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEUP_DEFENSE
)
end
end
c7841112.lua
View file @
1ac9d6f0
...
@@ -131,6 +131,9 @@ function c7841112.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -131,6 +131,9 @@ function c7841112.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c7841112
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c7841112
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateActivation
(
ev
)
Duel
.
NegateActivation
(
ev
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SendtoGrave
(
eg
,
REASON_RULE
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
...
...
c82744076.lua
View file @
1ac9d6f0
...
@@ -27,7 +27,7 @@ function c82744076.initial_effect(c)
...
@@ -27,7 +27,7 @@ function c82744076.initial_effect(c)
Duel
.
AddCustomActivityCounter
(
82744076
,
ACTIVITY_ATTACK
,
c82744076
.
counterfilter
)
Duel
.
AddCustomActivityCounter
(
82744076
,
ACTIVITY_ATTACK
,
c82744076
.
counterfilter
)
end
end
function
c82744076
.
counterfilter
(
c
)
function
c82744076
.
counterfilter
(
c
)
return
c
:
IsType
(
TYPE_SYNCHRO
)
return
c
:
IsType
(
TYPE_SYNCHRO
)
end
end
function
c82744076
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c82744076
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
82744076
,
tp
,
ACTIVITY_ATTACK
)
==
0
end
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
82744076
,
tp
,
ACTIVITY_ATTACK
)
==
0
end
...
@@ -85,4 +85,7 @@ function c82744076.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -85,4 +85,7 @@ function c82744076.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c82744076
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c82744076
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateActivation
(
ev
)
Duel
.
NegateActivation
(
ev
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SendtoGrave
(
eg
,
REASON_RULE
)
end
end
end
c94919024.lua
View file @
1ac9d6f0
...
@@ -65,6 +65,9 @@ function c94919024.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -65,6 +65,9 @@ function c94919024.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c94919024
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94919024
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
then
if
Duel
.
NegateActivation
(
ev
)
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SendtoGrave
(
eg
,
REASON_RULE
)
end
Duel
.
Recover
(
tp
,
1000
,
REASON_EFFECT
)
Duel
.
Recover
(
tp
,
1000
,
REASON_EFFECT
)
Duel
.
Recover
(
1
-
tp
,
1000
,
REASON_EFFECT
)
Duel
.
Recover
(
1
-
tp
,
1000
,
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