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
7a2d0d33
Commit
7a2d0d33
authored
Oct 03, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
acb4a2d9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
91 additions
and
9 deletions
+91
-9
script/c22076135.lua
script/c22076135.lua
+1
-1
script/c3657444.lua
script/c3657444.lua
+6
-2
script/c39751093.lua
script/c39751093.lua
+1
-1
script/c39751094.lua
script/c39751094.lua
+1
-1
script/c48179393.lua
script/c48179393.lua
+79
-0
script/c91107093.lua
script/c91107093.lua
+3
-4
No files found.
script/c22076135.lua
View file @
7a2d0d33
...
...
@@ -16,7 +16,7 @@ function c22076135.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c22076135
.
cfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsDiscardable
()
return
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsDiscardable
()
and
c
:
IsAbleToGraveAsCost
()
end
function
c22076135
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
22076135
)
==
0
...
...
script/c3657444.lua
View file @
7a2d0d33
...
...
@@ -67,9 +67,13 @@ function c3657444.operation2(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
Duel
.
Draw
(
tp
,
2
,
REASON_EFFECT
)
end
function
c3657444
.
filter3
(
c
)
return
c
:
IsAbleToDeck
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
end
function
c3657444
.
target3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemove
()
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c3657444
.
filter3
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
nil
,
1
,
0
,
LOCATION_GRAVE
)
...
...
@@ -84,7 +88,7 @@ function c3657444.operation3(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Remove
(
hg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
gg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
gg
=
Duel
.
SelectMatchingCard
(
tp
,
c3657444
.
filter3
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
if
gg
:
GetCount
()
>
0
then
Duel
.
SendtoDeck
(
gg
,
nil
,
0
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
gg
)
...
...
script/c39751093.lua
View file @
7a2d0d33
...
...
@@ -21,7 +21,7 @@ function c39751093.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
39751093
,
1
))
e4
:
SetCategory
(
CATEGORY_POSITION
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e4
:
SetTarget
(
c39751093
.
target
)
...
...
script/c39751094.lua
View file @
7a2d0d33
...
...
@@ -21,7 +21,7 @@ function c39751094.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
39751094
,
1
))
e4
:
SetCategory
(
CATEGORY_POSITION
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e4
:
SetTarget
(
c39751094
.
target
)
...
...
script/c48179393.lua
0 → 100644
View file @
7a2d0d33
--オレイカルコスの結界
function
c48179393
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCost
(
c48179393
.
actcost
)
e1
:
SetTarget
(
c48179393
.
acttg
)
e1
:
SetOperation
(
c48179393
.
actop
)
c
:
RegisterEffect
(
e1
)
--spsummon limit
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetTarget
(
c48179393
.
sumlimit
)
c
:
RegisterEffect
(
e2
)
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetValue
(
500
)
c
:
RegisterEffect
(
e3
)
--
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetCode
(
EFFECT_INDESTRUCTABLE_COUNT
)
e4
:
SetCountLimit
(
1
)
e4
:
SetValue
(
1
)
c
:
RegisterEffect
(
e4
)
--
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e5
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e5
:
SetCondition
(
c48179393
.
atkcon
)
e5
:
SetTarget
(
c48179393
.
atktg
)
e5
:
SetValue
(
1
)
c
:
RegisterEffect
(
e5
)
end
function
c48179393
.
actcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
48179393
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
48179393
,
0
,
0
,
0
)
end
function
c48179393
.
desfilter
(
c
)
return
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
~=
0
and
c
:
IsDestructable
()
end
function
c48179393
.
acttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
g
=
Duel
.
GetMatchingGroup
(
c48179393
.
desfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c48179393
.
actop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
c48179393
.
desfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
function
c48179393
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
return
c
:
IsLocation
(
LOCATION_EXTRA
)
end
function
c48179393
.
atkcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsPosition
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
2
,
nil
,
POS_FACEUP_ATTACK
)
end
function
c48179393
.
atkfilter
(
c
,
atk
)
return
c
:
IsFaceup
()
and
c
:
GetAttack
()
<
atk
end
function
c48179393
.
atktg
(
e
,
c
)
return
not
Duel
.
IsExistingMatchingCard
(
c48179393
.
atkfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
c
,
c
:
GetAttack
())
end
script/c91107093.lua
View file @
7a2d0d33
...
...
@@ -18,18 +18,17 @@ function c91107093.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_
M
ZONE
)
e3
:
SetRange
(
LOCATION_
S
ZONE
)
e3
:
SetCode
(
EFFECT_SELF_DESTROY
)
e3
:
SetCondition
(
c91107093
.
descon
)
c
:
RegisterEffect
(
e3
)
end
function
c91107093
.
infilter
(
e
,
c
)
local
lv
=
c
:
GetLevel
()
return
lv
>
0
and
lv
<=
3
and
c
:
IsDefencePos
()
and
c
:
IsRace
(
RACE_THUNDER
)
return
c
:
IsDefencePos
()
and
c
:
IsLevelBelow
(
3
)
and
c
:
IsRace
(
RACE_THUNDER
)
end
function
c91107093
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsAttackPos
()
end
function
c91107093
.
descon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c91107093
.
filter
,
e
:
GetHandler
():
GetControl
er
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c91107093
.
filter
,
e
:
GetHandler
Play
er
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
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