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
e01168c5
Commit
e01168c5
authored
Nov 03, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f71174ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
script/c100270218.lua
script/c100270218.lua
+8
-8
script/c101102094.lua
script/c101102094.lua
+2
-1
script/c101103061.lua
script/c101103061.lua
+1
-1
No files found.
script/c100270218.lua
View file @
e01168c5
...
@@ -18,7 +18,7 @@ function c100270218.initial_effect(c)
...
@@ -18,7 +18,7 @@ function c100270218.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e2
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
,
100270218
)
e2
:
SetCountLimit
(
1
,
100270218
+
100
)
e2
:
SetCondition
(
c100270218
.
atkcon
)
e2
:
SetCondition
(
c100270218
.
atkcon
)
e2
:
SetTarget
(
c100270218
.
atktg
)
e2
:
SetTarget
(
c100270218
.
atktg
)
e2
:
SetOperation
(
c100270218
.
atkop
)
e2
:
SetOperation
(
c100270218
.
atkop
)
...
@@ -57,18 +57,18 @@ function c100270218.actop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,18 +57,18 @@ function c100270218.actop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c100270218
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100270218
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
,
d
=
Duel
.
GetAttacker
(),
Duel
.
GetAttackTarget
()
local
tc
=
Duel
.
GetBattleMonster
(
tp
)
return
(
a
:
IsControler
(
tp
)
and
a
:
IsRace
(
RACE_PLANT
)
and
a
:
IsType
(
TYPE_LINK
))
return
tc
:
IsRace
(
RACE_PLANT
)
and
tc
:
IsType
(
TYPE_LINK
)
or
(
not
d
or
(
d
:
IsControler
(
tp
)
and
d
:
IsRace
(
RACE_PLANT
)
and
d
:
IsType
(
TYPE_LINK
)))
end
end
function
c100270218
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c100270218
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lg
=
e
:
GetHandler
():
GetLinkedGroup
()
local
tc
=
Duel
.
GetBattleMonster
(
tp
)
local
lg
=
tc
:
GetLinkedGroup
():
Filter
(
Card
.
IsFaceup
,
nil
)
if
chk
==
0
then
return
#
lg
>
0
and
lg
:
GetSum
(
Card
.
GetAttack
)
>
0
end
if
chk
==
0
then
return
#
lg
>
0
and
lg
:
GetSum
(
Card
.
GetAttack
)
>
0
end
end
end
function
c100270218
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100270218
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
Get
Attacker
(
)
local
tc
=
Duel
.
Get
BattleMonster
(
tp
)
if
tc
:
IsControler
(
1
-
tp
)
then
tc
=
Duel
.
GetAttackTarget
()
end
if
not
tc
:
IsRelateToBattle
()
then
return
end
local
lg
=
tc
:
GetLinkedGroup
()
local
lg
=
tc
:
GetLinkedGroup
()
:
Filter
(
Card
.
IsFaceup
,
nil
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
...
script/c101102094.lua
View file @
e01168c5
...
@@ -84,11 +84,12 @@ function c101102094.sptgfilter(c,e,tp,attr)
...
@@ -84,11 +84,12 @@ function c101102094.sptgfilter(c,e,tp,attr)
return
c
:
GetOriginalAttribute
()
~=
attr
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
GetOriginalAttribute
()
~=
attr
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c101102094
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101102094
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
e
:
GetHandler
():
GetEquipTarget
()
if
chk
==
0
then
if
chk
==
0
then
local
tc
=
e
:
GetHandler
():
GetEquipTarget
()
e
:
SetLabelObject
(
tc
)
e
:
SetLabelObject
(
tc
)
return
tc
and
tc
:
IsAbleToGrave
()
and
Duel
.
IsExistingMatchingCard
(
c101102094
.
sptgfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
tc
:
GetOriginalAttribute
())
return
tc
and
tc
:
IsAbleToGrave
()
and
Duel
.
IsExistingMatchingCard
(
c101102094
.
sptgfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
tc
:
GetOriginalAttribute
())
end
end
local
tc
=
e
:
GetLabelObject
()
tc
:
CreateEffectRelation
(
e
)
tc
:
CreateEffectRelation
(
e
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
tc
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
tc
,
1
,
0
,
0
)
end
end
...
...
script/c101103061.lua
View file @
e01168c5
...
@@ -71,7 +71,7 @@ function c101103061.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -71,7 +71,7 @@ function c101103061.activate(e,tp,eg,ep,ev,re,r,rp)
local
sg
=
sg1
:
Clone
()
local
sg
=
sg1
:
Clone
()
if
sg2
then
sg
:
Merge
(
sg2
)
end
if
sg2
then
sg
:
Merge
(
sg2
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
tg
=
sg
:
Select
(
tp
,
0
,
1
,
nil
)
local
tg
=
sg
:
Select
(
tp
,
1
,
1
,
nil
)
local
tc
=
tg
:
GetFirst
()
local
tc
=
tg
:
GetFirst
()
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
if
sg1
:
IsContains
(
tc
)
and
(
sg2
==
nil
or
not
sg2
:
IsContains
(
tc
)
or
not
Duel
.
SelectYesNo
(
tp
,
ce
:
GetDescription
()))
then
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg1
,
nil
,
chkf
)
local
mat1
=
Duel
.
SelectFusionMaterial
(
tp
,
tc
,
mg1
,
nil
,
chkf
)
...
...
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