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
bc6269a4
Commit
bc6269a4
authored
May 11, 2015
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
fc74b145
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
11 deletions
+15
-11
script/c19019586.lua
script/c19019586.lua
+6
-1
script/c22227683.lua
script/c22227683.lua
+2
-1
script/c31801517.lua
script/c31801517.lua
+2
-5
script/c54366836.lua
script/c54366836.lua
+4
-0
script/c96864105.lua
script/c96864105.lua
+1
-4
No files found.
script/c19019586.lua
View file @
bc6269a4
...
@@ -12,10 +12,11 @@ function c19019586.initial_effect(c)
...
@@ -12,10 +12,11 @@ function c19019586.initial_effect(c)
--defup
--defup
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
19019586
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
19019586
,
1
))
e2
:
SetCategory
(
CATEGORY_
ATK
CHANGE
)
e2
:
SetCategory
(
CATEGORY_
DEF
CHANGE
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e2
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
c19019586
.
defcon
)
e2
:
SetCost
(
c19019586
.
defcost
)
e2
:
SetCost
(
c19019586
.
defcost
)
e2
:
SetOperation
(
c19019586
.
defop
)
e2
:
SetOperation
(
c19019586
.
defop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
@@ -33,6 +34,10 @@ end
...
@@ -33,6 +34,10 @@ end
function
c19019586
.
cfilter
(
c
)
function
c19019586
.
cfilter
(
c
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAbleToGraveAsCost
()
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAbleToGraveAsCost
()
end
end
function
c19019586
.
defcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
==
Duel
.
GetAttacker
()
or
c
==
Duel
.
GetAttackTarget
()
end
function
c19019586
.
defcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c19019586
.
defcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
19019586
)
==
0
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
19019586
)
==
0
and
Duel
.
IsExistingMatchingCard
(
c19019586
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c19019586
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
...
...
script/c22227683.lua
View file @
bc6269a4
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
function
c22227683
.
initial_effect
(
c
)
function
c22227683
.
initial_effect
(
c
)
--atk/def up
--atk/def up
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e1
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
@@ -20,7 +21,7 @@ function c22227683.initial_effect(c)
...
@@ -20,7 +21,7 @@ function c22227683.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c22227683
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c22227683
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttack
Target
()
~=
nil
return
e
:
GetHandler
():
GetBattle
Target
()
~=
nil
end
end
function
c22227683
.
tgfilter
(
c
)
function
c22227683
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0xab
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
22227683
)
and
c
:
IsAbleToGrave
()
return
c
:
IsSetCard
(
0xab
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
22227683
)
and
c
:
IsAbleToGrave
()
...
...
script/c31801517.lua
View file @
bc6269a4
...
@@ -7,11 +7,9 @@ function c31801517.initial_effect(c)
...
@@ -7,11 +7,9 @@ function c31801517.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
31801517
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
31801517
,
0
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_
FREE_CHAIN
)
e1
:
SetCode
(
EVENT_
PRE_DAMAGE_CALCULATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_CAL
)
e1
:
SetCondition
(
c31801517
.
atkcon
)
e1
:
SetCondition
(
c31801517
.
atkcon
)
e1
:
SetCost
(
c31801517
.
atkcost
)
e1
:
SetCost
(
c31801517
.
atkcost
)
e1
:
SetOperation
(
c31801517
.
atkop
)
e1
:
SetOperation
(
c31801517
.
atkop
)
...
@@ -36,8 +34,7 @@ end
...
@@ -36,8 +34,7 @@ end
c31801517
.
xyz_number
=
62
c31801517
.
xyz_number
=
62
function
c31801517
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c31801517
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
(
c
==
Duel
.
GetAttacker
()
or
c
==
Duel
.
GetAttackTarget
())
return
c
==
Duel
.
GetAttacker
()
or
c
==
Duel
.
GetAttackTarget
()
and
Duel
.
GetCurrentPhase
()
==
PHASE_DAMAGE_CAL
and
not
Duel
.
IsDamageCalculated
()
end
end
function
c31801517
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c31801517
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
script/c54366836.lua
View file @
bc6269a4
...
@@ -28,6 +28,7 @@ function c54366836.initial_effect(c)
...
@@ -28,6 +28,7 @@ function c54366836.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e3
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCondition
(
c54366836
.
damcon2
)
e3
:
SetCost
(
c54366836
.
damcost2
)
e3
:
SetCost
(
c54366836
.
damcost2
)
e3
:
SetOperation
(
c54366836
.
damop2
)
e3
:
SetOperation
(
c54366836
.
damop2
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
@@ -47,6 +48,9 @@ function c54366836.damop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,6 +48,9 @@ function c54366836.damop(e,tp,eg,ep,ev,re,r,rp)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
end
end
function
c54366836
.
damcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetBattleTarget
()
~=
nil
end
function
c54366836
.
damcost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c54366836
.
damcost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
GetFlagEffect
(
54366836
)
==
0
and
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
if
chk
==
0
then
return
c
:
GetFlagEffect
(
54366836
)
==
0
and
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
...
...
script/c96864105.lua
View file @
bc6269a4
...
@@ -7,11 +7,9 @@ function c96864105.initial_effect(c)
...
@@ -7,11 +7,9 @@ function c96864105.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
96864105
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
96864105
,
0
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_
FREE_CHAIN
)
e1
:
SetCode
(
EVENT_
PRE_DAMAGE_CALCULATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_CAL
)
e1
:
SetCondition
(
c96864105
.
atkcon
)
e1
:
SetCondition
(
c96864105
.
atkcon
)
e1
:
SetCost
(
c96864105
.
atkcost
)
e1
:
SetCost
(
c96864105
.
atkcost
)
e1
:
SetOperation
(
c96864105
.
atkop
)
e1
:
SetOperation
(
c96864105
.
atkop
)
...
@@ -31,7 +29,6 @@ function c96864105.atkcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -31,7 +29,6 @@ function c96864105.atkcon(e,tp,eg,ep,ev,re,r,rp)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
return
d
and
a
:
GetControler
()
~=
d
:
GetControler
()
return
d
and
a
:
GetControler
()
~=
d
:
GetControler
()
and
Duel
.
GetCurrentPhase
()
==
PHASE_DAMAGE_CAL
and
not
Duel
.
IsDamageCalculated
()
end
end
function
c96864105
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c96864105
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
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