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
872b0e74
Commit
872b0e74
authored
Jun 14, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update immune check for 大捕り物
parent
e5cae24f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
c36975314.lua
c36975314.lua
+4
-2
No files found.
c36975314.lua
View file @
872b0e74
...
...
@@ -31,7 +31,7 @@ end
function
c36975314
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
c
:
SetCardTarget
(
tc
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -39,6 +39,7 @@ function c36975314.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_OWNER_RELATE
)
e1
:
SetValue
(
c36975314
.
ctval
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetLabelObject
(
e
)
e1
:
SetCondition
(
c36975314
.
con
)
tc
:
RegisterEffect
(
e1
,
true
)
--cannot attack, trigger
...
...
@@ -57,7 +58,8 @@ end
function
c36975314
.
con
(
e
)
local
c
=
e
:
GetOwner
()
local
h
=
e
:
GetHandler
()
return
c
:
IsHasCardTarget
(
h
)
and
not
h
:
IsImmuneToEffect
(
e
)
local
te
=
e
:
GetLabelObject
()
return
c
:
IsHasCardTarget
(
h
)
and
not
h
:
IsImmuneToEffect
(
te
)
end
function
c36975314
.
ctval
(
e
,
c
)
return
e
:
GetOwnerPlayer
()
...
...
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