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
Reinen
ygopro-scripts
Commits
0edc7fc5
Commit
0edc7fc5
authored
Feb 02, 2017
by
mercury233
Committed by
DailyShana
Feb 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 真竜剣皇 and 真竜機兵 (#785)
parent
3483dea6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
22 deletions
+52
-22
c21377582.lua
c21377582.lua
+26
-11
c57761191.lua
c57761191.lua
+26
-11
No files found.
c21377582.lua
View file @
0edc7fc5
...
...
@@ -16,13 +16,13 @@ function c21377582.initial_effect(c)
e2
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e2
:
SetValue
(
c21377582
.
valcheck
)
c
:
RegisterEffect
(
e2
)
--immune
--immune
reg
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_
SINGLE_RANG
E
)
e3
:
SetCode
(
E
FFECT_IMMUNE_EFFECT
)
e3
:
Set
Range
(
LOCATION_MZONE
)
e3
:
Set
Value
(
c21377582
.
efilter
)
e3
:
SetType
(
EFFECT_TYPE_
CONTINUOUS
+
EFFECT_TYPE_
SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABL
E
)
e3
:
SetCode
(
E
VENT_SUMMON_SUCCESS
)
e3
:
Set
Condition
(
c21377582
.
regcon
)
e3
:
Set
Operation
(
c21377582
.
regop
)
e3
:
SetLabelObject
(
e2
)
c
:
RegisterEffect
(
e3
)
--destroy
...
...
@@ -82,19 +82,34 @@ function c21377582.valcheck(e,c)
tc
=
g
:
GetNext
()
end
e
:
SetLabel
(
typ
)
end
function
c21377582
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
e
:
GetHandler
():
GetSummonType
(),
SUMMON_TYPE_ADVANCE
)
==
SUMMON_TYPE_ADVANCE
end
function
c21377582
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetValue
(
c21377582
.
efilter
)
e1
:
SetLabelObject
(
e
:
GetLabelObject
())
c
:
RegisterEffect
(
e1
)
local
typ
=
e
:
GetLabelObject
():
GetLabel
()
if
bit
.
band
(
typ
,
TYPE_MONSTER
)
~=
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0xfe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
21377582
,
3
))
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x
1
fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
21377582
,
3
))
end
if
bit
.
band
(
typ
,
TYPE_SPELL
)
~=
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0xfe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
21377582
,
4
))
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x
1
fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
21377582
,
4
))
end
if
bit
.
band
(
typ
,
TYPE_TRAP
)
~=
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0xfe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
21377582
,
5
))
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x
1
fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
21377582
,
5
))
end
end
function
c21377582
.
efilter
(
e
,
te
)
return
bit
.
band
(
e
:
GetHandler
():
GetSummonType
(),
SUMMON_TYPE_ADVANCE
)
==
SUMMON_TYPE_ADVANCE
and
te
:
IsActiveType
(
e
:
GetLabelObject
():
GetLabel
())
and
te
:
GetOwner
()
~=
e
:
GetOwner
()
return
te
:
IsActiveType
(
e
:
GetLabelObject
():
GetLabel
())
and
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
function
c21377582
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
e
:
GetHandler
():
GetSummonType
(),
SUMMON_TYPE_ADVANCE
)
==
SUMMON_TYPE_ADVANCE
...
...
c57761191.lua
View file @
0edc7fc5
...
...
@@ -20,13 +20,13 @@ function c57761191.initial_effect(c)
e3
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e3
:
SetValue
(
c57761191
.
valcheck
)
c
:
RegisterEffect
(
e3
)
--immune
--immune
reg
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetProperty
(
EFFECT_FLAG_
SINGLE_RANG
E
)
e4
:
SetCode
(
E
FFECT_IMMUNE_EFFECT
)
e4
:
Set
Range
(
LOCATION_MZONE
)
e4
:
Set
Value
(
c57761191
.
efilter
)
e4
:
SetType
(
EFFECT_TYPE_
CONTINUOUS
+
EFFECT_TYPE_
SINGLE
)
e4
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABL
E
)
e4
:
SetCode
(
E
VENT_SUMMON_SUCCESS
)
e4
:
Set
Condition
(
c57761191
.
regcon
)
e4
:
Set
Operation
(
c57761191
.
regop
)
e4
:
SetLabelObject
(
e3
)
c
:
RegisterEffect
(
e4
)
--special summon
...
...
@@ -86,19 +86,34 @@ function c57761191.valcheck(e,c)
tc
=
g
:
GetNext
()
end
e
:
SetLabel
(
typ
)
end
function
c57761191
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
e
:
GetHandler
():
GetSummonType
(),
SUMMON_TYPE_ADVANCE
)
==
SUMMON_TYPE_ADVANCE
end
function
c57761191
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetValue
(
c57761191
.
efilter
)
e1
:
SetLabelObject
(
e
:
GetLabelObject
())
c
:
RegisterEffect
(
e1
)
local
typ
=
e
:
GetLabelObject
():
GetLabel
()
if
bit
.
band
(
typ
,
TYPE_MONSTER
)
~=
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0xfe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
57761191
,
2
))
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x
1
fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
57761191
,
2
))
end
if
bit
.
band
(
typ
,
TYPE_SPELL
)
~=
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0xfe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
57761191
,
3
))
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x
1
fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
57761191
,
3
))
end
if
bit
.
band
(
typ
,
TYPE_TRAP
)
~=
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0xfe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
57761191
,
4
))
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x
1
fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
57761191
,
4
))
end
end
function
c57761191
.
efilter
(
e
,
te
)
return
bit
.
band
(
e
:
GetHandler
():
GetSummonType
(),
SUMMON_TYPE_ADVANCE
)
==
SUMMON_TYPE_ADVANCE
and
te
:
IsActiveType
(
e
:
GetLabelObject
():
GetLabel
())
and
te
:
GetOwner
()
~=
e
:
GetOwner
()
return
te
:
IsActiveType
(
e
:
GetLabelObject
():
GetLabel
())
and
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
function
c57761191
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
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