Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
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
MyCard
ygopro-pre-data
Commits
688d4f7d
Commit
688d4f7d
authored
Feb 20, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
36c6a6fb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
expansions/pre-release.cdb
expansions/pre-release.cdb
+0
-0
script/c100264002.lua
script/c100264002.lua
+3
-3
script/c101101069.lua
script/c101101069.lua
+6
-6
No files found.
expansions/pre-release.cdb
View file @
688d4f7d
No preview for this file type
script/c100264002.lua
View file @
688d4f7d
...
@@ -41,15 +41,15 @@ end
...
@@ -41,15 +41,15 @@ end
function
c100264002
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100264002
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
ep
==
tp
or
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
or
not
Duel
.
IsChainNegatable
(
ev
)
then
return
false
end
if
ep
==
tp
or
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
or
not
Duel
.
IsChainNegatable
(
ev
)
then
return
false
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
g
:
GetCount
()
==
0
or
not
re
:
IsActiveType
(
TYPE_MONSTER
)
then
return
false
end
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
local
attr
=
0
local
attr
=
0
while
tc
do
while
tc
do
attr
=
attr
|
tc
:
GetAttribute
()
attr
=
attr
|
tc
:
GetAttribute
()
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
if
g
:
GetCount
()
==
0
or
not
re
:
IsActiveType
(
TYPE_MONSTER
)
then
return
false
end
local
rattr
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_ATTRIBUTE
)
local
rc
=
re
:
GetHandler
()
return
rattr
&
attr
==
0
return
not
rc
:
IsAttribute
(
attr
)
end
end
function
c100264002
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100264002
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
2
,
REASON_COST
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
2
,
REASON_COST
)
end
...
...
script/c101101069.lua
View file @
688d4f7d
...
@@ -35,20 +35,20 @@ function c101101069.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -35,20 +35,20 @@ function c101101069.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetCondition
(
c101101069
.
imcon
)
e1
:
SetValue
(
c101101069
.
tgval
)
e1
:
SetValue
(
aux
.
tgoval
)
e1
:
SetOwnerPlayer
(
tp
)
e1
:
SetOwnerPlayer
(
tp
)
tc
:
RegisterEffect
(
e1
,
true
)
tc
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
101101069
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e2
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetCondition
(
c101101069
.
imcon
)
e2
:
SetValue
(
c101101069
.
tgval
)
e2
:
SetValue
(
aux
.
indoval
)
e2
:
SetOwnerPlayer
(
tp
)
e2
:
SetOwnerPlayer
(
tp
)
tc
:
RegisterEffect
(
e2
,
true
)
tc
:
RegisterEffect
(
e2
,
true
)
end
end
end
end
function
c101101069
.
imcon
(
e
)
function
c101101069
.
tgval
(
e
,
re
,
rp
)
return
e
:
GetHandlerPlayer
()
==
e
:
GetOwnerPlayer
()
return
rp
==
1
-
e
:
GetOwnerPlayer
()
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