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
e0c45a7c
Commit
e0c45a7c
authored
Jun 03, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e255830f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
25 deletions
+27
-25
script/c11662742.lua
script/c11662742.lua
+1
-1
script/c26920296.lua
script/c26920296.lua
+4
-4
script/c44811425.lua
script/c44811425.lua
+18
-16
script/c58551308.lua
script/c58551308.lua
+2
-2
script/c84932271.lua
script/c84932271.lua
+2
-2
No files found.
script/c11662742.lua
View file @
e0c45a7c
...
...
@@ -55,7 +55,7 @@ function c11662742.dmop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
c
:
GetControler
()
~=
ep
then
return
end
if
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
then
c
:
RegisterFlagEffect
(
11662742
,
RESET_PHASE
+
RESET_DAMAGE
,
0
,
0
)
c
:
RegisterFlagEffect
(
11662742
,
RESET_PHASE
+
RESET_DAMAGE
,
0
,
1
)
elseif
Duel
.
GetCurrentPhase
()
==
PHASE_DAMAGE
and
not
Duel
.
IsDamageCalculated
()
then
c
:
RegisterFlagEffect
(
11662743
,
RESET_PHASE
+
RESET_DAMAGE
,
0
,
1
)
end
...
...
script/c26920296.lua
View file @
e0c45a7c
...
...
@@ -11,7 +11,7 @@ function c26920296.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
26920296
,
0
))
e2
:
SetCategory
(
CATEGORY_DRAW
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetCountLimit
(
1
)
...
...
@@ -48,12 +48,12 @@ end
function
c26920296
.
cfilter
(
c
,
type
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
type
)
end
function
c26920296
.
drcfilter
(
c
)
return
c
:
IsPreviousLocation
(
LOCATION_HAND
+
LOCATION_MZONE
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsReason
(
REASON_EFFECT
)
function
c26920296
.
drcfilter
(
c
,
tp
)
return
c
:
IsPreviousLocation
(
LOCATION_HAND
+
LOCATION_MZONE
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
GetPreviousControler
()
==
tp
end
function
c26920296
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c26920296
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_FUSION
)
and
eg
:
IsExists
(
c26920296
.
drcfilter
,
1
,
nil
)
and
eg
:
IsExists
(
c26920296
.
drcfilter
,
1
,
nil
,
tp
)
end
function
c26920296
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
...
...
script/c44811425.lua
View file @
e0c45a7c
...
...
@@ -2,26 +2,28 @@
function
c44811425
.
initial_effect
(
c
)
--flip
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_
FLIP
+
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_
SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetOperation
(
c44811425
.
flipop
)
c
:
RegisterEffect
(
e1
)
--draw
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
44811425
,
0
))
e2
:
SetCategory
(
CATEGORY_DRAW
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCondition
(
c44811425
.
drcon
)
e2
:
SetTarget
(
c44811425
.
drtg
)
e2
:
SetOperation
(
c44811425
.
drop
)
c
:
RegisterEffect
(
e2
)
end
function
c44811425
.
flipop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
44811425
,
0
))
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetTarget
(
c44811425
.
drtg
)
e1
:
SetOperation
(
c44811425
.
drop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
end
e
:
GetHandler
():
RegisterFlagEffect
(
44811425
,
RESET_EVENT
+
0x1fc0000
,
0
,
1
)
end
function
c44811425
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
44811425
)
~=
0
end
function
c44811425
.
drtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
script/c58551308.lua
View file @
e0c45a7c
...
...
@@ -2,7 +2,7 @@
function
c58551308
.
initial_effect
(
c
)
--flip effect
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_
FLIP
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_
CONTINUOUS
)
e1
:
SetOperation
(
c58551308
.
flipop
)
c
:
RegisterEffect
(
e1
)
--special summon
...
...
@@ -19,7 +19,7 @@ end
function
c58551308
.
flipop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsLocation
(
LOCATION_MZONE
+
LOCATION_GRAVE
)
then
c
:
RegisterFlagEffect
(
58551308
,
RESET_EVENT
+
0x57a0000
,
0
,
0
)
c
:
RegisterFlagEffect
(
58551308
,
RESET_EVENT
+
0x57a0000
,
0
,
1
)
end
end
function
c58551308
.
filter
(
c
,
e
,
tp
)
...
...
script/c84932271.lua
View file @
e0c45a7c
...
...
@@ -2,7 +2,7 @@
function
c84932271
.
initial_effect
(
c
)
--flip effect
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_
FLIP
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_
CONTINUOUS
)
e1
:
SetOperation
(
c84932271
.
flipop
)
c
:
RegisterEffect
(
e1
)
--special summon
...
...
@@ -19,7 +19,7 @@ end
function
c84932271
.
flipop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsLocation
(
LOCATION_MZONE
+
LOCATION_GRAVE
)
then
c
:
RegisterFlagEffect
(
84932271
,
RESET_EVENT
+
0x17a0000
+
RESET_PHASE
+
PHASE_END
,
0
,
0
)
c
:
RegisterFlagEffect
(
84932271
,
RESET_EVENT
+
0x17a0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c84932271
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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