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
73dd108a
Commit
73dd108a
authored
Mar 28, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
227e0ec0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
14 deletions
+5
-14
script/c2295831.lua
script/c2295831.lua
+1
-1
script/c57734012.lua
script/c57734012.lua
+1
-1
script/c69764158.lua
script/c69764158.lua
+3
-12
No files found.
script/c2295831.lua
View file @
73dd108a
...
@@ -37,7 +37,7 @@ function c2295831.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -37,7 +37,7 @@ function c2295831.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
end
end
function
c2295831
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c2295831
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
e
:
GetHandler
():
GetFlagEffect
(
2295831
)
~=
0
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
2295831
)
~=
0
end
end
end
function
c2295831
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c2295831
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
script/c57734012.lua
View file @
73dd108a
...
@@ -37,7 +37,7 @@ function c57734012.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -37,7 +37,7 @@ function c57734012.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
and
not
Duel
.
CheckPhaseActivity
()
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
and
not
Duel
.
CheckPhaseActivity
()
end
end
function
c57734012
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c57734012
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
e
:
GetHandler
():
GetFlagEffect
(
57734012
)
~=
0
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
57734012
)
~=
0
end
end
end
function
c57734012
.
filter1
(
c
,
e
,
tp
)
function
c57734012
.
filter1
(
c
,
e
,
tp
)
local
m
=
_G
[
"c"
..
c
:
GetCode
()]
local
m
=
_G
[
"c"
..
c
:
GetCode
()]
...
...
script/c69764158.lua
View file @
73dd108a
...
@@ -6,26 +6,20 @@ function c69764158.initial_effect(c)
...
@@ -6,26 +6,20 @@ function c69764158.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_DAMAGE
)
e1
:
SetCode
(
EVENT_DAMAGE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_CVAL_CHECK
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetRange
(
LOCATION_GRAVE
)
e1
:
SetRange
(
LOCATION_GRAVE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c69764158
.
descon
)
e1
:
SetCondition
(
c69764158
.
descon
)
e1
:
SetCost
(
c69764158
.
descost
)
e1
:
SetCost
(
c69764158
.
descost
)
e1
:
SetTarget
(
c69764158
.
destg
)
e1
:
SetTarget
(
c69764158
.
destg
)
e1
:
SetOperation
(
c69764158
.
desop
)
e1
:
SetOperation
(
c69764158
.
desop
)
e1
:
SetValue
(
c69764158
.
valcheck
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c69764158
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69764158
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
tp
and
(
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
or
(
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
rp
~=
tp
))
return
ep
==
tp
and
(
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
or
(
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
rp
~=
tp
))
end
end
function
c69764158
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c69764158
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
if
Duel
.
GetFlagEffect
(
tp
,
69764158
)
==
0
then
Duel
.
RegisterFlagEffect
(
tp
,
69764158
,
RESET_CHAIN
,
0
,
1
)
c69764158
[
0
]
=
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
return
c69764158
[
0
]
end
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_COST
)
end
end
function
c69764158
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c69764158
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
@@ -41,6 +35,3 @@ function c69764158.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -41,6 +35,3 @@ function c69764158.desop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
end
end
function
c69764158
.
valcheck
(
e
)
c69764158
[
0
]
=
false
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