Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
4f1b7b64
Commit
4f1b7b64
authored
May 23, 2015
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a1a911da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
37 deletions
+1
-37
script/c40383551.lua
script/c40383551.lua
+1
-37
No files found.
script/c40383551.lua
View file @
4f1b7b64
...
@@ -5,45 +5,9 @@ function c40383551.initial_effect(c)
...
@@ -5,45 +5,9 @@ function c40383551.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCondition
(
c40383551
.
condition
)
e1
:
SetTarget
(
c40383551
.
target
)
e1
:
SetTarget
(
c40383551
.
target
)
e1
:
SetOperation
(
c40383551
.
operation
)
e1
:
SetOperation
(
c40383551
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
if
not
c40383551
.
global_check
then
c40383551
.
global_check
=
true
c40383551
[
0
]
=
true
c40383551
[
1
]
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_CHAINING
)
ge1
:
SetOperation
(
c40383551
.
checkop1
)
Duel
.
RegisterEffect
(
ge1
,
0
)
local
ge2
=
Effect
.
CreateEffect
(
c
)
ge2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge2
:
SetCode
(
EVENT_SSET
)
ge2
:
SetOperation
(
c40383551
.
checkop2
)
Duel
.
RegisterEffect
(
ge2
,
0
)
local
ge3
=
Effect
.
CreateEffect
(
c
)
ge3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge3
:
SetCode
(
EVENT_PHASE_START
+
PHASE_DRAW
)
ge3
:
SetOperation
(
c40383551
.
clear
)
Duel
.
RegisterEffect
(
ge3
,
0
)
end
end
function
c40383551
.
checkop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
then
c40383551
[
rp
]
=
false
end
end
function
c40383551
.
checkop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
c40383551
[
ep
]
=
false
end
function
c40383551
.
clear
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
c40383551
[
0
]
=
true
c40383551
[
1
]
=
true
end
function
c40383551
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
c40383551
[
tp
]
end
end
function
c40383551
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c40383551
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
@@ -70,5 +34,5 @@ function c40383551.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -70,5 +34,5 @@ function c40383551.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e2
,
p
)
Duel
.
RegisterEffect
(
e2
,
p
)
end
end
function
c40383551
.
aclimit
(
e
,
re
,
tp
)
function
c40383551
.
aclimit
(
e
,
re
,
tp
)
return
re
:
GetHandler
():
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
re
:
GetHandler
():
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
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