Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
List
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
nanahira
ygopro
Commits
2f314a2d
Commit
2f314a2d
authored
May 24, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f16d2656
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
16 deletions
+19
-16
script/c3429238.lua
script/c3429238.lua
+1
-1
script/c44155002.lua
script/c44155002.lua
+3
-5
script/c45662855.lua
script/c45662855.lua
+4
-4
script/c64514622.lua
script/c64514622.lua
+1
-1
script/c79856792.lua
script/c79856792.lua
+9
-4
script/c92084010.lua
script/c92084010.lua
+1
-1
No files found.
script/c3429238.lua
View file @
2f314a2d
...
...
@@ -88,7 +88,7 @@ function c3429238.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_GRAVE
)
end
function
c3429238
.
filter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleTo
Grave
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleTo
Hand
()
end
function
c3429238
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
e
:
GetHandler
(),
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
...
...
script/c44155002.lua
View file @
2f314a2d
...
...
@@ -14,10 +14,8 @@ end
function
c44155002
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
ep
==
tp
or
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
~=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
then
return
end
local
rc
=
re
:
GetHandler
()
if
re
:
IsActiveType
(
TYPE_MONSTER
)
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
Duel
.
NegateEffect
(
ev
)
if
rc
:
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
rc
,
REASON_EFFECT
)
end
Duel
.
NegateEffect
(
ev
)
if
rc
:
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
rc
,
REASON_EFFECT
)
end
end
script/c45662855.lua
View file @
2f314a2d
...
...
@@ -15,9 +15,9 @@ function c45662855.initial_effect(c)
e1
:
SetOperation
(
c45662855
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
c45662855
.
costfilter
(
c
)
function
c45662855
.
costfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x47
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
and
Duel
.
IsExistingTarget
(
c45662855
.
tgfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
,
e
,
tp
)
and
Duel
.
IsExistingTarget
(
c45662855
.
tgfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
c
)
end
function
c45662855
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x1047
)
and
c
:
IsAbleToHand
()
...
...
@@ -31,14 +31,14 @@ function c45662855.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
if
e
:
GetLabel
()
==
1
then
e
:
SetLabel
(
0
)
return
Duel
.
IsExistingMatchingCard
(
c45662855
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c45662855
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
tp
)
else
return
Duel
.
IsExistingTarget
(
c45662855
.
tgfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
end
if
e
:
GetLabel
()
==
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
cg
=
Duel
.
SelectMatchingCard
(
tp
,
c45662855
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
cg
=
Duel
.
SelectMatchingCard
(
tp
,
c45662855
.
costfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tp
)
Duel
.
Remove
(
cg
,
POS_FACEUP
,
REASON_COST
)
e
:
SetLabel
(
0
)
end
...
...
script/c64514622.lua
View file @
2f314a2d
...
...
@@ -32,6 +32,6 @@ function c64514622.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c64514622
.
filter
,
tp
,
0x13
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
_DEFENCE
)
end
end
script/c79856792.lua
View file @
2f314a2d
...
...
@@ -8,14 +8,12 @@ function c79856792.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCondition
(
c79856792
.
spcon
)
e1
:
SetOperation
(
c79856792
.
spop
)
c
:
RegisterEffect
(
e1
)
--cannot special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e2
:
SetValue
(
aux
.
FALSE
)
c
:
RegisterEffect
(
e2
)
--atkup
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -41,6 +39,13 @@ function c79856792.initial_effect(c)
e4
:
SetTarget
(
c79856792
.
tdtg
)
e4
:
SetOperation
(
c79856792
.
tdop
)
c
:
RegisterEffect
(
e4
)
--
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e5
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e5
:
SetOperation
(
c79856792
.
spop
)
c
:
RegisterEffect
(
e5
)
end
function
c79856792
.
spfilter
(
c
)
return
c
:
IsSetCard
(
0x34
)
and
(
not
c
:
IsOnField
()
or
c
:
IsFaceup
())
...
...
@@ -52,8 +57,8 @@ function c79856792.spcon(e,c)
local
ct
=
g
:
GetClassCount
(
Card
.
GetCode
)
return
ct
>
6
end
function
c79856792
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
c
:
RegisterFlagEffect
(
79856792
,
RESET_EVENT
+
0xfc0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
function
c79856792
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
()
:
RegisterFlagEffect
(
79856792
,
RESET_EVENT
+
0xfc0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c79856792
.
atcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
GetFlagEffect
(
79856792
)
~=
0
then
return
false
end
...
...
script/c92084010.lua
View file @
2f314a2d
...
...
@@ -8,5 +8,5 @@ function c92084010.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c92084010
.
condition
(
e
,
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_
DARK
)
return
c
:
IsAttribute
(
ATTRIBUTE_
WATER
)
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