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
0fd3867d
Commit
0fd3867d
authored
Jun 10, 2013
by
Fluorohydride
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #557 from salix5/patch2
fix: 29669359, 6614221, 69890967, 85121942, 88071625, 98645731
parents
b2eebabb
997850f9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
30 deletions
+37
-30
script/c29669359.lua
script/c29669359.lua
+5
-3
script/c6614221.lua
script/c6614221.lua
+1
-1
script/c69890967.lua
script/c69890967.lua
+3
-1
script/c85121942.lua
script/c85121942.lua
+1
-1
script/c88071625.lua
script/c88071625.lua
+25
-22
script/c98645731.lua
script/c98645731.lua
+2
-2
No files found.
script/c29669359.lua
View file @
0fd3867d
...
...
@@ -35,13 +35,15 @@ function c29669359.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c29669359
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c29669359
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
atk
=
g
:
GetFirst
():
GetTextAttack
()
if
atk
<
0
then
atk
=
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
g
:
GetFirst
():
GetTextAttack
()
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
atk
)
end
function
c29669359
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
Is
Faceup
()
and
tc
:
Is
Controler
(
1
-
tp
)
then
local
atk
=
tc
:
Get
Base
Attack
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsControler
(
1
-
tp
)
then
local
atk
=
tc
:
Get
Text
Attack
()
if
atk
<
0
then
atk
=
0
end
if
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
then
Duel
.
Damage
(
1
-
tp
,
atk
,
REASON_EFFECT
)
...
...
script/c6614221.lua
View file @
0fd3867d
...
...
@@ -27,7 +27,7 @@ function c6614221.atkop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
mg
:
GetFirst
()
local
atk
=
0
while
tc
do
local
catk
=
tc
:
Get
Base
Attack
()
local
catk
=
tc
:
Get
Text
Attack
()
if
catk
<
0
then
catk
=
0
end
atk
=
atk
+
catk
tc
=
mg
:
GetNext
()
...
...
script/c69890967.lua
View file @
0fd3867d
...
...
@@ -70,7 +70,9 @@ end
function
c69890967
.
atcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
nil
,
1
,
e
:
GetHandler
())
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
nil
,
1
,
1
,
e
:
GetHandler
())
e
:
SetLabel
(
g
:
GetFirst
():
GetTextAttack
())
local
atk
=
g
:
GetFirst
():
GetTextAttack
()
if
atk
<
0
then
atk
=
0
end
e
:
SetLabel
(
atk
)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c69890967
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c85121942.lua
View file @
0fd3867d
...
...
@@ -37,7 +37,7 @@ function c85121942.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
local
dam
=
bc
:
GetAttack
()
/
2
local
dam
=
bc
:
Get
Text
Attack
()
/
2
if
dam
<
0
then
dam
=
0
end
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
dam
)
...
...
script/c88071625.lua
View file @
0fd3867d
...
...
@@ -19,25 +19,20 @@ function c88071625.initial_effect(c)
c
:
RegisterEffect
(
e2
)
--atk
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
E
FFECT_MATERIAL_CHECK
)
e3
:
Set
Value
(
c88071625
.
valcheck
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
E
VENT_SUMMON_SUCCESS
)
e3
:
Set
Operation
(
c88071625
.
atkop
)
c
:
RegisterEffect
(
e3
)
--copy
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetDescription
(
aux
.
Stringid
(
88071625
,
1
))
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e4
:
SetOperation
(
c88071625
.
atkop
)
e4
:
SetCondition
(
c88071625
.
copycon
)
e4
:
SetTarget
(
c88071625
.
copytg
)
e4
:
SetOperation
(
c88071625
.
copyop
)
c
:
RegisterEffect
(
e4
)
--copy
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
88071625
,
1
))
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e5
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e5
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e5
:
SetCondition
(
c88071625
.
copycon
)
e5
:
SetTarget
(
c88071625
.
copytg
)
e5
:
SetOperation
(
c88071625
.
copyop
)
c
:
RegisterEffect
(
e5
)
end
function
c88071625
.
otcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
@@ -48,25 +43,33 @@ function c88071625.otop(e,tp,eg,ep,ev,re,r,rp,c)
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
function
c88071625
.
valcheck
(
e
,
c
)
local
g
=
c
:
GetMaterial
()
c88071625
.
atk
=
g
:
GetSum
(
Card
.
GetBaseAttack
)
c88071625
.
def
=
g
:
GetSum
(
Card
.
GetBaseDefence
)
end
function
c88071625
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
GetMaterialCount
()
==
0
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
mg
=
c
:
GetMaterial
()
local
tc
=
mg
:
GetFirst
()
local
atk
=
0
local
def
=
0
while
tc
do
local
catk
=
tc
:
GetTextAttack
()
local
cdef
=
tc
:
GetTextDefence
()
if
catk
<
0
then
catk
=
0
end
if
cdef
<
0
then
cdef
=
0
end
atk
=
atk
+
catk
def
=
def
+
cdef
tc
=
mg
:
GetNext
()
end
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
c88071625
.
atk
)
e1
:
SetValue
(
atk
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
e2
:
SetValue
(
c88071625
.
def
)
e2
:
SetValue
(
def
)
c
:
RegisterEffect
(
e2
)
end
function
c88071625
.
copycon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c98645731.lua
View file @
0fd3867d
...
...
@@ -12,7 +12,7 @@ function c98645731.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c98645731
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
Duel
.
CheckSpecialSummonActivity
(
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
9864573
2
)
==
0
end
if
chk
==
0
then
return
not
Duel
.
CheckSpecialSummonActivity
(
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
9864573
1
)
==
0
end
--oath effects
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
@@ -21,7 +21,7 @@ function c98645731.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterFlagEffect
(
tp
,
9864573
2
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
9864573
1
,
RESET_PHASE
+
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
end
function
c98645731
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
...
...
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