Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
4
Merge Requests
4
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
MyCard
ygopro-scripts-888
Commits
5a262720
Commit
5a262720
authored
Dec 31, 2023
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ワーム・ソリッド
parent
01fce07b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
c3204467.lua
c3204467.lua
+16
-11
No files found.
c3204467.lua
View file @
5a262720
...
@@ -12,8 +12,19 @@ function c3204467.initial_effect(c)
...
@@ -12,8 +12,19 @@ function c3204467.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e2
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e2
:
SetCode
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetOperation
(
c3204467
.
regop
)
e2
:
SetOperation
(
c3204467
.
regop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
3204467
,
0
))
e3
:
SetCategory
(
CATEGORY_DESTROY
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_DAMAGE_STEP_END
)
e3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e3
:
SetCondition
(
c3204467
.
descon
)
e3
:
SetTarget
(
c3204467
.
destg
)
e3
:
SetOperation
(
c3204467
.
desop
)
c
:
RegisterEffect
(
e3
)
end
end
function
c3204467
.
vfilter
(
c
)
function
c3204467
.
vfilter
(
c
)
return
c
:
IsSetCard
(
0x3e
)
and
c
:
IsRace
(
RACE_REPTILE
)
return
c
:
IsSetCard
(
0x3e
)
and
c
:
IsRace
(
RACE_REPTILE
)
...
@@ -23,19 +34,13 @@ function c3204467.defval(e,c)
...
@@ -23,19 +34,13 @@ function c3204467.defval(e,c)
end
end
function
c3204467
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c3204467
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsDefensePos
()
and
c
==
Duel
.
GetAttackTarget
()
then
if
c
==
Duel
.
GetAttackTarget
()
then
local
e1
=
Effect
.
CreateEffect
(
c
)
c
:
RegisterFlagEffect
(
3204467
,
RESET_PHASE
+
PHASE_DAMAGE
,
0
,
1
)
e1
:
SetDescription
(
aux
.
Stringid
(
3204467
,
0
))
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_DAMAGE_STEP_END
)
e1
:
SetCondition
(
aux
.
dsercon
)
e1
:
SetTarget
(
c3204467
.
destg
)
e1
:
SetOperation
(
c3204467
.
desop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
c
:
RegisterEffect
(
e1
)
end
end
end
end
function
c3204467
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
3204467
)
and
aux
.
dsercon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
function
c3204467
.
desfilter
(
c
)
function
c3204467
.
desfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
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