Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-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
nanahira
ygopro-scripts
Commits
a444b5c6
You need to sign in or sign up before continuing.
Commit
a444b5c6
authored
Dec 10, 2023
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix BM-4ボムスパイダー
parent
63eb4a5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
14 deletions
+20
-14
c40634253.lua
c40634253.lua
+20
-14
No files found.
c40634253.lua
View file @
a444b5c6
...
...
@@ -22,11 +22,12 @@ function c40634253.initial_effect(c)
e2
:
SetCountLimit
(
1
,
40634253
)
e2
:
SetCondition
(
c40634253
.
damcon1
)
e2
:
SetTarget
(
c40634253
.
damtg
)
e2
:
SetOperation
(
c40634253
.
damop
)
e2
:
SetOperation
(
c40634253
.
damop
1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetCondition
(
c40634253
.
damcon2
)
e3
:
SetOperation
(
c40634253
.
damop2
)
c
:
RegisterEffect
(
e3
)
end
function
c40634253
.
desfilter
(
c
)
...
...
@@ -53,11 +54,12 @@ end
function
c40634253
.
damcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
local
bc
=
tc
:
GetBattleTarget
()
return
tc
:
IsPreviousControler
(
1
-
tp
)
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
Get
Base
Attack
()
>
0
return
tc
:
IsPreviousControler
(
1
-
tp
)
and
tc
:
IsLocation
(
LOCATION_GRAVE
)
and
tc
:
Get
Text
Attack
()
>
0
and
bc
:
IsControler
(
tp
)
and
bc
:
GetOriginalAttribute
()
==
ATTRIBUTE_DARK
and
bc
:
GetOriginalRace
()
==
RACE_MACHINE
and
bc
:
IsType
(
TYPE_MONSTER
)
end
function
c40634253
.
damfilter1
(
c
,
tp
)
return
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsPreviousControler
(
1
-
tp
)
and
c
:
GetBaseAttack
()
>
0
function
c40634253
.
damfilter2
(
c
,
tp
)
return
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsPreviousControler
(
1
-
tp
)
and
c
:
GetTextAttack
()
>
0
end
function
c40634253
.
damcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
then
return
false
end
...
...
@@ -65,22 +67,26 @@ function c40634253.damcon2(e,tp,eg,ep,ev,re,r,rp)
local
rc
=
re
:
GetHandler
()
return
tgp
==
tp
and
loc
==
LOCATION_MZONE
and
rc
:
GetOriginalAttribute
()
==
ATTRIBUTE_DARK
and
rc
:
GetOriginalRace
()
==
RACE_MACHINE
and
eg
:
IsExists
(
c40634253
.
damfilter
1
,
1
,
nil
,
tp
)
and
eg
:
IsExists
(
c40634253
.
damfilter
2
,
1
,
nil
,
tp
)
end
function
c40634253
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
0
)
end
function
c40634253
.
damfilter2
(
c
,
tp
)
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsPreviousControler
(
1
-
tp
)
function
c40634253
.
damop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
Duel
.
Damage
(
1
-
tp
,
math.floor
(
tc
:
GetTextAttack
()
/
2
),
REASON_EFFECT
)
end
function
c40634253
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c40634253
.
damop
2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
eg
:
Filter
(
c40634253
.
damfilter2
,
nil
,
tp
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
g
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
end
Duel
.
Damage
(
1
-
tp
,
math.floor
(
g
:
GetFirst
():
GetBaseAttack
()
/
2
),
REASON_EFFECT
)
local
tc
=
nil
if
#
g
>
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
tc
=
g
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
elseif
#
g
==
1
then
tc
=
g
:
GetFirst
()
end
if
tc
then
Duel
.
Damage
(
1
-
tp
,
math.floor
(
tc
:
GetTextAttack
()
/
2
),
REASON_EFFECT
)
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