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
e1a1ed14
Commit
e1a1ed14
authored
Dec 05, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #169 from DailyShana/patch-3
fix Card of Sacrifice
parents
04c73ddf
be4c6f33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
c88513608.lua
c88513608.lua
+16
-1
No files found.
c88513608.lua
View file @
e1a1ed14
...
...
@@ -11,6 +11,19 @@ function c88513608.initial_effect(c)
e1
:
SetTarget
(
c88513608
.
target
)
e1
:
SetOperation
(
c88513608
.
activate
)
c
:
RegisterEffect
(
e1
)
if
not
c88513608
.
global_check
then
c88513608
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_CHANGE_POS
)
ge1
:
SetOperation
(
c88513608
.
poscheck
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
c88513608
.
poscheck
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
==
nil
then
Duel
.
RegisterFlagEffect
(
rp
,
88513608
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c88513608
.
check
(
tp
)
local
at1
=
0
...
...
@@ -38,7 +51,9 @@ function c88513608.condition(e,tp,eg,ep,ev,re,r,rp)
end
function
c88513608
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetActivityCount
(
tp
,
ACTIVITY_SUMMON
)
==
0
and
Duel
.
GetActivityCount
(
tp
,
ACTIVITY_FLIPSUMMON
)
==
0
and
Duel
.
GetActivityCount
(
tp
,
ACTIVITY_SPSUMMON
)
==
0
end
and
Duel
.
GetActivityCount
(
tp
,
ACTIVITY_FLIPSUMMON
)
==
0
and
Duel
.
GetActivityCount
(
tp
,
ACTIVITY_SPSUMMON
)
==
0
and
Duel
.
GetFlagEffect
(
tp
,
88513608
)
==
0
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
...
...
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