Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
V
Vgdpro Scripts
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
List
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
xiaoye
Vgdpro Scripts
Commits
7de1cfac
Commit
7de1cfac
authored
Jul 25, 2024
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
追加c:IsRelateToEffect(e)
对于攻击力等数值上升追加c:IsRelateToEffect(e)判断
parent
404dd713
Changes
32
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
144 additions
and
76 deletions
+144
-76
VgFuncLib.lua
VgFuncLib.lua
+33
-25
c10101006.lua
c10101006.lua
+4
-2
c10102005.lua
c10102005.lua
+3
-1
c10103005.lua
c10103005.lua
+4
-2
c10103008.lua
c10103008.lua
+3
-1
c10104002.lua
c10104002.lua
+4
-2
c10104007.lua
c10104007.lua
+11
-9
c10202003.lua
c10202003.lua
+1
-1
c10202005.lua
c10202005.lua
+1
-1
c10202010.lua
c10202010.lua
+3
-1
c10203002.lua
c10203002.lua
+4
-2
c10203005.lua
c10203005.lua
+4
-2
c10203006.lua
c10203006.lua
+3
-1
c10203007.lua
c10203007.lua
+3
-1
c10301003.lua
c10301003.lua
+3
-1
c10301005.lua
c10301005.lua
+3
-1
c10301007.lua
c10301007.lua
+3
-1
c10401002.lua
c10401002.lua
+3
-1
c10401003.lua
c10401003.lua
+4
-2
c10401027.lua
c10401027.lua
+4
-2
c10401046.lua
c10401046.lua
+3
-1
c10401057.lua
c10401057.lua
+4
-2
c10401071.lua
c10401071.lua
+3
-1
c10501020.lua
c10501020.lua
+4
-2
c10501077.lua
c10501077.lua
+4
-2
c10501085.lua
c10501085.lua
+3
-1
c10501086.lua
c10501086.lua
+3
-1
c10501088.lua
c10501088.lua
+3
-1
c20101001.lua
c20101001.lua
+7
-3
c20103001.lua
c20103001.lua
+3
-1
c20104001.lua
c20104001.lua
+3
-1
c20106001.lua
c20106001.lua
+3
-1
No files found.
VgFuncLib.lua
View file @
7de1cfac
...
@@ -385,32 +385,36 @@ end
...
@@ -385,32 +385,36 @@ end
---@param val integer 要上升的攻击力(可以为负)
---@param val integer 要上升的攻击力(可以为负)
---@param reset integer|nil 指示重置的时点,默认为“回合结束时”。无论如何,都会在离场时重置。
---@param reset integer|nil 指示重置的时点,默认为“回合结束时”。无论如何,都会在离场时重置。
function
VgF
.
AtkUp
(
c
,
g
,
val
,
reset
,
resetcount
)
function
VgF
.
AtkUp
(
c
,
g
,
val
,
reset
,
resetcount
)
if
not
c
then
return
end
if
not
c
or
not
g
then
return
end
if
not
resetcount
then
resetcount
=
1
end
if
not
resetcount
then
resetcount
=
1
end
if
not
reset
then
reset
=
RESET_PHASE
+
PHASE_END
end
if
not
reset
then
reset
=
RESET_PHASE
+
PHASE_END
end
if
not
val
or
val
==
0
then
return
end
if
not
val
or
val
==
0
then
return
end
if
VgF
.
GetValueType
(
g
)
==
"Group"
and
g
:
GetCount
()
>
0
then
if
VgF
.
GetValueType
(
g
)
==
"Group"
and
g
:
GetCount
()
>
0
then
local
e
=
{}
local
e
=
{}
for
tc
in
VgF
.
Next
(
g
)
do
for
tc
in
VgF
.
Next
(
g
)
do
if
tc
:
IsLocation
(
LOCATION_MZONE
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
val
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
reset
,
resetcount
)
tc
:
RegisterEffect
(
e1
)
table.insert
(
e
,
e1
)
end
end
return
e
elseif
VgF
.
GetValueType
(
g
)
==
"Card"
then
local
tc
=
g
if
tc
:
IsLocation
(
LOCATION_MZONE
)
then
local
tc
=
VgF
.
ReturnCard
(
g
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
val
)
e1
:
SetValue
(
val
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
reset
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
reset
,
resetcount
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
reset
,
resetcount
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
table.insert
(
e
,
e1
)
return
e1
end
end
return
e
elseif
VgF
.
GetValueType
(
g
)
==
"Card"
then
local
tc
=
VgF
.
ReturnCard
(
g
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
val
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
reset
,
resetcount
)
tc
:
RegisterEffect
(
e1
)
return
e1
end
end
end
end
---以c的名义,使g(中的每一张卡)的盾值上升val,并在reset时重置。
---以c的名义,使g(中的每一张卡)的盾值上升val,并在reset时重置。
...
@@ -419,31 +423,35 @@ end
...
@@ -419,31 +423,35 @@ end
---@param val integer 要上升的盾值(可以为负)
---@param val integer 要上升的盾值(可以为负)
---@param reset integer|nil 指示重置的时点,默认为“回合结束时”。无论如何,都会在离场时重置。
---@param reset integer|nil 指示重置的时点,默认为“回合结束时”。无论如何,都会在离场时重置。
function
VgF
.
DefUp
(
c
,
g
,
val
,
reset
,
resetcount
)
function
VgF
.
DefUp
(
c
,
g
,
val
,
reset
,
resetcount
)
if
not
c
then
return
end
if
not
c
or
not
g
then
return
end
if
not
reset
then
reset
=
RESET_PHASE
+
PHASE_END
end
if
not
reset
then
reset
=
RESET_PHASE
+
PHASE_END
end
if
not
resetcount
then
resetcount
=
1
end
if
not
resetcount
then
resetcount
=
1
end
if
not
val
or
val
==
0
then
return
end
if
not
val
or
val
==
0
then
return
end
if
VgF
.
GetValueType
(
g
)
==
"Group"
and
g
:
GetCount
()
>
0
then
if
VgF
.
GetValueType
(
g
)
==
"Group"
and
g
:
GetCount
()
>
0
then
local
e
=
{}
local
e
=
{}
for
tc
in
VgF
.
Next
(
g
)
do
for
tc
in
VgF
.
Next
(
g
)
do
if
tc
:
IsLocation
(
LOCATION_MZONE
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e1
:
SetValue
(
val
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
reset
,
resetcount
)
tc
:
RegisterEffect
(
e1
)
table.insert
(
e
,
e1
)
end
end
return
e
elseif
VgF
.
GetValueType
(
g
)
==
"Card"
then
local
tc
=
g
if
tc
:
IsLocation
(
LOCATION_MZONE
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e1
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e1
:
SetValue
(
val
)
e1
:
SetValue
(
val
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
reset
,
resetcount
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
reset
,
resetcount
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
table.insert
(
e
,
e1
)
return
e1
end
end
return
e
elseif
VgF
.
GetValueType
(
g
)
==
"Card"
then
local
tc
=
VgF
.
ReturnCard
(
g
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e1
:
SetValue
(
val
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
reset
,
resetcount
)
tc
:
RegisterEffect
(
e1
)
return
e1
end
end
end
end
---以c的名义,使g(中的每一张卡)的☆上升val,并在reset时重置。
---以c的名义,使g(中的每一张卡)的☆上升val,并在reset时重置。
...
...
c10101006.lua
View file @
7de1cfac
...
@@ -7,8 +7,10 @@ function cm.initial_effect(c)
...
@@ -7,8 +7,10 @@ function cm.initial_effect(c)
end
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
e1
=
vgf
.
AtkUp
(
c
,
c
,
5000
,
nil
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
EffectReset
(
c
,
e1
,
EVENT_BATTLED
)
local
e1
=
vgf
.
AtkUp
(
c
,
c
,
5000
,
nil
)
vgf
.
EffectReset
(
c
,
e1
,
EVENT_BATTLED
)
end
if
vgf
.
GetMatchingGroup
(
vgf
.
VMonsterFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
nil
):
GetFirst
():
GetOverlayCount
()
>=
2
and
Duel
.
SelectEffectYesNo
(
tp
,
vgf
.
stringid
(
VgID
,
10
))
then
if
vgf
.
GetMatchingGroup
(
vgf
.
VMonsterFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
nil
):
GetFirst
():
GetOverlayCount
()
>=
2
and
Duel
.
SelectEffectYesNo
(
tp
,
vgf
.
stringid
(
VgID
,
10
))
then
local
cg
=
vgf
.
GetMatchingGroup
(
vgf
.
VMonsterFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
):
GetFirst
():
GetOverlayGroup
():
Select
(
tp
,
2
,
2
,
nil
)
local
cg
=
vgf
.
GetMatchingGroup
(
vgf
.
VMonsterFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
):
GetFirst
():
GetOverlayGroup
():
Select
(
tp
,
2
,
2
,
nil
)
if
vgf
.
Sendto
(
LOCATION_DROP
,
cg
,
REASON_COST
)
==
2
then
if
vgf
.
Sendto
(
LOCATION_DROP
,
cg
,
REASON_COST
)
==
2
then
...
...
c10102005.lua
View file @
7de1cfac
...
@@ -15,6 +15,8 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -15,6 +15,8 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if
VgF
.
GetValueType
(
ct
)
==
"number"
and
ct
==
10102001
and
vgf
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
LOCATION_DAMAGE
,
0
,
1
,
nil
)
and
Duel
.
SelectEffectYesNo
(
tp
,
vgf
.
stringid
(
VgID
,
10
))
then
if
VgF
.
GetValueType
(
ct
)
==
"number"
and
ct
==
10102001
and
vgf
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
LOCATION_DAMAGE
,
0
,
1
,
nil
)
and
Duel
.
SelectEffectYesNo
(
tp
,
vgf
.
stringid
(
VgID
,
10
))
then
local
g
=
vgf
.
SelectMatchingCard
(
HINTMSG_DAMAGE
,
e
,
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_DAMAGE
,
0
,
1
,
1
,
nil
)
local
g
=
vgf
.
SelectMatchingCard
(
HINTMSG_DAMAGE
,
e
,
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_DAMAGE
,
0
,
1
,
1
,
nil
)
Duel
.
ChangePosition
(
g
,
POS_FACEDOWN_ATTACK
)
Duel
.
ChangePosition
(
g
,
POS_FACEDOWN_ATTACK
)
vgf
.
AtkUp
(
c
,
c
,
15000
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
AtkUp
(
c
,
c
,
15000
)
end
end
end
end
end
\ No newline at end of file
c10103005.lua
View file @
7de1cfac
...
@@ -7,6 +7,8 @@ function cm.initial_effect(c)
...
@@ -7,6 +7,8 @@ function cm.initial_effect(c)
end
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
e1
=
vgf
.
AtkUp
(
c
,
c
,
5000
,
nil
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
EffectReset
(
c
,
e1
,
EVENT_BATTLED
)
local
e1
=
vgf
.
AtkUp
(
c
,
c
,
5000
,
nil
)
vgf
.
EffectReset
(
c
,
e1
,
EVENT_BATTLED
)
end
end
end
c10103008.lua
View file @
7de1cfac
...
@@ -8,5 +8,7 @@ function cm.initial_effect(c)
...
@@ -8,5 +8,7 @@ function cm.initial_effect(c)
end
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
vgf
.
AtkUp
(
c
,
c
,
5000
,
nil
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
AtkUp
(
c
,
c
,
5000
,
nil
)
end
end
end
c10104002.lua
View file @
7de1cfac
...
@@ -21,8 +21,10 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -21,8 +21,10 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
e1
=
vgf
.
AtkUp
(
c
,
c
,
10000
,
nil
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
EffectReset
(
c
,
e1
,
EVENT_BATTLED
)
local
e1
=
vgf
.
AtkUp
(
c
,
c
,
10000
)
vgf
.
EffectReset
(
c
,
e1
,
EVENT_BATTLED
)
end
end
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c10104007.lua
View file @
7de1cfac
...
@@ -6,15 +6,17 @@ function cm.initial_effect(c)
...
@@ -6,15 +6,17 @@ function cm.initial_effect(c)
end
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
vgf
.
AtkUp
(
c
,
c
,
5000
,
nil
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
e2
=
Effect
.
CreateEffect
(
c
)
vgf
.
AtkUp
(
c
,
c
,
5000
,
nil
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e2
:
SetValue
(
SKILL_SUPPORT
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetValue
(
SKILL_SUPPORT
)
c
:
RegisterEffect
(
e2
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e2
)
end
end
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
vgf
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
LOCATION_DAMAGE
,
0
,
1
,
nil
)
and
vgf
.
GetMatchingGroup
(
vgf
.
VMonsterFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
nil
):
GetFirst
():
GetOverlayCount
()
>=
1
end
if
chk
==
0
then
return
vgf
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
LOCATION_DAMAGE
,
0
,
1
,
nil
)
and
vgf
.
GetMatchingGroup
(
vgf
.
VMonsterFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
nil
):
GetFirst
():
GetOverlayCount
()
>=
1
end
...
...
c10202003.lua
View file @
7de1cfac
...
@@ -17,7 +17,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -17,7 +17,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
e2
=
vgf
.
AtkUp
(
c
,
c
,
5000
)
local
e2
=
vgf
.
AtkUp
(
c
,
c
,
5000
)
vgf
.
EffectReset
(
c
,
e2
,
EVENT_BATTLED
)
vgf
.
EffectReset
(
c
,
e2
,
EVENT_BATTLED
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c10202005.lua
View file @
7de1cfac
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
...
@@ -7,7 +7,7 @@ function cm.initial_effect(c)
end
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
e2
=
vgf
.
AtkUp
(
c
,
c
,
10000
)
local
e2
=
vgf
.
AtkUp
(
c
,
c
,
10000
)
vgf
.
EffectReset
(
c
,
e2
,
EVENT_BATTLED
)
vgf
.
EffectReset
(
c
,
e2
,
EVENT_BATTLED
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c10202010.lua
View file @
7de1cfac
...
@@ -14,5 +14,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -14,5 +14,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
vgf
.
Sendto
(
LOCATION_OVERLAY
,
g
,
vgf
.
GetVMonster
(
tp
))
vgf
.
Sendto
(
LOCATION_OVERLAY
,
g
,
vgf
.
GetVMonster
(
tp
))
end
end
vgf
.
AtkUp
(
c
,
c
,
2000
,
nil
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
AtkUp
(
c
,
c
,
2000
,
nil
)
end
end
end
c10203002.lua
View file @
7de1cfac
...
@@ -15,8 +15,10 @@ function cm.condition1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -15,8 +15,10 @@ function cm.condition1(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
e1
=
vgf
.
AtkUp
(
c
,
c
,
5000
,
nil
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
EffectReset
(
c
,
e1
,
EVENT_BATTLED
)
local
e1
=
vgf
.
AtkUp
(
c
,
c
,
5000
,
nil
)
vgf
.
EffectReset
(
c
,
e1
,
EVENT_BATTLED
)
end
end
end
function
cm
.
cfilter
(
c
,
mc
)
function
cm
.
cfilter
(
c
,
mc
)
return
vgf
.
GetColumnGroup
(
c
):
IsContains
(
mc
)
and
c
:
IsControler
(
mc
:
GetControler
())
and
c
:
GetFlagEffect
(
FLAG_SUPPORT
)
>
0
return
vgf
.
GetColumnGroup
(
c
):
IsContains
(
mc
)
and
c
:
IsControler
(
mc
:
GetControler
())
and
c
:
GetFlagEffect
(
FLAG_SUPPORT
)
>
0
...
...
c10203005.lua
View file @
7de1cfac
...
@@ -19,8 +19,10 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
...
@@ -19,8 +19,10 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
vgf
.
AtkUp
(
c
,
c
,
15000
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
if
Duel
.
GetFlagEffect
(
tp
,
m
)
>
0
then
vgf
.
StarUp
(
c
,
c
,
1
)
end
vgf
.
AtkUp
(
c
,
c
,
15000
)
if
Duel
.
GetFlagEffect
(
tp
,
m
)
>
0
then
vgf
.
StarUp
(
c
,
c
,
1
)
end
end
end
end
function
cm
.
checkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
checkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
Card
.
IsSummonType
,
1
,
nil
,
SUMMON_TYPE_SELFRIDE
)
return
eg
:
IsExists
(
Card
.
IsSummonType
,
1
,
nil
,
SUMMON_TYPE_SELFRIDE
)
...
...
c10203006.lua
View file @
7de1cfac
...
@@ -5,7 +5,9 @@ function cm.initial_effect(c)
...
@@ -5,7 +5,9 @@ function cm.initial_effect(c)
end
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
vgf
.
AtkUp
(
c
,
c
,
10000
,
nil
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
AtkUp
(
c
,
c
,
10000
,
nil
)
end
end
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c10203007.lua
View file @
7de1cfac
...
@@ -12,5 +12,7 @@ function cm.filter(c,tp)
...
@@ -12,5 +12,7 @@ function cm.filter(c,tp)
end
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
vgf
.
AtkUp
(
c
,
c
,
10000
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
AtkUp
(
c
,
c
,
10000
)
end
end
end
\ No newline at end of file
c10301003.lua
View file @
7de1cfac
...
@@ -23,5 +23,7 @@ function cm.filter(c,e,tp)
...
@@ -23,5 +23,7 @@ function cm.filter(c,e,tp)
end
end
function
cm
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
vgf
.
AtkUp
(
c
,
c
,
2000
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
AtkUp
(
c
,
c
,
2000
)
end
end
end
\ No newline at end of file
c10301005.lua
View file @
7de1cfac
...
@@ -5,7 +5,9 @@ function cm.initial_effect(c)
...
@@ -5,7 +5,9 @@ function cm.initial_effect(c)
end
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
vgf
.
AtkUp
(
c
,
c
,
10000
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
AtkUp
(
c
,
c
,
10000
)
end
end
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c10301007.lua
View file @
7de1cfac
...
@@ -5,7 +5,9 @@ function cm.initial_effect(c)
...
@@ -5,7 +5,9 @@ function cm.initial_effect(c)
end
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
vgf
.
AtkUp
(
c
,
c
,
10000
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
AtkUp
(
c
,
c
,
10000
)
end
end
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c10401002.lua
View file @
7de1cfac
...
@@ -17,7 +17,9 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -17,7 +17,9 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
vgf
.
SelectMatchingCard
(
HINTMSG_LEAVEONFIELD
,
e
,
tp
,
vgf
.
VMonsterFilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
vgf
.
SelectMatchingCard
(
HINTMSG_LEAVEONFIELD
,
e
,
tp
,
vgf
.
VMonsterFilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
vgf
.
Sendto
(
LOCATION_DROP
,
g
,
REASON_EFFECT
)
end
if
g
:
GetCount
()
>
0
then
vgf
.
Sendto
(
LOCATION_DROP
,
g
,
REASON_EFFECT
)
end
vgf
.
AtkUp
(
c
,
c
,
10000
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
AtkUp
(
c
,
c
,
10000
)
end
end
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFlagEffect
(
tp
,
m
)
>
0
return
Duel
.
GetFlagEffect
(
tp
,
m
)
>
0
...
...
c10401003.lua
View file @
7de1cfac
...
@@ -8,8 +8,10 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -8,8 +8,10 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
local
ct
=
c
:
GetOverlayCount
()
local
ct
=
c
:
GetOverlayCount
()
if
ct
>=
5
then
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
if
ct
>=
5
then
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
if
ct
>=
10
then
if
ct
>=
10
then
local
t
=
{
vgf
.
AtkUp
(
c
,
c
,
10000
),
vgf
.
StarUp
(
c
,
c
,
1
)}
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
EffectReset
(
c
,
t
,
EVENT_BATTLED
)
local
t
=
{
vgf
.
AtkUp
(
c
,
c
,
10000
),
vgf
.
StarUp
(
c
,
c
,
1
)}
vgf
.
EffectReset
(
c
,
t
,
EVENT_BATTLED
)
end
end
end
if
ct
>=
15
then
if
ct
>=
15
then
local
g1
=
vgf
.
GetMatchingGroup
(
vgf
.
RMonsterFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g1
=
vgf
.
GetMatchingGroup
(
vgf
.
RMonsterFilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
...
...
c10401027.lua
View file @
7de1cfac
...
@@ -18,8 +18,10 @@ end
...
@@ -18,8 +18,10 @@ end
function
cm
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
vgf
.
OverlayFill
(
1
)(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
vgf
.
OverlayFill
(
1
)(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
e1
=
vgf
.
AtkUp
(
c
,
c
,
5000
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
EffectReset
(
c
,
e1
,
EVENT_BATTLED
)
local
e1
=
vgf
.
AtkUp
(
c
,
c
,
5000
)
vgf
.
EffectReset
(
c
,
e1
,
EVENT_BATTLED
)
end
end
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
vgf
.
GetMatchingGroupCount
(
vgf
.
RMonsterFilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
<=
2
return
vgf
.
GetMatchingGroupCount
(
vgf
.
RMonsterFilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
<=
2
...
...
c10401046.lua
View file @
7de1cfac
...
@@ -24,7 +24,9 @@ function cm.op2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -24,7 +24,9 @@ function cm.op2(e,tp,eg,ep,ev,re,r,rp)
Duel
.
DisableShuffleCheck
()
Duel
.
DisableShuffleCheck
()
if
Duel
.
SelectOption
(
tp
,
1195
,
1196
)
==
1
then
if
Duel
.
SelectOption
(
tp
,
1195
,
1196
)
==
1
then
Duel
.
MoveSequence
(
g
:
GetFirst
(),
1
)
Duel
.
MoveSequence
(
g
:
GetFirst
(),
1
)
vgf
.
AtkUp
(
c
,
c
,
2000
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
AtkUp
(
c
,
c
,
2000
)
end
end
end
end
end
end
end
\ No newline at end of file
c10401057.lua
View file @
7de1cfac
...
@@ -8,6 +8,8 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
...
@@ -8,6 +8,8 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
e1
=
vgf
.
AtkUp
(
c
,
c
,
5000
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
EffectReset
(
c
,
e1
,
EVENT_BATTLED
)
local
e1
=
vgf
.
AtkUp
(
c
,
c
,
5000
)
vgf
.
EffectReset
(
c
,
e1
,
EVENT_BATTLED
)
end
end
end
\ No newline at end of file
c10401071.lua
View file @
7de1cfac
...
@@ -11,5 +11,7 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
...
@@ -11,5 +11,7 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
vgf
.
AtkUp
(
c
,
c
,
2000
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
AtkUp
(
c
,
c
,
2000
)
end
end
end
c10501020.lua
View file @
7de1cfac
...
@@ -10,8 +10,10 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
...
@@ -10,8 +10,10 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
e1
=
vgf
.
AtkUp
(
c
,
c
,
5000
,
nil
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
EffectReset
(
c
,
e1
,
EVENT_BATTLED
)
local
e1
=
vgf
.
AtkUp
(
c
,
c
,
5000
,
nil
)
vgf
.
EffectReset
(
c
,
e1
,
EVENT_BATTLED
)
end
if
vgf
.
IsSequence
(
c
,
2
)
then
if
vgf
.
IsSequence
(
c
,
2
)
then
vgf
.
DamageFill
(
1
)(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
vgf
.
DamageFill
(
1
)(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
...
...
c10501077.lua
View file @
7de1cfac
...
@@ -3,12 +3,14 @@ local cm,m,o=GetID()
...
@@ -3,12 +3,14 @@ local cm,m,o=GetID()
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
vgf
.
VgCard
(
c
)
vgf
.
VgCard
(
c
)
-- 【自】【R】:你的后防者被返回手牌时,这个回合中,这个单位的力量+5000。
-- 【自】【R】:你的后防者被返回手牌时,这个回合中,这个单位的力量+5000。
vgd
.
EffectTypeTrigger
(
c
,
m
,
LOCATION_MZONE
,
EFFECT_TYPE_FIELD
,
EVENT_TO_HAND
,
VgF
.
AtkUp
(
c
,
c
,
5000
)
,
nil
,
cm
.
con
)
vgd
.
EffectTypeTrigger
(
c
,
m
,
LOCATION_MZONE
,
EFFECT_TYPE_FIELD
,
EVENT_TO_HAND
,
cm
.
op
,
nil
,
cm
.
con
)
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
VgF
.
AtkUp
(
c
,
c
,
5000
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
AtkUp
(
c
,
c
,
5000
,
nil
)
end
end
end
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c10501085.lua
View file @
7de1cfac
...
@@ -9,7 +9,9 @@ function cm.initial_effect(c)
...
@@ -9,7 +9,9 @@ function cm.initial_effect(c)
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
VgF
.
AtkUp
(
c
,
c
,
5000
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
VgF
.
AtkUp
(
c
,
c
,
5000
)
end
end
end
function
cm
.
filter
(
c
)
function
cm
.
filter
(
c
)
return
c
:
IsCode
(
0xc040
)
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
0xc040
)
and
c
:
IsAbleToHand
()
...
...
c10501086.lua
View file @
7de1cfac
...
@@ -11,7 +11,9 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
...
@@ -11,7 +11,9 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
vgf
.
AtkUp
(
c
,
c
,
2000
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
AtkUp
(
c
,
c
,
2000
)
end
end
end
function
cm
.
filter
(
c
,
tp
,
mc
)
function
cm
.
filter
(
c
,
tp
,
mc
)
local
g
=
VgF
.
GetColumnGroup
(
mc
)
local
g
=
VgF
.
GetColumnGroup
(
mc
)
...
...
c10501088.lua
View file @
7de1cfac
...
@@ -12,5 +12,7 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
...
@@ -12,5 +12,7 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
vgf
.
AtkUp
(
c
,
c
,
2000
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
AtkUp
(
c
,
c
,
2000
)
end
end
end
\ No newline at end of file
c20101001.lua
View file @
7de1cfac
...
@@ -11,7 +11,9 @@ end
...
@@ -11,7 +11,9 @@ end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
vgf
.
SearchCard
(
LOCATION_HAND
,
LOCATION_DECK
,
cm
.
filter
)(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
vgf
.
SearchCard
(
LOCATION_HAND
,
LOCATION_DECK
,
cm
.
filter
)(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
vgf
.
AtkUp
(
c
,
c
,
10000
,
nil
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
AtkUp
(
c
,
c
,
10000
,
nil
)
end
end
end
--返回效果一寻找卡密
--返回效果一寻找卡密
function
cm
.
filter
(
c
)
function
cm
.
filter
(
c
)
...
@@ -27,6 +29,8 @@ function cm.operation2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -27,6 +29,8 @@ function cm.operation2(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
vgf
.
SelectMatchingCard
(
HINTMSG_LEAVEONFIELD
,
e
,
tp
,
vgf
.
RMonsterFilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
vgf
.
SelectMatchingCard
(
HINTMSG_LEAVEONFIELD
,
e
,
tp
,
vgf
.
RMonsterFilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
vgf
.
Sendto
(
LOCATION_DROP
,
g
,
REASON_EFFECT
)
vgf
.
Sendto
(
LOCATION_DROP
,
g
,
REASON_EFFECT
)
vgf
.
AtkUp
(
c
,
c
,
5000
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
StarUp
(
c
,
c
,
1
)
vgf
.
AtkUp
(
c
,
c
,
5000
)
vgf
.
StarUp
(
c
,
c
,
1
)
end
end
end
\ No newline at end of file
c20103001.lua
View file @
7de1cfac
...
@@ -7,7 +7,9 @@ end
...
@@ -7,7 +7,9 @@ end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
vgf
.
SearchCard
(
LOCATION_HAND
,
LOCATION_DECK
,
cm
.
filter
,
1
,
0
)(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
vgf
.
SearchCard
(
LOCATION_HAND
,
LOCATION_DECK
,
cm
.
filter
,
1
,
0
)(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
vgf
.
AtkUp
(
c
,
c
,
10000
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
AtkUp
(
c
,
c
,
10000
)
end
end
end
function
cm
.
filter
(
c
)
function
cm
.
filter
(
c
)
return
c
:
IsCode
(
m
)
return
c
:
IsCode
(
m
)
...
...
c20104001.lua
View file @
7de1cfac
...
@@ -11,7 +11,9 @@ end
...
@@ -11,7 +11,9 @@ end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
vgf
.
SearchCard
(
LOCATION_HAND
,
LOCATION_DECK
,
cm
.
filter
)(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
vgf
.
SearchCard
(
LOCATION_HAND
,
LOCATION_DECK
,
cm
.
filter
)(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
vgf
.
AtkUp
(
c
,
c
,
10000
,
nil
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
AtkUp
(
c
,
c
,
10000
,
nil
)
end
end
end
--返回效果一寻找目标
--返回效果一寻找目标
function
cm
.
filter
(
c
)
function
cm
.
filter
(
c
)
...
...
c20106001.lua
View file @
7de1cfac
...
@@ -11,7 +11,9 @@ end
...
@@ -11,7 +11,9 @@ end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
vgf
.
SearchCard
(
LOCATION_HAND
,
LOCATION_DECK
,
cm
.
filter
)(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
vgf
.
SearchCard
(
LOCATION_HAND
,
LOCATION_DECK
,
cm
.
filter
)(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
vgf
.
AtkUp
(
c
,
c
,
10000
,
nil
)
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
vgf
.
AtkUp
(
c
,
c
,
10000
,
nil
)
end
end
end
--返回找的卡密
--返回找的卡密
function
cm
.
filter
(
c
)
function
cm
.
filter
(
c
)
...
...
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