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
86e02349
Commit
86e02349
authored
Jan 23, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b01f7db7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
16 deletions
+22
-16
script/c56585883.lua
script/c56585883.lua
+15
-11
script/c67926903.lua
script/c67926903.lua
+7
-5
No files found.
script/c56585883.lua
View file @
86e02349
...
...
@@ -25,6 +25,17 @@ function c56585883.initial_effect(c)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetOperation
(
c56585883
.
regop
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
56585883
,
1
))
e4
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e4
:
SetCountLimit
(
1
,
56585884
)
e4
:
SetRange
(
LOCATION_GRAVE
)
e4
:
SetCondition
(
c56585883
.
thcon
)
e4
:
SetTarget
(
c56585883
.
thtg
)
e4
:
SetOperation
(
c56585883
.
thop
)
c
:
RegisterEffect
(
e4
)
end
function
c56585883
.
filter1
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_WINDBEAST
)
and
c
:
IsAbleToHand
()
...
...
@@ -52,19 +63,12 @@ end
function
c56585883
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsReason
(
REASON_RETURN
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
56585883
,
1
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
,
56585884
)
e1
:
SetRange
(
LOCATION_GRAVE
)
e1
:
SetTarget
(
c56585883
.
thtg
)
e1
:
SetOperation
(
c56585883
.
thop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterFlagEffect
(
56585883
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c56585883
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
56585883
)
>
0
end
function
c56585883
.
thfilter
(
c
)
return
c
:
IsAttackBelow
(
1500
)
and
c
:
IsRace
(
RACE_WINDBEAST
)
and
c
:
GetLevel
()
==
4
and
c
:
IsAbleToHand
()
end
...
...
script/c67926903.lua
View file @
86e02349
...
...
@@ -51,6 +51,7 @@ function c67926903.copyop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
code
)
e1
:
SetLabel
(
tp
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
+
RESET_OPPO_TURN
)
c
:
RegisterEffect
(
e1
)
local
cid
=
c
:
CopyEffect
(
code
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
+
RESET_OPPO_TURN
)
...
...
@@ -61,16 +62,17 @@ function c67926903.copyop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
+
RESET_OPPO_TURN
)
e2
:
SetLabel
(
cid
)
e2
:
SetLabelObject
(
e1
)
e2
:
SetCondition
(
c67926903
.
rstcon
)
e2
:
SetOperation
(
c67926903
.
rstop
)
e2
:
SetLabel
(
cid
)
e2
:
SetLabelObject
(
e1
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
+
RESET_OPPO_TURN
)
c
:
RegisterEffect
(
e2
)
end
end
function
c67926903
.
rstcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
local
e1
=
e
:
GetLabelObject
()
return
Duel
.
GetTurnPlayer
()
~=
e1
:
GetLabel
()
end
function
c67926903
.
rstop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
@@ -80,4 +82,4 @@ function c67926903.rstop(e,tp,eg,ep,ev,re,r,rp)
e1
:
Reset
()
Duel
.
HintSelection
(
Group
.
FromCards
(
c
))
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
\ No newline at end of file
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