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
1084efd6
Commit
1084efd6
authored
Sep 15, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
eebd29db
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
42 additions
and
22 deletions
+42
-22
script/c35950025.lua
script/c35950025.lua
+4
-4
script/c41925941.lua
script/c41925941.lua
+4
-4
script/c61344030.lua
script/c61344030.lua
+6
-3
script/c62107612.lua
script/c62107612.lua
+2
-2
script/c64187086.lua
script/c64187086.lua
+1
-1
script/c65676461.lua
script/c65676461.lua
+10
-4
script/c97617181.lua
script/c97617181.lua
+15
-4
No files found.
script/c35950025.lua
View file @
1084efd6
...
...
@@ -51,9 +51,9 @@ function c35950025.spop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
-
1000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP_DEFENCE
)
end
end
end
script/c41925941.lua
View file @
1084efd6
...
...
@@ -27,12 +27,12 @@ function c41925941.condition(e,tp,eg,ep,ev,re,r,rp)
end
function
c41925941
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
bc
=
e
:
GetLabelObject
()
if
chk
==
0
then
return
Duel
.
GetLP
(
tp
)
>
100
and
bc
:
IsAttackAbove
(
100
)
and
bc
:
IsDefenceAbove
(
100
)
end
if
chk
==
0
then
return
Duel
.
GetLP
(
tp
)
>
100
and
(
bc
:
IsAttackAbove
(
100
)
or
bc
:
IsDefenceAbove
(
100
)
)
end
local
maxc
=
Duel
.
GetLP
(
tp
)
local
atk
=
bc
:
GetAttack
()
local
maxpay
=
bc
:
GetAttack
()
local
def
=
bc
:
GetDefence
()
if
atk
<
maxc
then
maxc
=
atk
end
if
def
<
maxc
then
maxc
=
def
end
if
maxpay
<
def
then
maxpay
=
def
end
if
maxpay
<
maxc
then
maxc
=
maxpay
end
if
maxc
>
5000
then
maxc
=
5000
end
local
t
=
{}
for
i
=
1
,
maxc
/
100
do
...
...
script/c61344030.lua
View file @
1084efd6
...
...
@@ -33,11 +33,14 @@ function c61344030.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
2
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
2
,
2
,
REASON_COST
)
end
function
c61344030
.
filter
(
c
)
return
c
:
IsFacup
()
and
c
:
GetAttack
()
>
0
end
function
c61344030
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c
hkc
:
IsFaceup
(
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c
61344030
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c61344030
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c61344030
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
g
,
1
,
0
,
0
)
end
function
c61344030
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c62107612.lua
View file @
1084efd6
...
...
@@ -3,7 +3,7 @@ function c62107612.initial_effect(c)
--damage
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
62107612
,
0
))
e1
:
SetType
(
EFFECT_TYPE_
QUICK
_O
)
e1
:
SetType
(
EFFECT_TYPE_
FIELD
+
EFFECT_TYPE_TRIGGER
_O
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EVENT_REMOVE
)
e1
:
SetRange
(
LOCATION_HAND
)
...
...
@@ -14,7 +14,7 @@ function c62107612.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c62107612
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
GetDescription
()
==
aux
.
Stringid
(
93717133
,
0
)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
re
:
GetHandler
():
GetCode
()
==
93717133
end
function
c62107612
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
62107612
)
==
0
and
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
...
...
script/c64187086.lua
View file @
1084efd6
...
...
@@ -16,7 +16,7 @@ function c64187086.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
function
c64187086
.
filter1
(
c
)
return
c
:
IsSetCard
(
0x21
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x21
)
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
AbleToHand
()
end
function
c64187086
.
filter2
(
c
)
return
c
:
IsType
(
TYPE_FIELD
)
and
c
:
IsAbleToHand
()
...
...
script/c65676461.lua
View file @
1084efd6
...
...
@@ -44,9 +44,15 @@ function c65676461.atop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
bc
:
RegisterEffect
(
e1
)
Duel
.
SpecialSummonComplete
()
end
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
Duel
.
BreakEffect
()
Duel
.
ChainAttack
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
end
end
end
script/c97617181.lua
View file @
1084efd6
...
...
@@ -27,8 +27,10 @@ function c97617181.initial_effect(c)
c
:
RegisterEffect
(
e4
)
--leave
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
e5
:
SetDescription
(
aux
.
Stringid
(
97617181
,
0
))
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e5
:
SetCode
(
EVENT_LEAVE_FIELD
)
e5
:
SetCondition
(
c97617181
.
atkcon
)
e5
:
SetOperation
(
c97617181
.
atkop
)
c
:
RegisterEffect
(
e5
)
end
...
...
@@ -68,10 +70,19 @@ function c97617181.operation(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e1
)
end
end
function
c97617181
.
atk
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c97617181
.
atk
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
c
:
GetFirstCardTarget
()
if
tc
and
tc
:
IsLocation
(
LOCATION_MZONE
)
then
if
tc
and
tc
:
IsLocation
(
LOCATION_MZONE
)
and
tc
:
IsFaceup
()
then
e
:
SetLabelObject
(
tc
)
tc
:
CreateEffectRelation
(
e
)
return
true
else
return
false
end
end
function
c97617181
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
e
:
GetLabelObject
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
...
...
@@ -85,7 +96,7 @@ function c97617181.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
ec
=
c
:
GetEquipTarget
()
local
ph
=
Duel
.
GetCurrentPhase
()
if
chk
==
0
then
return
(
ph
>
PHASE_MAIN1
and
ph
<
PHASE_MAIN2
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
end
return
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
97617181
,
0
))
return
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
97617181
,
1
))
end
function
c97617181
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
+
REASON_REPLACE
)
...
...
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