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
53576ec9
Commit
53576ec9
authored
Sep 26, 2012
by
Fluorohydride
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #275 from VanillaSalt/patch29
fix
parents
a6bd95a6
1471dcdb
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
34 additions
and
33 deletions
+34
-33
script/c12014404.lua
script/c12014404.lua
+4
-4
script/c14462257.lua
script/c14462257.lua
+1
-1
script/c21143940.lua
script/c21143940.lua
+2
-1
script/c28596933.lua
script/c28596933.lua
+6
-6
script/c29424328.lua
script/c29424328.lua
+1
-1
script/c30353551.lua
script/c30353551.lua
+3
-3
script/c40695128.lua
script/c40695128.lua
+1
-1
script/c41160595.lua
script/c41160595.lua
+1
-1
script/c42647539.lua
script/c42647539.lua
+3
-3
script/c49389523.lua
script/c49389523.lua
+1
-1
script/c66742250.lua
script/c66742250.lua
+3
-3
script/c67959180.lua
script/c67959180.lua
+2
-2
script/c76614003.lua
script/c76614003.lua
+1
-1
script/c86170989.lua
script/c86170989.lua
+2
-2
script/c87313164.lua
script/c87313164.lua
+1
-1
script/c93130021.lua
script/c93130021.lua
+1
-1
script/c96383838.lua
script/c96383838.lua
+1
-1
No files found.
script/c12014404.lua
View file @
53576ec9
...
@@ -27,8 +27,10 @@ function c12014404.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -27,8 +27,10 @@ function c12014404.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c12014404
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12014404
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
c
:
IsAttackPos
()
then
if
c
:
IsDefencePos
()
then
Duel
.
Damage
(
1
-
tp
,
800
,
REASON_EFFECT
)
elseif
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_BATTLE_START
)
e1
:
SetCode
(
EVENT_BATTLE_START
)
...
@@ -36,8 +38,6 @@ function c12014404.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -36,8 +38,6 @@ function c12014404.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetOperation
(
c12014404
.
atkop
)
e1
:
SetOperation
(
c12014404
.
atkop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
else
Duel
.
Damage
(
1
-
tp
,
800
,
REASON_EFFECT
)
end
end
end
end
function
c12014404
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12014404
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c14462257.lua
View file @
53576ec9
...
@@ -13,7 +13,7 @@ function c14462257.initial_effect(c)
...
@@ -13,7 +13,7 @@ function c14462257.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
14462257
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
14462257
,
0
))
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetCondition
(
c14462257
.
condition
)
e2
:
SetCondition
(
c14462257
.
condition
)
e2
:
SetTarget
(
c14462257
.
target
)
e2
:
SetTarget
(
c14462257
.
target
)
...
...
script/c21143940.lua
View file @
53576ec9
...
@@ -28,9 +28,10 @@ end
...
@@ -28,9 +28,10 @@ end
function
c21143940
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c21143940
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
if
not
tc
:
IsRelateToEffect
(
e
)
then
return
end
local
att
=
tc
:
GetAttribute
()
if
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
==
0
then
return
end
if
Duel
.
SendtoGrave
(
tc
,
REASON_EFFECT
)
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c21143940
.
tfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
tc
:
GetAttribute
()
,
e
,
tp
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c21143940
.
tfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
att
,
e
,
tp
)
if
sg
:
GetCount
()
>
0
then
if
sg
:
GetCount
()
>
0
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
...
...
script/c28596933.lua
View file @
53576ec9
...
@@ -16,17 +16,17 @@ function c28596933.dfilter(c)
...
@@ -16,17 +16,17 @@ function c28596933.dfilter(c)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsDestructable
()
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsDestructable
()
end
end
function
c28596933
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c28596933
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExisting
Target
(
c28596933
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExisting
MatchingCard
(
c28596933
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c28596933
.
dfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
())
end
and
Duel
.
IsExistingMatchingCard
(
c28596933
.
dfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c28596933
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
sg
=
Duel
.
GetMatchingGroup
(
c28596933
.
dfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
())
local
sg
=
Duel
.
GetMatchingGroup
(
c28596933
.
dfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_MZONE
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sg
,
sg
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sg
,
sg
:
GetCount
(),
0
,
0
)
end
end
function
c28596933
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c28596933
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
~=
0
then
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c28596933
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
if
tc
and
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_HAND
)
then
local
sg
=
Duel
.
GetMatchingGroup
(
c28596933
.
dfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
())
local
sg
=
Duel
.
GetMatchingGroup
(
c28596933
.
dfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
())
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
end
end
...
...
script/c29424328.lua
View file @
53576ec9
...
@@ -37,8 +37,8 @@ function c29424328.cfcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -37,8 +37,8 @@ function c29424328.cfcon(e,tp,eg,ep,ev,re,r,rp)
return
tp
~=
Duel
.
GetTurnPlayer
()
and
Duel
.
GetFieldGroupCount
(
1
-
tp
,
LOCATION_DECK
,
0
)
>
0
return
tp
~=
Duel
.
GetTurnPlayer
()
and
Duel
.
GetFieldGroupCount
(
1
-
tp
,
LOCATION_DECK
,
0
)
>
0
end
end
function
c29424328
.
cfop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c29424328
.
cfop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ConfirmDecktop
(
1
-
tp
,
1
)
local
g
=
Duel
.
GetDecktopGroup
(
1
-
tp
,
1
)
local
g
=
Duel
.
GetDecktopGroup
(
1
-
tp
,
1
)
Duel
.
ConfirmCards
(
tp
,
g
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
local
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
29424328
,
1
),
aux
.
Stringid
(
29424328
,
2
))
local
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
29424328
,
1
),
aux
.
Stringid
(
29424328
,
2
))
if
opt
==
1
then
if
opt
==
1
then
...
...
script/c30353551.lua
View file @
53576ec9
...
@@ -35,10 +35,10 @@ end
...
@@ -35,10 +35,10 @@ end
function
c30353551
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c30353551
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
if
a
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
a
:
IsType
(
TYPE_NORMAL
)
and
a
:
GetLevel
()
<=
2
then
if
a
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
a
:
IsType
(
TYPE_NORMAL
)
and
a
:
IsLevelBelow
(
2
)
then
c30353551
[
a
:
GetControler
()]
=
c30353551
[
a
:
GetControler
()]
+
1
c30353551
[
a
:
GetControler
()]
=
c30353551
[
a
:
GetControler
()]
+
1
end
end
if
d
and
d
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
d
:
IsType
(
TYPE_NORMAL
)
and
d
:
GetLevel
()
<=
2
then
if
d
and
d
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
d
:
IsType
(
TYPE_NORMAL
)
and
d
:
IsLevelBelow
(
2
)
then
c30353551
[
d
:
GetControler
()]
=
c30353551
[
d
:
GetControler
()]
+
1
c30353551
[
d
:
GetControler
()]
=
c30353551
[
d
:
GetControler
()]
+
1
end
end
end
end
...
@@ -47,7 +47,7 @@ function c30353551.clear(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,7 +47,7 @@ function c30353551.clear(e,tp,eg,ep,ev,re,r,rp)
c30353551
[
1
]
=
0
c30353551
[
1
]
=
0
end
end
function
c30353551
.
filter
(
c
,
e
,
tp
)
function
c30353551
.
filter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
GetLevel
()
<=
2
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsLevelBelow
(
2
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c30353551
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c30353551
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
c30353551
[
tp
]
~=
0
end
if
chk
==
0
then
return
c30353551
[
tp
]
~=
0
end
...
...
script/c40695128.lua
View file @
53576ec9
...
@@ -80,8 +80,8 @@ function c40695128.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -80,8 +80,8 @@ function c40695128.condition(e,tp,eg,ep,ev,re,r,rp)
return
tp
==
Duel
.
GetTurnPlayer
()
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
0
return
tp
==
Duel
.
GetTurnPlayer
()
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
0
end
end
function
c40695128
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c40695128
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ConfirmDecktop
(
tp
,
1
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
1
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
1
)
Duel
.
ConfirmCards
(
tp
,
g
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
local
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
40695128
,
2
),
aux
.
Stringid
(
40695128
,
3
))
local
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
40695128
,
2
),
aux
.
Stringid
(
40695128
,
3
))
if
opt
==
1
then
if
opt
==
1
then
...
...
script/c41160595.lua
View file @
53576ec9
...
@@ -13,7 +13,7 @@ function c41160595.initial_effect(c)
...
@@ -13,7 +13,7 @@ function c41160595.initial_effect(c)
end
end
function
c41160595
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c41160595
.
setcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
bit
.
band
(
r
,
0x41
)
==
0x41
and
rp
~=
tp
and
c
:
GetPreviousControler
()
==
tp
return
bit
.
band
(
r
,
0x41
)
==
0x41
and
rp
~=
tp
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsPreviousPosition
(
POS_FACEDOWN
)
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsPreviousPosition
(
POS_FACEDOWN
)
end
end
function
c41160595
.
filter
(
c
)
function
c41160595
.
filter
(
c
)
...
...
script/c42647539.lua
View file @
53576ec9
...
@@ -18,10 +18,10 @@ function c42647539.initial_effect(c)
...
@@ -18,10 +18,10 @@ function c42647539.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c42647539
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c42647539
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
Is
Controler
(
1
-
tp
)
and
chkc
:
Is
Location
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
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
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
end
end
function
c42647539
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c42647539
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c49389523.lua
View file @
53576ec9
...
@@ -8,7 +8,7 @@ function c49389523.initial_effect(c)
...
@@ -8,7 +8,7 @@ function c49389523.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
49389523
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
49389523
,
0
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_DESTROYED
)
e1
:
SetCode
(
EVENT_DESTROYED
)
e1
:
SetCondition
(
c49389523
.
spcon
)
e1
:
SetCondition
(
c49389523
.
spcon
)
e1
:
SetTarget
(
c49389523
.
sptg
)
e1
:
SetTarget
(
c49389523
.
sptg
)
...
...
script/c66742250.lua
View file @
53576ec9
...
@@ -11,11 +11,11 @@ function c66742250.initial_effect(c)
...
@@ -11,11 +11,11 @@ function c66742250.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c66742250
.
filter
(
c
)
function
c66742250
.
filter
(
c
)
return
c
:
Is
Faceup
(
)
and
c
:
IsType
(
TYPE_EFFECT
)
return
c
:
Is
Position
(
POS_FACEUP_ATTACK
)
and
c
:
IsType
(
TYPE_EFFECT
)
end
end
function
c66742250
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c66742250
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c66742250
.
filter
,
Duel
.
GetTurnPlayer
()
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c66742250
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
c66742250
.
filter
,
Duel
.
GetTurnPlayer
()
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c66742250
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
function
c66742250
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c66742250
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c67959180.lua
View file @
53576ec9
...
@@ -25,9 +25,9 @@ function c67959180.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,9 +25,9 @@ function c67959180.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
+
RESET_PHASE
+
PHASE_END
)
if
opt
==
coin
then
if
opt
==
coin
then
e1
:
SetValue
(
c
:
Get
Base
Attack
()
/
2
)
e1
:
SetValue
(
c
:
GetAttack
()
/
2
)
else
else
e1
:
SetValue
(
c
:
Get
Base
Attack
()
*
2
)
e1
:
SetValue
(
c
:
GetAttack
()
*
2
)
end
end
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
...
...
script/c76614003.lua
View file @
53576ec9
...
@@ -13,8 +13,8 @@ function c76614003.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -13,8 +13,8 @@ function c76614003.condition(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c76614003
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c76614003
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
==
0
then
return
end
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
==
0
then
return
end
Duel
.
ConfirmDecktop
(
tp
,
1
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
1
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
1
)
Duel
.
ConfirmCards
(
tp
,
g
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
local
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
76614003
,
1
),
aux
.
Stringid
(
76614003
,
2
))
local
opt
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
76614003
,
1
),
aux
.
Stringid
(
76614003
,
2
))
if
opt
==
1
then
if
opt
==
1
then
...
...
script/c86170989.lua
View file @
53576ec9
...
@@ -9,10 +9,10 @@ function c86170989.initial_effect(c)
...
@@ -9,10 +9,10 @@ function c86170989.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c86170989
.
filter1
(
c
)
function
c86170989
.
filter1
(
c
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
GetAttack
()
<=
1200
and
c
:
IsAbleToGrave
()
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsAttackBelow
(
1200
)
and
c
:
IsAbleToGrave
()
end
end
function
c86170989
.
filter2
(
c
,
e
,
tp
)
function
c86170989
.
filter2
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
GetAttack
()
<=
1200
return
c
:
IsRace
(
RACE_MACHINE
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
and
c
:
IsAttackBelow
(
1200
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c86170989
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c86170989
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
script/c87313164.lua
View file @
53576ec9
...
@@ -15,7 +15,7 @@ function c87313164.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -15,7 +15,7 @@ function c87313164.condition(e,tp,eg,ep,ev,re,r,rp)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c87313164
.
cfilter
(
c
)
function
c87313164
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_FISH
+
RACE_SEASERPENT
+
RACE_AQUA
)
and
c
:
IsAbleToDeck
()
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_FISH
+
RACE_SEASERPENT
+
RACE_AQUA
)
and
c
:
IsAbleToDeck
AsCost
()
end
end
function
c87313164
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c87313164
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c87313164
.
cfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c87313164
.
cfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
end
...
...
script/c93130021.lua
View file @
53576ec9
...
@@ -57,7 +57,7 @@ function c93130021.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,7 +57,7 @@ function c93130021.operation(e,tp,eg,ep,ev,re,r,rp)
local
lv
=
c
:
GetLevel
()
local
lv
=
c
:
GetLevel
()
local
race
=
c
:
GetRace
()
local
race
=
c
:
GetRace
()
local
att
=
c
:
GetAttribute
()
local
att
=
c
:
GetAttribute
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
or
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
93130022
,
0
,
0x4011
,
atk
,
def
,
lv
,
race
,
att
)
then
return
end
or
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
93130022
,
0
,
0x4011
,
atk
,
def
,
lv
,
race
,
att
)
then
return
end
local
token
=
Duel
.
CreateToken
(
tp
,
93130022
)
local
token
=
Duel
.
CreateToken
(
tp
,
93130022
)
c
:
CreateRelation
(
token
,
RESET_EVENT
+
0x1fe0000
)
c
:
CreateRelation
(
token
,
RESET_EVENT
+
0x1fe0000
)
...
...
script/c96383838.lua
View file @
53576ec9
...
@@ -11,7 +11,7 @@ function c96383838.initial_effect(c)
...
@@ -11,7 +11,7 @@ function c96383838.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c96383838
.
filter
(
c
,
e
,
tp
)
function
c96383838
.
filter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
GetLevel
()
<=
2
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsLevelBelow
(
2
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c96383838
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c96383838
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c96383838
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c96383838
.
filter
(
chkc
,
e
,
tp
)
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