Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
REIKAI
ygopro
Commits
0791954d
Commit
0791954d
authored
Jul 31, 2013
by
sidschingis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4a3c4b01
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
3 deletions
+36
-3
script/c35183853.lua
script/c35183853.lua
+1
-1
script/c42155488.lua
script/c42155488.lua
+35
-2
No files found.
script/c35183853.lua
View file @
0791954d
...
...
@@ -27,5 +27,5 @@ function c35183853.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c35183853
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
GetHandler
():
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
script/c42155488.lua
View file @
0791954d
...
...
@@ -18,6 +18,17 @@ function c42155488.initial_effect(c)
e2
:
SetTarget
(
c42155488
.
dectg
)
e2
:
SetOperation
(
c42155488
.
decop
)
c
:
RegisterEffect
(
e2
)
if
not
c42155488
.
globalcheck
then
c42155488
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
ge1
:
SetOperation
(
c42155488
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
local
ge2
=
ge1
:
Clone
()
ge2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
Duel
.
RegisterEffect
(
ge2
,
0
)
end
end
function
c42155488
.
ntcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
...
...
@@ -39,9 +50,15 @@ function c42155488.ntop(e,tp,eg,ep,ev,re,r,rp,c)
c
:
RegisterEffect
(
e2
)
end
function
c42155488
.
dectg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
42155488
)
==
0
or
c42155488
[
tp
]
~=
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
563
)
local
rc
=
Duel
.
AnnounceRace
(
tp
,
1
,
0xffffff
)
if
Duel
.
GetFlagEffect
(
tp
,
42155488
)
==
0
then
local
rc
=
Duel
.
AnnounceRace
(
tp
,
1
,
0xffffff
)
else
local
rc
=
Duel
.
AnnounceRace
(
tp
,
1
,
c42155488
[
tp
])
end
e
:
SetLabel
(
rc
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
@@ -77,3 +94,19 @@ end
function
c42155488
.
syncheck
(
e
,
c
)
c
:
AssumeProperty
(
ASSUME_RACE
,
e
:
GetLabel
())
end
function
c42155488
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
while
tc
do
local
sump
=
tc
:
GetSummonPlayer
()
local
race
=
tc
:
GetRace
()
if
Duel
.
GetFlagEffect
(
sump
,
42155488
)
==
0
then
c42155488
[
sump
]
=
race
Duel
.
RegisterFlagEffect
(
sump
,
42155488
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
else
if
c42155488
[
sump
]
~=
race
then
c42155488
[
sump
]
=
0
end
end
tc
=
eg
:
GetNext
()
end
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