Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
Commits
dcecf199
Commit
dcecf199
authored
Feb 04, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1084 from sidschingis/patch-1
fix chaining
parents
9772ed38
aa860c23
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
script/c48276469.lua
script/c48276469.lua
+6
-1
script/c84970821.lua
script/c84970821.lua
+6
-1
script/c94256039.lua
script/c94256039.lua
+5
-1
No files found.
script/c48276469.lua
View file @
dcecf199
...
@@ -5,6 +5,7 @@ function c48276469.initial_effect(c)
...
@@ -5,6 +5,7 @@ function c48276469.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_DRAW_PHASE
)
e1
:
SetHintTiming
(
0
,
TIMING_DRAW_PHASE
)
e1
:
SetOperation
(
c48276469
.
regop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--damage
--damage
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -14,9 +15,13 @@ function c48276469.initial_effect(c)
...
@@ -14,9 +15,13 @@ function c48276469.initial_effect(c)
e2
:
SetOperation
(
c48276469
.
damop
)
e2
:
SetOperation
(
c48276469
.
damop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c48276469
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RegisterFlagEffect
(
48276469
,
RESET_CHAIN
,
0
,
1
)
end
function
c48276469
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c48276469
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
re
:
GetHandler
()
local
c
=
re
:
GetHandler
()
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_TRAP
)
and
c
~=
e
:
GetHandler
()
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_TRAP
)
and
c
~=
e
:
GetHandler
()
and
e
:
GetHandler
():
GetFlagEffect
(
48276469
)
==
0
then
Duel
.
Damage
(
rp
,
1000
,
REASON_EFFECT
)
Duel
.
Damage
(
rp
,
1000
,
REASON_EFFECT
)
end
end
end
end
script/c84970821.lua
View file @
dcecf199
...
@@ -5,6 +5,7 @@ function c84970821.initial_effect(c)
...
@@ -5,6 +5,7 @@ function c84970821.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_DRAW_PHASE
)
e1
:
SetHintTiming
(
0
,
TIMING_DRAW_PHASE
)
e1
:
SetOperation
(
c84970821
.
regop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--damage
--damage
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -14,9 +15,13 @@ function c84970821.initial_effect(c)
...
@@ -14,9 +15,13 @@ function c84970821.initial_effect(c)
e2
:
SetOperation
(
c84970821
.
damop
)
e2
:
SetOperation
(
c84970821
.
damop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c84970821
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RegisterFlagEffect
(
84970821
,
RESET_CHAIN
,
0
,
1
)
end
function
c84970821
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c84970821
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
re
:
GetHandler
()
local
c
=
re
:
GetHandler
()
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
c
~=
e
:
GetHandler
()
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
c
~=
e
:
GetHandler
()
and
e
:
GetHandler
():
GetFlagEffect
(
84970821
)
==
0
then
Duel
.
Damage
(
rp
,
1000
,
REASON_EFFECT
)
Duel
.
Damage
(
rp
,
1000
,
REASON_EFFECT
)
end
end
end
end
script/c94256039.lua
View file @
dcecf199
...
@@ -5,6 +5,7 @@ function c94256039.initial_effect(c)
...
@@ -5,6 +5,7 @@ function c94256039.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetOperation
(
c94256039
.
regop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--add counter
--add counter
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -24,10 +25,13 @@ function c94256039.initial_effect(c)
...
@@ -24,10 +25,13 @@ function c94256039.initial_effect(c)
e3
:
SetOperation
(
c94256039
.
damop
)
e3
:
SetOperation
(
c94256039
.
damop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c94256039
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RegisterFlagEffect
(
94256039
,
RESET_CHAIN
,
0
,
1
)
end
function
c94256039
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94256039
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_PLAYER
)
local
p
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_PLAYER
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
c
:
GetFlagEffect
(
94256039
)
==
0
then
c
:
AddCounter
(
0x3001
,
1
)
c
:
AddCounter
(
0x3001
,
1
)
if
c
:
GetCounter
(
0x3001
)
==
4
then
if
c
:
GetCounter
(
0x3001
)
==
4
then
Duel
.
RaiseSingleEvent
(
c
,
94256039
,
re
,
0
,
0
,
p
,
0
)
Duel
.
RaiseSingleEvent
(
c
,
94256039
,
re
,
0
,
0
,
p
,
0
)
...
...
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