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
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-520DIY
ygopro
Commits
b8c98835
Commit
b8c98835
authored
Jul 27, 2013
by
sidschingis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
fixed interaction with DNA Surgery/ Zombie World
parent
29aafb37
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
17 deletions
+15
-17
script/c27770341.lua
script/c27770341.lua
+15
-17
No files found.
script/c27770341.lua
View file @
b8c98835
...
@@ -25,7 +25,7 @@ function c27770341.initial_effect(c)
...
@@ -25,7 +25,7 @@ function c27770341.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e4
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EVENT_DISCARD
)
e4
:
SetCode
(
EVENT_DISCARD
)
e4
:
SetOperation
(
c27770341
.
addcount
)
e4
:
SetOperation
(
c27770341
.
addcount
1
)
Duel
.
RegisterEffect
(
e4
,
0
)
Duel
.
RegisterEffect
(
e4
,
0
)
end
end
end
end
...
@@ -37,30 +37,28 @@ function c27770341.addcount(e,tp,eg,ep,ev,re,r,rp)
...
@@ -37,30 +37,28 @@ function c27770341.addcount(e,tp,eg,ep,ev,re,r,rp)
local
c
=
eg
:
GetFirst
()
local
c
=
eg
:
GetFirst
()
while
c
~=
nil
do
while
c
~=
nil
do
local
p
=
c
:
GetControler
()
local
p
=
c
:
GetControler
()
if
c
:
IsRace
(
RACE_DRAGON
)
then
c27770341
[
p
]
=
c27770341
[
p
]
+
1
end
if
c
:
GetPreviousRaceOnField
()
==
RACE_DRAGON
then
c27770341
[
p
]
=
c27770341
[
p
]
+
1
end
c
=
eg
:
GetNext
()
end
end
function
c27770341
.
addcount1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
eg
:
GetFirst
()
while
c
~=
nil
do
local
p
=
c
:
GetControler
()
if
c
:
GetOriginalRace
()
==
RACE_DRAGON
then
c27770341
[
p
]
=
c27770341
[
p
]
+
1
end
c
=
eg
:
GetNext
()
c
=
eg
:
GetNext
()
end
end
end
end
function
c27770341
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c27770341
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetDescription
(
7
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetRange
(
0xff
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetTarget
(
c27770341
.
drtarget
)
e1
:
SetOperation
(
c27770341
.
droperation
)
e1
:
SetOperation
(
c27770341
.
droperation
)
c
:
RegisterEffect
(
e1
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c27770341
.
drtarget
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
c27770341
[
tp
])
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
c27770341
[
tp
])
end
end
function
c27770341
.
droperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c27770341
.
droperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
Duel
.
Hint
(
HINT_CARD
,
0
,
27770341
)
Duel
.
Draw
(
p
,
c27770341
[
tp
],
REASON_EFFECT
)
Duel
.
Draw
(
t
p
,
c27770341
[
tp
],
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