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
八宫一月
ygopro-scripts
Commits
3b5bf787
Commit
3b5bf787
authored
May 06, 2019
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=5&fid=13863
parent
6a7e47e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
c95096437.lua
c95096437.lua
+4
-2
No files found.
c95096437.lua
View file @
3b5bf787
...
...
@@ -22,13 +22,14 @@ end
function
c95096437
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
tc
:
RegisterFlagEffect
(
95096437
,
RESET_EVENT
+
0x1220000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
95096437
,
0
))
e1
:
SetCategory
(
CATEGORY_HANDES
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e1
:
SetLabel
(
tc
:
GetFieldID
()
)
e1
:
SetLabel
Object
(
tc
)
e1
:
SetCondition
(
c95096437
.
hdcon
)
e1
:
SetTarget
(
c95096437
.
hdtg
)
e1
:
SetOperation
(
c95096437
.
hdop
)
...
...
@@ -37,7 +38,8 @@ function c95096437.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c95096437
.
hdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
eg
:
GetFirst
():
GetFieldID
()
==
e
:
GetLabel
()
local
tc
=
e
:
GetLabelObject
()
return
ep
~=
tp
and
eg
:
IsContains
(
tc
)
and
tc
:
GetFlagEffect
(
95096437
)
~=
0
end
function
c95096437
.
hdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
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