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
b361e384
You need to sign in or sign up before continuing.
Commit
b361e384
authored
Apr 23, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
Ojama Trio
parent
5854ab7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
32 deletions
+7
-32
c29843091.lua
c29843091.lua
+7
-32
No files found.
c29843091.lua
View file @
b361e384
...
@@ -31,42 +31,17 @@ function c29843091.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -31,42 +31,17 @@ function c29843091.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
token
:
RegisterEffect
(
e1
,
true
)
token
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_DESTROYED
)
e2
:
SetOperation
(
c29843091
.
damop
)
token
:
RegisterEffect
(
e2
,
true
)
g
:
AddCard
(
token
)
g
:
AddCard
(
token
)
end
end
end
end
g
:
KeepAlive
()
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_DESTROYED
)
e2
:
SetLabelObject
(
g
)
e2
:
SetCondition
(
c29843091
.
damcon
)
e2
:
SetOperation
(
c29843091
.
damop
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
end
end
function
c29843091
.
dfilter
(
c
,
g
)
return
g
:
IsContains
(
c
)
end
function
c29843091
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
e
:
GetLabelObject
()
if
eg
:
IsExists
(
c29843091
.
dfilter
,
1
,
nil
,
g
)
then
return
true
else
if
not
g
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_MZONE
)
then
g
:
DeleteGroup
()
e
:
Reset
()
end
return
false
end
end
function
c29843091
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c29843091
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
e
:
GetLabelObject
()
local
c
=
e
:
GetHandler
()
local
tc
=
eg
:
GetFirst
()
Duel
.
Damage
(
c
:
GetPreviousControler
(),
300
,
REASON_EFFECT
)
while
tc
do
if
g
:
IsContains
(
tc
)
then
Duel
.
Damage
(
tc
:
GetPreviousControler
(),
300
,
REASON_EFFECT
)
g
:
RemoveCard
(
tc
)
end
tc
=
eg
:
GetNext
()
end
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