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
3
Merge Requests
3
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
3e704f82
Commit
3e704f82
authored
Sep 28, 2024
by
a597449807
Committed by
GitHub
Sep 28, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Flame Swordsrealm (#2679)
parent
a787434e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
c73714736.lua
c73714736.lua
+13
-12
No files found.
c73714736.lua
View file @
3e704f82
...
...
@@ -46,6 +46,7 @@ function s.initial_effect(c)
e5
:
SetOperation
(
s
.
atkop
)
c
:
RegisterEffect
(
e5
)
end
s
.
fusion_effect
=
true
function
s
.
cfilter
(
c
,
e
,
tp
)
return
c
:
IsFaceupEx
()
and
c
:
IsAbleToGraveAsCost
()
and
c
:
IsType
(
TYPE_MONSTER
)
and
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
)
...
...
@@ -132,18 +133,18 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
if
not
tc
:
IsHasEffect
(
EFFECT_REVERSE_UPDATE
)
then
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetTarget
(
s
.
atkfilter
)
e2
:
SetLabel
(
tc
:
GetFieldID
())
e2
:
SetValue
(
1000
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
tc
)
local
oc
=
g
:
GetFirst
()
while
oc
do
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetValue
(
1000
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
oc
:
RegisterEffect
(
e2
)
oc
=
g
:
GetNext
()
end
end
end
end
function
s
.
atkfilter
(
e
,
c
)
return
e
:
GetLabel
()
~=
c
:
GetFieldID
()
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