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
ade8e4e4
Commit
ade8e4e4
authored
May 16, 2015
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
da739534
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
script/c53315891.lua
script/c53315891.lua
+1
-1
script/c72621670.lua
script/c72621670.lua
+12
-3
script/c91831066.lua
script/c91831066.lua
+1
-1
No files found.
script/c53315891.lua
View file @
ade8e4e4
...
...
@@ -46,7 +46,7 @@ function c53315891.initial_effect(c)
c
:
RegisterEffect
(
e5
)
end
function
c53315891
.
sprfilter
(
c
,
code
)
return
c
:
Is
Faceup
()
and
c
:
Is
Code
(
code
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsCode
(
code
)
and
c
:
IsAbleToGraveAsCost
()
end
function
c53315891
.
sprcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
script/c72621670.lua
View file @
ade8e4e4
...
...
@@ -27,13 +27,22 @@ function c72621670.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c72621670
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
2
,
2
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_CONTROL
,
g
,
2
,
0
,
0
)
end
function
c72621670
.
tfilter
(
c
,
e
)
return
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
end
function
c72621670
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
c72621670
.
tfilter
,
nil
,
e
)
if
g
:
GetCount
()
<
2
then
return
end
local
ct
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
1
-
tp
,
LOCATION_REASON_CONTROL
)
local
sg
=
g
if
ct
==
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_CONTROL
)
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
end
local
tc
=
g
:
GetFirst
()
while
tc
do
if
tc
:
IsFaceup
()
and
not
Duel
.
GetControl
(
tc
,
tp
,
PHASE_END
,
1
)
then
if
not
tc
:
IsImmuneToEffect
(
e
)
and
tc
:
IsAbleToChangeControler
()
then
if
not
sg
:
IsContains
(
tc
)
or
not
Duel
.
GetControl
(
tc
,
tp
,
PHASE_END
,
1
)
then
if
not
tc
:
IsImmuneToEffect
(
e
)
and
tc
:
IsAbleToChangeControler
()
and
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
...
...
script/c91831066.lua
View file @
ade8e4e4
...
...
@@ -9,7 +9,7 @@ function c91831066.initial_effect(c)
--atk & def
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_
O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_
F
)
e2
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCondition
(
c91831066
.
atkcon
)
...
...
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