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
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
Commits
9d084b8a
Commit
9d084b8a
authored
Apr 26, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #388 from mercury233/patch-1
fix Chaofeng, Phantom of the Yang Zing
parents
60e35bab
43411950
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
c19048328.lua
c19048328.lua
+18
-6
No files found.
c19048328.lua
View file @
9d084b8a
...
...
@@ -11,13 +11,11 @@ function c19048328.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--act limit
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCondition
(
c19048328
.
condition
)
e2
:
Set
Value
(
c19048328
.
aclimit
)
e2
:
Set
Operation
(
c19048328
.
regop
)
e2
:
SetLabelObject
(
e1
)
c
:
RegisterEffect
(
e2
)
--search
...
...
@@ -56,6 +54,20 @@ end
function
c19048328
.
condition
(
e
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_SYNCHRO
end
function
c19048328
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetCondition
(
c19048328
.
condition
)
e1
:
SetValue
(
c19048328
.
aclimit
)
e1
:
SetLabelObject
(
e
:
GetLabelObject
())
c
:
RegisterEffect
(
e1
)
end
function
c19048328
.
aclimit
(
e
,
re
,
tp
)
local
att
=
e
:
GetLabelObject
():
GetLabel
()
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
bit
.
band
(
att
,
re
:
GetHandler
():
GetOriginalAttribute
())
~=
0
...
...
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