Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
b386c8bf
Commit
b386c8bf
authored
Oct 30, 2023
by
Huangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6e4faf0a
Pipeline
#23920
passed with stages
in 25 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
expansions/script/c47344561.lua
expansions/script/c47344561.lua
+14
-6
No files found.
expansions/script/c47344561.lua
View file @
b386c8bf
...
...
@@ -8,7 +8,7 @@ function s.initial_effect(c)
--def
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_UPDATE_
ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_
DEFENSE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetValue
(
s
.
value
)
...
...
@@ -20,15 +20,17 @@ function s.initial_effect(c)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetCondition
(
s
.
costcon
)
e2
:
SetCost
(
s
.
costchk
)
e2
:
SetOperation
(
s
.
costop
)
c
:
RegisterEffect
(
e2
)
--accumulate
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
0x10000000
+
id
)
e3
:
SetCode
(
EFFECT_FLAG_EFFECT
+
id
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetCondition
(
s
.
costcon
)
e3
:
SetTargetRange
(
0
,
1
)
c
:
RegisterEffect
(
e3
)
--to grave
...
...
@@ -44,14 +46,21 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e5
)
end
function
s
.
value
(
e
,
c
)
return
Duel
.
GetCounter
(
c
:
GetControler
(),
1
,
0
,
0x43f
)
*-
200
return
Duel
.
GetCounter
(
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
,
0x43f
)
*-
200
end
function
s
.
costcon
(
e
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
end
function
s
.
costchk
(
e
,
te_or_c
,
tp
)
local
ct
=
Duel
.
GetFlagEffect
(
tp
,
id
)
return
Duel
.
CheckLPCost
(
tp
,
ct
*
200
*
Duel
.
GetCounter
(
tp
,
LOCATION_ONFIELD
,
0
,
0x43f
))
local
cc
=
Duel
.
GetCounter
(
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
,
0x43f
)
return
cc
==
0
or
Duel
.
CheckLPCost
(
tp
,
ct
*
cc
*
200
)
end
function
s
.
costop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
PayLPCost
(
tp
,
200
*
Duel
.
GetCounter
(
tp
,
LOCATION_ONFIELD
,
0
,
0x43f
))
local
cc
=
Duel
.
GetCounter
(
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
,
0x43f
)
if
cc
>
0
then
Duel
.
PayLPCost
(
tp
,
cc
*
200
)
end
end
function
s
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x43e
)
and
c
:
IsAbleToGrave
()
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
...
...
@@ -66,5 +75,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
if
#
g
>
0
then
Duel
.
SendtoGrave
(
g
,
nil
,
REASON_EFFECT
)
end
end
\ No newline at end of file
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